drewpendergrass / CHEEREIO

This repository contains the code for CHEEREIO, which supports data assimilation and emissions inversions for arbitrary runs of the GEOS-Chem chemical transport model via an ensemble approach (i.e. without the model adjoint).
MIT License
10 stars 4 forks source link

ValueError: I/O operation on closed file. #15

Closed HuiruZhong closed 2 months ago

HuiruZhong commented 2 months ago

At line 124 in advance_timestep.py, the file handle j is used inside the with open(...) as j: block. However, it might be clearer to change it to f to align with the f.write() call and maintain consistency.

drewpendergrass commented 2 months ago

Thanks for pointing this out! I have fixed the code in the dev branch and it will be included in the next release.