Hi,
thanks for creating this great tool.
I think found an issue when there's a nan Ms set in the output .mx3 file:
This line:
|
array_max = np.max(array) |
returns 0 for a region with a zero
Ms set, which then in division leads to a
nan. This
nan propagates to the output
.mx3 file. The function should probably return 0 if the
array_max value is zero, assuming that the user did not set the
Ms to a negative number.
Thanks!
Hi,
thanks for creating this great tool.
I think found an issue when there's a
nanMs set in the output .mx3 file:This line:
mumax3c/mumax3c/scripts/util.py
Line 93 in b5b9f08
returns 0 for a region with a zero
Msset, which then in division leads to anan. Thisnanpropagates to the output.mx3file. The function should probably return 0 if thearray_maxvalue is zero, assuming that the user did not set theMsto a negative number.Thanks!