Skip to content

Commit b453819

Browse files
committed
Fix datatype conversion for dimensions
1 parent 54c2208 commit b453819

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

metsim/metsim.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ def setup_netcdf_output(self, filename, times):
334334
for dim in self.domain['mask'].dims:
335335
dim_vals = self.domain[dim].values
336336
dim_dtype = dtype_map.get(
337-
dim_vals.dtype, self.params['out_precision'])
337+
str(dim_vals.dtype), self.params['out_precision'])
338338
dim_var = ncout.createVariable(dim, dim_dtype, (dim, ))
339339
dim_var[:] = dim_vals
340340

0 commit comments

Comments
 (0)