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

Added include archive to optionally exclude archived datasets from dataset.list datasets() #1069

Merged
merged 2 commits into from
Jul 10, 2023
Merged

Added include archive to optionally exclude archived datasets from dataset.list datasets() #1069

merged 2 commits into from
Jul 10, 2023

Conversation

natephysics
Copy link
Contributor

Related Issue \ discussion

Related issue:
#1067

Patch Description

  • Added the option include_archived to Dataset.list_datasets() class method which, if False, will exclude archived datasets from the list. Defaults to True to maintain the current behavior of the class method. While it's possible to filter datasets using the get() class method it wasn't possible to do the same for the list_datasets() method. This feature seems useful to include and it's a simple, non-breaking modification.

  • Updated formatting (whitespaces/spaces after comma/line breaks) in accordance with the flake8 formatting checks for dataset.py. As suggested in the contribution guidelines, fake8 was used to validate the formatting. Several errors were found from prior commits that were fixed.

Testing Instructions

Dataset.list_datasets(..., include_archived=False) shouldn't include archived datasets in the list.

…ist_datasets() class method which, if False, will exclude archived datasets from the list. Defaults to True to maintain the current behavior of the class method.

While it's possible to filter datasets using the get() class method it wasn't possible to do the same for the list_datasets() method. This feature seems useful to include and it's a simple, non-breaking modification.
…mma/line breaks) in accordance with the flake8 formatting checks for dataset.py.

As suggesting in the contribution guildelines, fake8 was used to validate the formatting. Several errors were found from prior commits that were fixed.
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

2 participants