Skip to content

Commit 742ef68

Browse files
authored
Merge pull request #159 from UW-Hydro/develop
Fix datatype conversion for dimensions
2 parents 5307063 + b453819 commit 742ef68

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)