AMA-Labs / cal-notebooks

CEOS Analytics Laboratory notebooks and tools
0 stars 1 forks source link

np.bool is deprecated #2

Closed jdh-ama closed 11 months ago

jdh-ama commented 1 year ago

Impacted notebooks:

DeprecationWarning: `np.bool` is a deprecated alias for the builtin `bool`. To silence this warning, use `bool` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.bool_` here.
Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations

The fix is explained in the warning message.

jdh-ama commented 1 year ago

Replace np.bool with bool in these two notebooks.