There was an error while loading. Please reload this page.
1 parent b739e9e commit c657e43Copy full SHA for c657e43
1 file changed
opendrift/export/io_netcdf.py
@@ -47,6 +47,10 @@ def write_buffer(self):
47
self._netCDF_encoding = encoding
48
return
49
50
+ if self.result.sizes['time'] == 0:
51
+ logger.debug('No new time steps to write')
52
+ return
53
+
54
self.outfile = Dataset(self.outfile_name, 'a') # Re-open file at each write
55
numtimes = self.outfile['time'].shape[0]
56
0 commit comments