Closed mishtaiwi closed 1 year ago
I've made some initial changes to the code detailed below:
pd.options.mode.chained_assignment = None
linesI've also moved all imports here: I:\NorMITs Demand\import\edge_replicant
I'm now finished with my review/changes in the code for now. The code is now ready for a bit more of an in-depth review.
A couple of points from my review @mishtaiwi:
Things for the next reviewer to keep an eye out for:
edge_cube_extractor.CheckFileExists
. There's already utils in the framework to do this.normits_demand/models/forecasting/edge_forecast.py
needs to be broken apart.
normits_demand/models/forecasting/edge_replicant.py
normits_demand/models/forecasting/edge_replicant.py
should have a front end and be a collection
of functions to achieve their specific goal. We can then attach other EDGE stuff to this model later if we are able to publish.Happy to send over a copy of the coding standards if you want a look. Let's focus on getting 80% of the way there for now and hit all the main points. It doesn't have to be perfect if other work needs doing.
Noting down some methodology questions/notes from my review. I want to make sure I understand why all the design decisions have been made. @mishtaiwi - we may want a call to go through this in detail. Let's add items to the forecasting backlog after discussion
I:\NorMITs Demand\import\edge_replicant\apply_growth\Segments2UCs.csv
links input matrices to userclasses. Does it makes sense to add the growth method and internal / external to here instead of hardcoding it?
Brought in the EDGE growth functions under normits_demand/models/forecasting/edge_forecast.py Call main function in normits_demand/models/forecasting/edge_replicant.py
Add the Cube export/file copying process and functions under normits_demand\utils being: c01_ExportCubeFunctions and r01_RunExportCube