Skip to content

Commit

Permalink
trunk:pre-proc: Updated writenetcdf-code in order to prevent errors w…
Browse files Browse the repository at this point in the history
…ith newer numpy versions.
  • Loading branch information
LSchueler committed Aug 18, 2017
1 parent ff09444 commit 1637fb1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pre-proc/writenetcdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,9 +194,9 @@ def writenetcdf(fhandle, vhandle=None, var=None, time=None, isdim=False, name=No
for i in range(len(attributes)):
hand.setncattr(attributes[i][0], attributes[i][1])

if var != None:
if var is not None:
shand = hand.shape
if time != None:
if time is not None:
svar = np.shape(var)
if np.size(np.shape(time)) == 0:
if np.size(svar) != (np.size(shand)-1):
Expand Down

0 comments on commit 1637fb1

Please sign in to comment.