Skip to content

update recursive-refac with proportional_attribution#354

Merged
catherinebirney merged 143 commits intorecursive-refacfrom
proportional_attribution
Jul 14, 2023
Merged

update recursive-refac with proportional_attribution#354
catherinebirney merged 143 commits intorecursive-refacfrom
proportional_attribution

Conversation

@catherinebirney
Copy link
Copy Markdown
Contributor

  • Major refactoring of attribution fxns - ability to have multiple non-recursive attribution methods, option to specify what columns to use to attribute primary data source with secondary data source, can split an FBS used as an attribution source into activity sets
  • New attribution methods: multiplication, division, inheritence
  • New attribution cleaning fxns: weighed_average, substitute_nonexistent_values
  • new fxn to attribute national data to state data using employment
  • new fxn to calculate flow per employee
  • require use of "activity_schema" into source_config.yaml to determine if "sector-like_activities"
  • ability to specify different NAICS sector years for different years of a data source
  • generalized fxn to estimate suppressed sectors using equal attribution
  • delete obsolete code (and comment out other fxns)
  • update seeAvailableFlowByModels() so does not return yaml files that end in "summary" or "common"

catherinebirney and others added 30 commits April 12, 2023 15:19
… FBS method yaml - move 'FlowByActivity' fxns to 'FlowBy' fxns
# Conflicts:
#	flowsa/data_source_scripts/EPA_REI.py
#	flowsa/methods/flowbysectormethods/REI_waste_national_2012.yaml
…tribution' parameter in the yaml and load employment data as 'clean_source' so can use load_prepare_clean_source() which will attribute employment data to target sectors
…here are hyphenated sectors - for now, dropping hyphenated sectors
@catherinebirney catherinebirney requested a review from bl-young July 14, 2023 18:24
@catherinebirney
Copy link
Copy Markdown
Contributor Author

@bl-young This code still needs some tweaks, but I think it is ready to be pulled into the recursive-refac branch. I did comment out most of the data vis fxns which need to be reworked

Copy link
Copy Markdown
Contributor

@bl-young bl-young left a comment

Choose a reason for hiding this comment

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

I expect we'll do some more editing and testing but I think fine to pull in.

@catherinebirney catherinebirney merged commit bfc8f77 into recursive-refac Jul 14, 2023
@catherinebirney catherinebirney deleted the proportional_attribution branch July 14, 2023 19:13
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