Skip to content

Commit

Permalink
fix the casting error for phase
Browse files Browse the repository at this point in the history
  • Loading branch information
segasai committed Mar 3, 2023
1 parent fa7e593 commit 31cb032
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions py/minimint/mist_interpolator.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ def prepare(eep_prefix,
grid3d_filler(grid)

if k == 'phase':
grid[~np.isfinite(grid)] = -99
grid = np.round(grid).astype(np.int8)
if k == 'logage':
grid[:, :, :] = np.cumsum(grid, axis=2)
Expand Down

0 comments on commit 31cb032

Please sign in to comment.