Open znicholls opened 3 years ago
@lewisjared and @rgieseke fyi, workaround is just pin f90nml==1.2
I opened https://github.com/marshallward/f90nml/issues/131 the other day and a fix is in the works. I've been pinning 1.2 locally to resolve this
Legend
I've updated PyPI to 1.3.1 which fixes the errant comma and also defaults back to the old behaviour. I've also added an array string test so this should be detected in the future.
Thank you so much for your work! :-) Used by NASA and in IPCC climate model pipelines ... quite a userbase!
Legend thanks @marshallward !
Describe the bug
f90nml 1.3's string splitting (https://github.com/marshallward/f90nml/pull/120/files) can cause MAGICC running to break if you try to write a long list of string arrays. For example, f90nml will now write output like the below, which can't be parsed by MAGICC (because the commas are in the wrong place).
Failing Test
TBD
Expected behaviour
The output should be like the below
Screenshots
If applicable, add screenshots to help explain your problem.
System (please complete the following information):
Additional context
It's unclear to me if this is a pymagicc bug or an f90nml bug. One for further investigation.