Skip to content

Commit

Permalink
need a try/except because ndim shouldn't be reset
Browse files Browse the repository at this point in the history
  • Loading branch information
doutriaux1 committed Jul 11, 2019
1 parent 85056c0 commit 04ad61a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion pcmdi_metrics/pcmdi/scripts/pcmdi_compute_climatologies.py
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,10 @@ def runClim(A):
s.setAxis(0, t)
# copy orignal attributes
for att, value in store_attributes(V).items():
setattr(s, att, value)
try:
setattr(s, att, value)
except Exception:
pass
f.write(s, dtype=data.dtype)
f.close()
if A.verbose:
Expand Down
4 changes: 2 additions & 2 deletions pcmdi_metrics/version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
__version__ = 'v1.2'
__git_tag_describe__ = 'v1.2-58-gec93e57'
__git_sha1__ = 'ec93e57248be0ad4b6c81d860e30714717f82c6b'
__git_tag_describe__ = 'v1.2-59-g85056c0'
__git_sha1__ = '85056c0355c3b396cd759aa7432482506698b891'

0 comments on commit 04ad61a

Please sign in to comment.