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

V1.3 release #301

Merged
merged 490 commits into from
Dec 2, 2022
Merged

V1.3 release #301

merged 490 commits into from
Dec 2, 2022

Conversation

catherinebirney
Copy link
Collaborator

@catherinebirney catherinebirney commented Dec 1, 2022

Major Updates:

  • Option to append material codes to end of sector code in FBS
  • New waste-related FBAs/FBSs, and 7/8 digit sector codes
  • New food waste and concrete waste specific FBS
  • New data visualization functions: Sankey, stackedBarChart
  • Updates to methodology since v1.2.4 release changed the results for: CAP_HAP_national_2017, CNHW_national_2014, Land_national_2012, Water_national_2010_m2, Water_national_2015_m2, Water_national_2015_m3
  • option to return an FBS with any mix of sector lengths, SPB and SCB columns no longer need to have matching sector lengths
  • option for multiplication as allocation method
  • update allocation methodology so if the allocation dataset is at a more aggregated geoscale than the primary FBA, that the primary df is not aggregated to match the allocation geoscale. Instead the more aggregated allocation dataset merges with the primary FBA on all related less aggregated geoscales
  • Changes to github actions to address memory issues
  • in equal_allocation() aggregate column before allocating to child naics - this impacts some NAICS6 results
  • option to retain activity names in a primary data source after calling on those activities in an FBS, so the activity names can be used again
  • requires plotly, kaleido

Minor Updates:

  • new external_paths.env file to store local file paths
  • rename load_api_key to load_env_file_key(), used for api keys and external_paths.env
  • getFlowByActivity accepts flowclass of class or list
  • new sector codes: S00203 - other state and local government enterprises, F040 - exports of goods and services, F050 - imports of goods and services, new 7/8 digit sectors for waste sectors (5622121, 5622191, 5622192, 5629201, 5629202, 5629203)
  • New required columns in FBS: ProducedBySectorType, ConsumedBySectorType, AttributionSources (primary attribution source name)
  • new selection_fields FBS parameter to subset FBA using column names/values
  • new VisualizationEssentials.csv with standard colors for graphing sectors
  • new csv "sector_2012_names" which includes additional names beyond official NAICS

New/Modified FBA:

  • expand epa_cddpath sector mapping
  • EPA_FactsAndFigures, EPA_REI, EPA_WARMer, EPA_WFR, Census_ASM, EPA_CDDPath (2018), EIA_AEO, EIA_SEDS

New/Modified FBS:

  • CNHW_national_2018, Employment_national (2012, 2014, 2015), Food_waste_national_2018 (m1, m2), GHG_national_m1 (2016, 2017, 2018, 2019), REI_waste_national_2012

catherinebirney and others added 30 commits September 7, 2022 12:37
… error - missing columns caused by new cols from DataVis branch
…ine of code once datavis FBS are on data commons
add ghg national fbs m1 2016, 2018, 2019
…col(), rename AllocationSourcs col to AttributionSources, and change the fxn so only adds primary attribution source to col, excluding secondary sources
… kaleido to write static images if kaleido installed
update v1.3-release with develop
… rows caused by dropping metasources/attributionsources cols
# Conflicts:
#	requirements.txt
#	setup.py
@catherinebirney catherinebirney marked this pull request as draft December 2, 2022 14:46
@catherinebirney catherinebirney marked this pull request as ready for review December 2, 2022 14:46
@catherinebirney
Copy link
Collaborator Author

@bl-young Changes to FBS are what we expect. If you agree with results and the merge notes I wrote out above, I will merge this PR and publish the v1.3.0 release

@catherinebirney catherinebirney merged commit 41206c8 into master Dec 2, 2022
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.

3 participants