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 selecting trains by ID to select 0 trains #260

Merged
merged 2 commits into from Dec 8, 2021

Conversation

takluyver
Copy link
Member

Turn various errors into warnings. For the specific case of selecting an empty list/array of train IDs (run.select_trains(by_id[[]]), it's allowed with no warning.

This hopefully simplifies something @yohey-uemura was doing, which I think ended up selecting an empty list of train IDs.

@takluyver takluyver added this to the 1.10 milestone Dec 6, 2021
@lgtm-com
Copy link

lgtm-com bot commented Dec 6, 2021

This pull request fixes 1 alert when merging 2132da5 into ea6c2d9 - view on LGTM.com

fixed alerts:

  • 1 for Unused import

@daviddoji
Copy link

daviddoji commented Dec 8, 2021

LGTM. BTW, good catch by the LGTM bot :)

@philsmt
Copy link
Contributor

philsmt commented Dec 8, 2021

LGTM

@takluyver takluyver merged commit 01177eb into master Dec 8, 2021
@takluyver
Copy link
Member Author

Thanks both!

@takluyver takluyver deleted the allow-select-no-train-ids branch December 8, 2021 09:44
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.

None yet

3 participants