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

intermittency of success in downloading data through the same request #111

Open
aakash10gupta opened this issue Jul 18, 2023 · 1 comment

Comments

@aakash10gupta
Copy link
Member

While downloading data through PySEP, the process fails sometimes but eventually completes successfully on re-executing the job multiple times. It seems like the error has something to do with connecting to IRIS servers. I encounter similar issues while downloading data independently of PySEP, and it seems to me that PySEP is just encountering the same issue while trying to reach IRIS. The rate of occurrence seems high enough to think of a solution. I have been using a recursive function to keep making download requests till data is downloaded successfully, when downloading data independently of PySEP. I am guessing that others have encountered this issue as well, and incorporating a similar solution strategy within PySEP would save the users from having to manually rerun the download several times.

Screenshots of a typical error message when downloading data through PySEP -
error_1
error_2
error_3

Associated pysep.log -
[2023-07-17 13:04:53] - pysep - INFO: creating event metadata with user parameters
[2023-07-17 13:04:53] - pysep - INFO: event info summary - origin time: 2001-06-23T20:33:14.000000Z; lat=-16.27; lon=-73.64; depth[km]=33.0; magnitude=8.4
[2023-07-17 13:04:53] - pysep - INFO: full output directory is: datawf/atico_2001_LHZ_raw_0S0
[2023-07-17 13:04:53] - pysep - INFO: writing config YAML file
[2023-07-17 13:04:53] - pysep - INFO: writing event as QuakeML
[2023-07-17 13:04:53] - pysep - INFO: querying IRIS for station metadata

@aakash10gupta aakash10gupta changed the title intermittancy of success in downloading data through the same request intermittency of success in downloading data through the same request Jul 18, 2023
@bch0w
Copy link
Member

bch0w commented Aug 1, 2023

Just adding that I see this intermittently when running tests ($ pytest test_pysep.py) in some of the 'get' functions.

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