CALIPSO-project / SPINacc

A spinup acceleration procedure for land surface models (LSM) . Developer team Mandresy Rasolonjatovo, Tianzhang Cai, Matthew Archer, Daniel Goll
4 stars 0 forks source link

Reformat the ML Config #52

Closed tztsai closed 4 months ago

tztsai commented 5 months ago

I use a Python file to replace the MLacc.def config in txt format, so that the program can directly import the file by from DEF_Trunk import config and read the config variables as its attributes, instead of reading the lines of the txt file and parse the variables.

Closes part of #41

ma595 commented 4 months ago

Tested the changes and packdata is produced, however it is only when we set start_from_scratch = False that packdata is produced and when set to True the code do not find 'packdata.nc'. Seems reverse. But we can adress it in another issue. Otherwise changes looks good.

This is a good point, behaviour should be reversed.