catalyst-cooperative / pudl

The Public Utility Data Liberation Project provides analysis-ready energy system data to climate advocates, researchers, policymakers, and journalists.
https://catalyst.coop/pudl
MIT License
456 stars 105 forks source link

Reorganize how PUDL module imports are handled #1905

Open zaneselvans opened 1 year ago

zaneselvans commented 1 year ago

We have been limping along with a manual, brute-force "import everything all the time" approach to ensuring that all our modules are imported, but this is getting unwieldy, and it seems like it may be time to try and understand how imports really work and do them correctly / dynamically

Current Situation

Problems

Resources

Research Notes

On __init__.py variables not always reloading

jdangerx commented 1 year ago

localhost_8000_ Did a quick profile using python -X importtime -c "import pudl" and tuna - here's a screenshot.