Skip to content

Commit

Permalink
use np.nan_to_num correctly in test_loads
Browse files Browse the repository at this point in the history
  • Loading branch information
akeeste committed Oct 21, 2024
1 parent 0c5f5be commit ef669bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mhkit/tests/loads/test_loads.py
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ def test_mler_wave_amp_normalize(self):
mler["WaveSpectrum"] = self.mler["Res_Spec"].values
mler["Phase"] = self.mler["phase"].values
k = resource.wave_number(wave_freq, 70)
np.nan_to_num(k, 0)
k = np.nan_to_num(k, nan=0)
mler_norm = loads.extreme.mler_wave_amp_normalize(4.5 * 1.9, mler, self.sim, k)
mler_norm.reset_index(drop=True, inplace=True)

Expand Down

0 comments on commit ef669bd

Please sign in to comment.