USEPA/flowsa

BTS_airlines.py not wrapped in function

bl-young opened this issue · 2 comments

Importing this module is causing errors due to a required local file

https://github.com/USEPA/flowsa/blob/ghgi-recursive-yaml/flowsa/data_source_scripts/BTS_Airlines.py

with open(f'{settings.sourceconfigpath}BTS_Airlines.yaml') as f:
config = flowsa_yaml.load(f)

This should be wrapped inside a function.

@matthewlchambers This is causing errors in the github actions, and for us to run things, as we don't have access to the file here: https://github.com/USEPA/flowsa/blob/ghgi-recursive-yaml/flowsa/methods/flowbyactivitymethods/BTS_Airlines.yaml#L7

Hahaha, that absolutely should be wrapped in a function. My mistake.