Skip to content

Commit

Permalink
Replace numpy.NAN with numpy.nan
Browse files Browse the repository at this point in the history
numpy.NAN is no longer supported in numpy 2.x
  • Loading branch information
svniemeijer committed Jul 29, 2024
1 parent 63ba73c commit 6b2e14b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/_harppy.py
Original file line number Diff line number Diff line change
Expand Up @@ -1452,7 +1452,7 @@ def _extend_variable_for_dim(variable, dim_index, new_length):
shape = list(variable.data.shape)
shape[dim_index] = new_length - shape[dim_index]
filler = numpy.empty(shape, dtype=variable.data.dtype)
filler[:] = numpy.NAN
filler[:] = numpy.nan
variable.data = numpy.concatenate([variable.data, filler], axis=dim_index)


Expand Down

0 comments on commit 6b2e14b

Please sign in to comment.