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

Missing cumtrapz attribute from scipy.integrate #1242

Closed
totaibi opened this issue Jul 27, 2024 · 2 comments
Closed

Missing cumtrapz attribute from scipy.integrate #1242

totaibi opened this issue Jul 27, 2024 · 2 comments

Comments

@totaibi
Copy link

totaibi commented Jul 27, 2024

Dear Yunjun, I hope you well

I got the following error within the tropospheric delay correction step:

calculating absolute delay for each date using PyAPS (Jolivet et al., 2011; 2014) ...
number of grib files used: 161
Traceback (most recent call last):
File "/home/thamer/miniconda3/envs/gdal/bin/smallbaselineApp.py", line 10, in
sys.exit(main())
^^^^^^
File "/home/thamer/miniconda3/envs/gdal/lib/python3.12/site-packages/mintpy/cli/smallbaselineApp.py", line 209, in main
run_smallbaselineApp(inps)
File "/home/thamer/miniconda3/envs/gdal/lib/python3.12/site-packages/mintpy/smallbaselineApp.py", line 1155, in run_smallbaselineApp
app.run(steps=inps.runSteps)
File "/home/thamer/miniconda3/envs/gdal/lib/python3.12/site-packages/mintpy/smallbaselineApp.py", line 935, in run
self.run_tropospheric_delay_correction(sname)
File "/home/thamer/miniconda3/envs/gdal/lib/python3.12/site-packages/mintpy/smallbaselineApp.py", line 682, in run_tropospheric_delay_correction
mintpy.cli.tropo_pyaps3.main(iargs)
File "/home/thamer/miniconda3/envs/gdal/lib/python3.12/site-packages/mintpy/cli/tropo_pyaps3.py", line 166, in main
run_tropo_pyaps3(inps)
File "/home/thamer/miniconda3/envs/gdal/lib/python3.12/site-packages/mintpy/tropo_pyaps3.py", line 741, in run_tropo_pyaps3
calc_delay_timeseries(inps)
File "/home/thamer/miniconda3/envs/gdal/lib/python3.12/site-packages/mintpy/tropo_pyaps3.py", line 676, in calc_delay_timeseries
tropo_data = get_delay(
^^^^^^^^^^
File "/home/thamer/miniconda3/envs/gdal/lib/python3.12/site-packages/mintpy/tropo_pyaps3.py", line 545, in get_delay
aps_obj = pa.PyAPS(
^^^^^^^^^
File "/home/thamer/PyAPS/pyaps3/objects.py", line 174, in init
[DDry,DWet] = processor.PTV2del(Pi,Ti,Vi,hgt,self.dict,verbose=verb)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/thamer/PyAPS/pyaps3/processor.py", line 193, in PTV2del
S1 = intg.cumtrapz(WonT,x=hgt,axis=-1)
^^^^^^^^^^^^^
AttributeError: module 'scipy.integrate' has no attribute 'cumtrapz'

The Scipy version (1.14.0), the mintpy version is the latest, and my PYAPS account is active.

Thank you in advance for your assistance

Copy link

welcome bot commented Jul 27, 2024

👋 Thanks for opening your first issue here! Please filled out the template with as much details as possible. We appreciate that you took the time to contribute!
Make sure you read our contributing guidelines.

@yunjunz
Copy link
Member

yunjunz commented Jul 27, 2024

This is a PyAPS issue, which has been fixed on PyAPS (insarlab/PyAPS#35) and included in its latest conda version 0.3.4. Please update your pyaps3.

@yunjunz yunjunz closed this as completed Jul 27, 2024
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

2 participants