Skip to content

Commit

Permalink
Fix datatype conversion for dimensions
Browse files Browse the repository at this point in the history
  • Loading branch information
arbennett committed Mar 12, 2019
1 parent 54c2208 commit b453819
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metsim/metsim.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ def setup_netcdf_output(self, filename, times):
for dim in self.domain['mask'].dims:
dim_vals = self.domain[dim].values
dim_dtype = dtype_map.get(
dim_vals.dtype, self.params['out_precision'])
str(dim_vals.dtype), self.params['out_precision'])
dim_var = ncout.createVariable(dim, dim_dtype, (dim, ))
dim_var[:] = dim_vals

Expand Down

0 comments on commit b453819

Please sign in to comment.