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

Automated parallel computing to speed up data download #128

Open
aakash10gupta opened this issue Nov 7, 2023 · 1 comment
Open

Automated parallel computing to speed up data download #128

aakash10gupta opened this issue Nov 7, 2023 · 1 comment

Comments

@aakash10gupta
Copy link
Member

While downloading data using PySEP, some steps of the procedure seem to be very slow, and if the flags requiring these steps are turned on, the data download can take a long time. I was wondering if it is possible to parallelize the fetching and processing of the seismograms. Most of the machines have multiple processors at their disposal but only one processor seems to be used for all of the processes unless the user explicitly codes a workaround to use multiple cores simultaneously for the processing. It might be beneficial to have a feature within PySEP which can detect the number of processors in a users machine and speed up the process accordingly. The processes that seem to be the slowest are response removal and resampling, and would largely benefit from the parallelization. I am not sure about the implementational challenges and would be eager to hear thoughts from others.

@bch0w
Copy link
Member

bch0w commented Nov 16, 2023

Thanks for the suggestion @aakash10gupta, I think that's a good idea. I'm not sure about speeding up data fetching as a lot of that is handled by ObsPy, but we can definitely parallelize the processing. It would take some reorganization of the code but should be manageable. Let me look into it and see what would be required.

@bch0w bch0w added this to the PySEP v0.6.0 milestone Nov 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants