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

New getAllInventoriesandYears method #171

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

dt-woods
Copy link

Addresses #150.

  • Create new global dictionary, STEWI_DATA_VINTAGES, which needs to be manually updated when new standardized inventories become available.
  • Create new global method, linear_search, for reverse searching a list and pulling the index of the value up to but not greater than a given value.
  • Create new init method, getAllInventoriesandYears, to companion with getAvailableInventoriesandYears; the former returns the STEWI_DATA_VINTAGES dictionary if no year is given; otherwise, uses the linear search to get the most appropriate inventory years for a given year.

Create new global dictionary, STEWI_DATA_VINTAGES, which needs to be manually updated when new standardized inventories become available. Create new global method, linear_search, for reverse searching a list and pulling the index of the value up to but not greater than a given value. Create new init method, getAllInventoriesandYears, to companion with getAvailableInventoriesandYears; the former returns the STEWI_DATA_VINTAGES dictionary if no year is given; otherwise, uses the linear search to get the most appropriate inventory years for a given year.
@bl-young bl-young self-assigned this Jan 21, 2025
'NEI': [2011, 2014, 2017, 2020],
'RCRAInfo': [x for x in range(2011, 2023, 2)],
'TRI': [x for x in range(2011, 2023, 1)],
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think until we have fully validated outputs, we should stick to the years we do, so that would be nothing after 2021 for TRI, DMR, GHGRP, and RCRAInfo

@bl-young
Copy link
Collaborator

otherwise works great, thanks!

@dt-woods
Copy link
Author

dt-woods commented Jan 21, 2025 via email

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.

2 participants