Skip to content

Commit

Permalink
Merge pull request #387 from HajimeKawahara/hotfix
Browse files Browse the repository at this point in the history
removed negative value assert (hotfix to v1.3)
  • Loading branch information
HajimeKawahara authored Jun 1, 2023
2 parents 2f64a10 + 6a940da commit 89e33b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/exojax/spec/set_ditgrid.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def ditgrid_linear_interval(input_variable, dit_grid_resolution=0.1, weight = No
if weight is None:
weight = 1.0

assert np.min(weight * input_variable) > 0.0, "There exists negative or zero value. Consider to use np.abs."
#assert np.min(weight * input_variable) > 0.0, "There exists negative or zero value. Consider to use np.abs."
wxmin = np.min(weight * input_variable)
wxmax = np.max(weight * input_variable)
wxmax = np.nextafter(wxmax, np.inf, dtype=wxmax.dtype)
Expand Down

0 comments on commit 89e33b8

Please sign in to comment.