Closed smithara closed 5 years ago
Thanks for pointing this out, you're completely right :) I implemented the suggested changes. You can get an updated version from PyPI now.
I'm happy to hear that it's useful. Please let me know if you encounter more bugs, feedback is very welcome :D
https://github.com/ancklo/ChaosMagPy/blob/3e2375376571058b59f2ef4c8f41285ef1499ebd/chaosmagpy/model_utils.py#L735
Two minor things that prevent it from running:
len(coeffs_1) != len(coeffs_2)
in place ofis not
nmax
needs to be forced to be int,nmax = int(np.sqrt(len(coeffs_1) + 1) - 1)
I haven't tested it otherwise but it looks rightBtw, thanks for providing the library, it's been useful to me :)