Skip to content

Commit

Permalink
using filled() method of the numpy masked array because using a maske…
Browse files Browse the repository at this point in the history
…d array in newer jax (0.4.18) throws an error
  • Loading branch information
Ryan Alberdi committed Oct 11, 2023
1 parent 742cd0d commit dfd88d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion optimism/ReadExodusMesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def _read_coordinates(exodusDataset):
coordsX = exodusDataset.variables['coordx'][:]
coordsY = exodusDataset.variables['coordy'][:]

return np.column_stack([coordsX, coordsY])
return np.column_stack([coordsX.filled(), coordsY.filled()])


def _read_block_conns(exodusDataset, blockOrdinal):
Expand Down

0 comments on commit dfd88d7

Please sign in to comment.