Skip to content

Commit

Permalink
Merge branch 'develop' into eia
Browse files Browse the repository at this point in the history
  • Loading branch information
bl-young committed May 30, 2024
2 parents 2152009 + d0f71b8 commit 8080c2b
Show file tree
Hide file tree
Showing 10 changed files with 39 additions and 7 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/test_methods.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ jobs:
# install package & dependencies
- name: Install package and dependencies
env:
# Temporary fix to avoid git lfs error in fedelemflowlist install https://github.com/git-lfs/git-lfs/issues/5749
GIT_CLONE_PROTECTION_ACTIVE: false
run: |
pip install .
Expand Down
4 changes: 3 additions & 1 deletion flowsa/data/source_catalog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,9 @@ BLS_QCEW:
2018: NAICS_2017_Code,
2019: NAICS_2017_Code,
2020: NAICS_2017_Code,
2021: NAICS_2017_Code}
2021: NAICS_2017_Code,
2022: NAICS_2017_Code,
}
sector_hierarchy: "parent-completeChild"
BTS_Airlines:
data_format: FBA
Expand Down
6 changes: 6 additions & 0 deletions flowsa/data_source_scripts/BLS_QCEW.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,3 +315,9 @@ def fill_suppressed(
)

return aggregated


if __name__ == "__main__":
import flowsa
flowsa.generateflowbyactivity.main(source='BLS_QCEW', year=2022)
fba = flowsa.getFlowByActivity('BLS_QCEW', year=2022)
1 change: 1 addition & 0 deletions flowsa/methods/flowbyactivitymethods/BLS_QCEW.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,4 @@ years:
- 2019
- 2020
- 2021
- 2022
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
industry_spec:
default: NAICS_6
target_naics_year: 2012
target_naics_year: 2017
geoscale: national

source_names:
"BLS_QCEW": !include:Employment_common.yaml:bls_load_and_clean_national
BLS_QCEW: !include:Employment_common.yaml:bls_load_and_clean_national
year: 2017
activity_sets:
qcew: !include:Employment_common.yaml:bls_allocation
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
industry_spec:
default: NAICS_6
target_naics_year: 2012
target_naics_year: 2017
geoscale: national

source_names:
"BLS_QCEW": !include:Employment_common.yaml:bls_load_and_clean_national
BLS_QCEW: !include:Employment_common.yaml:bls_load_and_clean_national
year: 2018
activity_sets:
qcew: !include:Employment_common.yaml:bls_allocation
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
industry_spec:
default: NAICS_6
target_naics_year: 2012
target_naics_year: 2017
geoscale: national

source_names:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
industry_spec:
default: NAICS_6
target_naics_year: 2012
target_naics_year: 2017
geoscale: national

source_names:
Expand Down
10 changes: 10 additions & 0 deletions flowsa/methods/flowbysectormethods/Employment_national_2021.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
industry_spec:
default: NAICS_6
target_naics_year: 2017
geoscale: national

source_names:
BLS_QCEW: !include:Employment_common.yaml:bls_load_and_clean_national
year: 2021
activity_sets:
qcew: !include:Employment_common.yaml:bls_allocation
10 changes: 10 additions & 0 deletions flowsa/methods/flowbysectormethods/Employment_national_2022.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
industry_spec:
default: NAICS_6
target_naics_year: 2017
geoscale: national

source_names:
BLS_QCEW: !include:Employment_common.yaml:bls_load_and_clean_national
year: 2022
activity_sets:
qcew: !include:Employment_common.yaml:bls_allocation

0 comments on commit 8080c2b

Please sign in to comment.