Skip to content

Commit

Permalink
from np.bool to bool
Browse files Browse the repository at this point in the history
  • Loading branch information
valeriupredoi committed Mar 22, 2023
1 parent b381b27 commit 3c6b3d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bgcval2/functions/applyLandMask.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
def loadDataMask(areafile, maskname):
global tmask
nc = dataset(areafile, 'r')
tmask[(areafile, maskname)] = np.array(nc.variables[maskname][:].squeeze(), dtype=np.bool)
tmask[(areafile, maskname)] = np.array(nc.variables[maskname][:].squeeze(), dtype=bool)
nc.close()
return tmask[(areafile, maskname)]

Expand Down

0 comments on commit 3c6b3d6

Please sign in to comment.