-
Notifications
You must be signed in to change notification settings - Fork 271
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
new pyaps0.3.6 can not download dataset #1321
Comments
Potential solutionThe plan to solve the bug involves addressing two main issues: the failure to download weather model data due to outdated API syntax and the What is causing this bug?The bug is caused by two primary issues:
CodeTo address these issues, the following code modifications are recommended:
Example Code Modification for Progress Bar# In src/mintpy/objects/progress.py
def update_amount(self, newAmount=0, suffix=''):
...
if self.span == 0:
percentDone = 0
else:
diffFromMin = float(self.amount - self.min)
percentDone = (diffFromMin / float(self.span)) * 100.0
... How to replicate the bugTo replicate the bug, follow these steps:
By implementing the proposed solutions, the script should handle API syntax changes and zero-span scenarios in the progress bar, preventing the bug from occurring. Click here to create a Pull Request with the proposed solution Files used for this task: Changes on src/mintpy/cli/tropo_pyaps3.pyAnalysis of
|
Please try to re-run the tropo_pyaps3.py -f /home/PycharmProjects/hyp3_mintpy/2025_junlian/timeseries.h5 --model ERA5 -g /home/PycharmProjects/hyp3_mintpy/2025_junlian/inputs/geometryGeo.h5 -w ${WEATHER_DIR} --debug-mode |
command:
|
#1322 command-1:
output-1:
command-2:
output-2:
|
#1322 |
Great! That makes sense. Could you please issue a PR in mintpy for this fix? We could also fix this in |
Okay, I've submitted the PR. |
Description of the problem
The program encountered an error at the "step - correct_troposphere" step.
Full script that generated the error
Full error message
System information
The text was updated successfully, but these errors were encountered: