Closed gschivley closed 4 years ago
This is... definitely true. I was envisioning this happening as part of #374 and #182, which I would like to take care of before we add EIA 861 or the ISO/LMP data.
Closing this as a duplicate of #374 and #182 -- we will get rid of the excessive if/else statements!
Both
pudl.workspace.datastore
andpudl.etl
have functions with a bunch ofif/else
statements depending on the datasource. As more datasources are added to PUDL this is going to get unwieldy. I'd propose a structure of defining small new functions that are accessed via a dictionary. Really, anything that gets rid of a long list ofif/else
statements.