Skip to content

Commit

Permalink
Merge pull request sandialabs#65 from sandialabs/small_fix_to_ReadExodus
Browse files Browse the repository at this point in the history
using filled() method of the numpy masked array
  • Loading branch information
ralberd authored Oct 11, 2023
2 parents 742cd0d + dfd88d7 commit f4e2ed3
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 f4e2ed3

Please sign in to comment.