Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow null event range #854

Merged
merged 6 commits into from
Oct 10, 2024
Merged

Allow null event range #854

merged 6 commits into from
Oct 10, 2024

Conversation

gonzaponte
Copy link
Collaborator

This PR adds the option to run a city with event_range = 0, which can be useful for testing.

Closes #573

@gonzaponte gonzaponte force-pushed the null-event-range branch 4 times, most recently from db81df1 to bd7de53 Compare May 15, 2024 13:11
@gonzaponte gonzaponte requested a review from jahernando May 15, 2024 14:19
@gonzaponte gonzaponte requested review from jahernando and removed request for jahernando October 2, 2024 14:20
This demonstrates the issue on the bigger picture
Just to make it more clear when compared with the test that is going
to be included next
This demonstrates the bug that induces the problem demonstrated before
note that sorting is somehow important for pytest
For this test, we don't need to run over any events,as the output
structure is fixed beforehand
Copy link
Contributor

@martinperezmaneiro martinperezmaneiro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good PR. Adds protection to slice function for event_range = 0, and creates the corresponding test. Also changes a file structure test to run over no events. Everything works as expected :)

@carhc carhc merged commit fefdb57 into next-exp:master Oct 10, 2024
1 check passed
@gonzaponte gonzaponte deleted the null-event-range branch October 10, 2024 10:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

event_range = 0 doesn't work
3 participants