You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
since numpy>1.23.0 the INTERPOLATE operation in losoto fails:
2022-07-14 09:37:05 - INFO - --> Starting 'INTERPOLATE' step (operation: INTERPOLATE).
/usr/local/lib/python3.8/dist-packages/losoto/operations/interpolate.py:150: VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences (which is a list-or-tuple of lists-or-tuples-or ndarrays with different lengths or shapes) is deprecated. If you meant to do this, you must specify 'dtype=object' when creating the ndarray.
new_vals[selection] = np.interp(new_axisvals, orig_axisvals[unflagged],
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/interpolate.py", line 18, in _run_parser
return run( soltab, outSoltab, axisToRegrid, newDelta, delta, maxFlaggedWidth, log)
File "/usr/local/lib/python3.8/dist-packages/losoto/operations/interpolate.py", line 150, in run
new_vals[selection] = np.interp(new_axisvals, orig_axisvals[unflagged],
IndexError: only integers, slices (`:`), ellipsis (`...`), numpy.newaxis (`None`) and integer or boolean arrays are valid indices
Closing remaining open files:
output.h5...
Dear all,
since
numpy>1.23.0
theINTERPOLATE
operation inlosoto
fails:This is the parset:
An h5parm for testing can be found here.
Cheers,
Alex
The text was updated successfully, but these errors were encountered: