Skip to content

Commit

Permalink
numpy error
Browse files Browse the repository at this point in the history
  • Loading branch information
HansKallekleiv committed Jan 15, 2025
1 parent 1879859 commit 3860aca
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

def surface_to_float32_array(surface: xtgeo.RegularSurface) -> io.BytesIO:
values = surface.values.astype(np.float32)
values.fill_value = np.NaN
values.fill_value = np.nan
values = np.ma.filled(values)

# Rotate 90 deg left.
Expand Down

0 comments on commit 3860aca

Please sign in to comment.