USEPA / standardizedinventories

Standardized Release and Waste Inventories
MIT License
25 stars 16 forks source link

Clarify role of `getAvailableInventoriesandYears` #150

Open dt-woods opened 7 months ago

dt-woods commented 7 months ago

The table in the README says RCRAInfo has 2013, 2017 and 2019 data available, but I don't see them with I run the following code snippet (using stewi 1.1.2). I only see 2015 data.

>>> import stewi 
>>> stewi.getAvailableInventoriesandYears()
{'TRI': ['2016', '2017'],
 'NEI': ['2016', '2017'],
 'eGRID': ['2016', '2018', '2020'],
 'RCRAInfo': ['2015']}

Are these just the data files that have been downloaded locally and not the ones available for download?

https://github.com/USEPA/standardizedinventories/blob/dbe1c5d8eebeeecc0693c694353a4a612d803225/stewi/__init__.py#L18

bl-young commented 7 months ago

Are these just the data files that have been downloaded locally and not the ones available for download?

Correct. This function predates storage of data objects on data commons so does not serve all that much purpose anymore.

dt-woods commented 7 months ago

Okay. Thanks for clarifying. I wasn't sure what "available" meant in the doc string, local or remote. Local is fine. It's a nice summary dictionary.

Any possibility of adding a function parameter or new method to show what's available remotely (or what data are available for downloading)?

On Mon, Nov 20, 2023, 22:24 Ben Young (ERG) @.***> wrote:

Are these just the data files that have been downloaded locally and not the ones available for download?

Correct. This function predates storage of data objects on data commons so does not serve all that much purpose anymore.

— Reply to this email directly, view it on GitHub https://github.com/USEPA/standardizedinventories/issues/150#issuecomment-1820153493, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHCFB5LEH4XMHBNNG5DLX53YFQNIXAVCNFSM6AAAAAA7TTP47KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRQGE2TGNBZGM . You are receiving this because you authored the thread.Message ID: @.***>