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

goes_timerange() stops working after several calls #62

Open
cgoodric opened this issue May 31, 2023 · 0 comments
Open

goes_timerange() stops working after several calls #62

cgoodric opened this issue May 31, 2023 · 0 comments

Comments

@cgoodric
Copy link

I have an ETL script that wakes up every 10 minutes and downloads 10 minutes of lightning data using the goes_timerange() method. After about the 3rd or 4th call to goes_timerange() it throws the following exception:

  File "/tmp/tmpeb9dvq54prefect/sce_omnisci/noaa_goes.py", line 479, in extract                                                                            
    file_list_ds = goes_timerange(satellite=self.goes_satellite, product=self.goes_product, domain=self.goes_domain,                                       
  File "/home/calvin.goodrich/mambaforge/envs/wvp_goes/lib/python3.9/site-packages/goes2go/data.py", line 421, in goes_timerange                           
    _download(df, save_dir=save_dir, overwrite=overwrite, verbose=verbose)                                                                                 
  File "/home/calvin.goodrich/mambaforge/envs/wvp_goes/lib/python3.9/site-packages/goes2go/data.py", line 208, in _download                                
    with ThreadPoolExecutor(threads) as exe:                                                                                                               
  File "/home/calvin.goodrich/mambaforge/envs/wvp_goes/lib/python3.9/concurrent/futures/thread.py", line 144, in __init__                                  
    raise ValueError("max_workers must be greater than 0")          

This is on Python 3.9 and goes2go 2023.4.2

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

1 participant