Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

STRUCTURE operation fails in recent numpy and losoto version #152

Open
adrabent opened this issue Feb 22, 2024 · 0 comments
Open

STRUCTURE operation fails in recent numpy and losoto version #152

adrabent opened this issue Feb 22, 2024 · 0 comments

Comments

@adrabent
Copy link
Collaborator

Dear all,

if I try using losoto with a numpy version later than 1.23.0 and the current latest release of losoto I get the following error message:

Traceback (most recent call last):
  File "/usr/local/bin/losoto", line 155, in <module>
    returncode += ops[ op ]._run_parser( soltab, parser, step )
  File "/usr/local/lib/python3.8/dist-packages/losoto/operations/structure.py", line 16, in _run_parser
    return run(soltab, doUnwrap, refAnt, plotName, ndiv)
  File "/usr/local/lib/python3.8/dist-packages/losoto/operations/structure.py", line 161, in run
    ymin = np.max(1e-9,np.min(variance[myselect]))
  File "<__array_function__ internals>", line 200, in amax
  File "/usr/local/lib/python3.8/dist-packages/numpy/core/fromnumeric.py", line 2820, in amax
    return _wrapreduction(a, np.maximum, 'max', axis, None, out,
  File "/usr/local/lib/python3.8/dist-packages/numpy/core/fromnumeric.py", line 86, in _wrapreduction
    return ufunc.reduce(obj, axis, dtype, out, **passkwargs)
TypeError: 'numpy.float64' object cannot be interpreted as an integer

I guess something seems to be still messed up with the change of using types in numpy.

Alex

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant