Skip to content

Commit

Permalink
due to 8b62f34, need to re-attach config to FBS
Browse files Browse the repository at this point in the history
  • Loading branch information
bl-young committed Oct 25, 2023
1 parent 44378ca commit adb160f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion flowsa/validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from flowsa.flowbysector import FlowBySector
from flowsa.flowbyfunctions import aggregator, collapse_fbs_sectors
from flowsa.flowsa_log import log, vlog
from flowsa.common import fba_activity_fields
from flowsa.common import fba_activity_fields, load_yaml_dict
from flowsa.location import US_FIPS
from flowsa.schema import dq_fields

Expand Down Expand Up @@ -318,6 +318,10 @@ def compare_national_state_fbs(dataname=None, year=None, method=None,

# load state level target sectors - assumption state will always be
# equal or more aggregated than national
if state.config == {}:
state.config = load_yaml_dict(s, 'FBS')
if national.config == {}:
national.config = load_yaml_dict(n, 'FBS')
state_target = state.config['industry_spec']

groupby_fields = ['Flowable','Context','SectorProducedBy', 'SectorConsumedBy',
Expand Down

0 comments on commit adb160f

Please sign in to comment.