-
Notifications
You must be signed in to change notification settings - Fork 16
Description
This issue is a follow-up for Pull Request: #413
waccmToMusicBox.py defines this function:
def writeInitCSV(initValues, filename):
About halfway through that function we have this line of code:
fp.write("{}.{} [{}]".format(reaction_type, key, value[unitIndex]))
To do: That line of code needs to be changed for the new format for CSV columns titles:
Column naming convention: PREFIX.name.unit (e.g., CONC.A.mol m-3)
Updated all test configs and CSV files to new format with mandatory time.s column
Ideally we could call Conditions.formatReactionVarUnits() to create each column title. Is there such a function defined in the Conditions class? If not, then we can either create that new virtual function or simply change the code here.
To do: writeInitCSV() takes a dictionary of initial values. That incoming list should have time.s with a value of 0.0 as the first element (because these are initial conditions). Make sure that time.s ends up in the first column.