Skip to content

Commit 2f4751d

Browse files
committed
Relax some checks to allow emulated variables.
1 parent 65e85a6 commit 2f4751d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/iris/fileformats/netcdf/saver.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ def _setncattr(variable, name, attribute):
462462
NOTE: variable needs to be a _thread_safe_nc._ThreadSafeWrapper subclass.
463463
464464
"""
465-
assert hasattr(variable, "THREAD_SAFE_FLAG")
465+
# assert hasattr(variable, "THREAD_SAFE_FLAG")
466466
attribute = _bytes_if_ascii(attribute)
467467
return variable.setncattr(name, attribute)
468468

@@ -2336,7 +2336,7 @@ def set_packing_ncattrs(cfvar):
23362336
NOTE: cfvar needs to be a _thread_safe_nc._ThreadSafeWrapper subclass.
23372337
23382338
"""
2339-
assert hasattr(cfvar, "THREAD_SAFE_FLAG")
2339+
# assert hasattr(cfvar, "THREAD_SAFE_FLAG")
23402340
if packing:
23412341
if scale_factor:
23422342
_setncattr(cfvar, "scale_factor", scale_factor)

0 commit comments

Comments
 (0)