Skip to content

Commit

Permalink
test1 was failing because wrong test on use of //
Browse files Browse the repository at this point in the history
  • Loading branch information
doutriaux1 committed Jun 14, 2015
1 parent b0f9b8c commit 8b568fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Packages/cdms2/Lib/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -1258,7 +1258,7 @@ def copyAxis(self, axis, newname=None, unlimited=0, index=None, extbounds=None):
if newaxis.isVirtual():
if len(axis)!=len(newaxis):
raise DuplicateAxisError(DuplicateAxis+newname)
elif unlimited==0 or (unlimited==1 and getNetcdfUseParallelFlag()==0):
elif unlimited==0 or (unlimited==1 and getNetcdfUseParallelFlag()!=0):
if len(axis)!=len(newaxis) or numpy.alltrue(numpy.less(numpy.absolute(newaxis[:]-axis[:]),1.e-5))==0:
raise DuplicateAxisError(DuplicateAxis+newname)
else:
Expand Down

0 comments on commit 8b568fe

Please sign in to comment.