Skip to content

Commit

Permalink
Merge pull request #159 from UW-Hydro/develop
Browse files Browse the repository at this point in the history
Fix datatype conversion for dimensions
  • Loading branch information
arbennett committed Mar 19, 2019
2 parents 5307063 + b453819 commit 742ef68
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 742ef68

Please sign in to comment.