Skip to content

Commit

Permalink
simplify cleaning fxn name: clean_fbs
Browse files Browse the repository at this point in the history
  • Loading branch information
bl-young committed Nov 12, 2022
1 parent 1012098 commit 0d0e361
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion flowsa/flowby.py
Original file line number Diff line number Diff line change
Expand Up @@ -1783,7 +1783,7 @@ def generateFlowBySector(
def prepare_fbs(self: 'FlowBySector') -> 'FlowBySector':
return (
self
.function_socket('clean_fbs_df_fxn')
.function_socket('clean_fbs')
.select_by_fields()
# TODO: Add a method to convert to proper industry spec.
.convert_fips_to_geoscale()
Expand Down
6 changes: 3 additions & 3 deletions flowsa/methods/flowbysectormethods/CAP_HAP_national_2017.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ source_names:
year: 2017
primary_action_type: Produced
activity_to_sector_mapping: SCC
clean_fba_df_fxn: !script_function:EPA_NEI clean_NEI_fba
clean_fba_before_activity_sets: !script_function:EPA_NEI clean_NEI_fba
fedefl_mapping: NEI
activity_sets:
direct_allocation:
Expand All @@ -227,7 +227,7 @@ source_names:
year: 2017
primary_action_type: Produced
activity_to_sector_mapping: SCC
clean_fba_df_fxn: !script_function:EPA_NEI clean_NEI_fba
clean_fba_before_activity_sets: !script_function:EPA_NEI clean_NEI_fba
fedefl_mapping: NEI
activity_sets:
direct_allocation:
Expand All @@ -253,7 +253,7 @@ source_names:
# temporarily maintain target_sector_level for
# allocation.equally_allocate_parent_to_child_naics()
target_sector_level: NAICS_6
clean_fbs_df_fxn: !script_function:EPA_NEI drop_GHGs
clean_fbs: !script_function:EPA_NEI drop_GHGs
compartments:
- air
reassign_process_to_sectors:
Expand Down
2 changes: 1 addition & 1 deletion flowsa/methods/flowbysectormethods/CNHW_national_2014.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ target_sector_level: NAICS_6
source_names:
CNHW_CA_2014:
data_format: FBS
clean_fbs_df_fxn: !script_function:CalRecycle_WasteCharacterization apply_tons_per_employee_per_year_to_states
clean_fbs: !script_function:CalRecycle_WasteCharacterization apply_tons_per_employee_per_year_to_states
year: 2014
2 changes: 1 addition & 1 deletion flowsa/methods/flowbysectormethods/CNHW_state_2014.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ geoscale: state
source_names:
CNHW_CA_2014:
data_format: FBS
clean_fbs_df_fxn: !script_function:CalRecycle_WasteCharacterization apply_tons_per_employee_per_year_to_states
clean_fbs: !script_function:CalRecycle_WasteCharacterization apply_tons_per_employee_per_year_to_states
year: 2014


0 comments on commit 0d0e361

Please sign in to comment.