Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ICF - Off-model calculator automation #77

Open
wants to merge 40 commits into
base: icfOffmodelExcelCalc
Choose a base branch
from

Conversation

caroarriaga
Copy link

@caroarriaga caroarriaga commented Nov 19, 2024

This pull request updates the off-model calculator script: update_offmodel_calculator_workbooks_with_TM_output.py

Original behavior:

After generating model data using the R scripts for each calculator, the update_offmodel_calculator_workbooks_with_TM_output.py would update the off-model calculators. Then, each calculator would be opened and closed to update the formulas. Finally, the script summarize_offmodel_results.py was run to generate an output summary.

New behavior:

The update_offmodel_calculator_workbooks_with_TM_output.py updates the model data, SB 375 data directly from BOX folders. Then, programmatically opens and closes all off-model calculators and creates a summary output file in BOX. The summarize_offmodel_results.py script is now depricated.

Additional features:

  • Each time the script runs, a unique identifier (UI) is created with the date and time. This is used to add entries to a master log located in BOX, where the master workbooks are stored.
  • All off-model calculators are updated based on the ModelRuns_RTP2025.xlsx config file, J column when indicates "Yes".
  • The SB375 file only updates the values for the corresponding year (e.g. 2035 or 2050).
  • Special methods to update specific calculators can be done by the introduction of subclasses (e.g. script cshare.py updates the car share off-model calculator).
  • Methods that are shared amongst calculators are in the super class OffModelCalculator in calcs.py.
  • A variable locations.xlsx file is part of each master workbook folder. This indicates where all the data to update is located in for each off-model calculator.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants