You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The implementation of model log compression in #532 has a bug which causes OM2 runs to fail.
Compression is currently run from the cice.py driver, using the get_log_files() and compress_log_files() methods. The get_log_files_method() searches the work directory for files matching regex patterns contained in the model.logs_to_compress list.
The "|".join(self.logs_to_compress) statement produces "", which then matches every file in the model's work directory. model.compress_log_files() then tries to compress and delete everything.
The implementation of model log compression in #532 has a bug which causes OM2 runs to fail.
Compression is currently run from the
cice.py
driver, using theget_log_files()
andcompress_log_files()
methods. Theget_log_files_method()
searches the work directory for files matching regex patterns contained in themodel.logs_to_compress
list.For example in
cice.py
we set:payu/payu/models/cice.py
Lines 58 to 61 in 0c2a837
which matches all the desired log files for CICE4 in ESM1.5.
While for
cice5.py
we set:payu/payu/models/cice5.py
Lines 45 to 46 in 0c2a837
The intended behaviour is for no files to be compressed when
model.logs_to_compress
is empty.In the actual implementation, the opposite happens when
model.logs_to_compress
is empty:payu/payu/models/cice.py
Lines 335 to 339 in 0c2a837
The
"|".join(self.logs_to_compress)
statement produces""
, which then matches every file in the model's work directory.model.compress_log_files()
then tries to compress and delete everything.In OM2, this causes the following error.
The text was updated successfully, but these errors were encountered: