USEPA / flowsa

Library that attributes resource use, waste, emissions, and loss to economic sectors
MIT License
23 stars 19 forks source link

Split flowby.py into 3 python scripts #363

Closed catherinebirney closed 1 year ago

catherinebirney commented 1 year ago

Move class-specific code out of flowby.py into

Because flowby.py was very long and it was getting difficult to follow.

@matthewlchambers @bl-young any reason we should not split up the code?

bl-young commented 1 year ago

assuming it works I think this is a good idea

catherinebirney commented 1 year ago

assuming it works I think this is a good idea

:satisfied: yes, I will look into the flake8 failures

matthewlchambers commented 1 year ago

I think this is a great idea. The one change I would make is to not create the flowbyseries.py file, but to keep the class _FlowBySeries in flowby.py, the class _FBASeries in flowbyactivity.py, and the class _FBSSeries in flowbyseries.py. Just because those classes are crucial to the classes _FlowBy, FlowByActivity, and FlowBySector functioning.

catherinebirney commented 1 year ago

I think this is a great idea. The one change I would make is to not create the flowbyseries.py file, but to keep the class _FlowBySeries in flowby.py, the class _FBASeries in flowbyactivity.py, and the class _FBSSeries in flowbyseries.py. Just because those classes are crucial to the classes _FlowBy, FlowByActivity, and FlowBySector functioning.

Great input, thanks, I'll make that change!

catherinebirney commented 1 year ago

@bl-young Thanks for these import fixes!

catherinebirney commented 1 year ago

I will pull this branch into recursive-refac once the checks on PR #364 are complete