download_file and flaky server (was: Trouble opening IERS table)
See original GitHub issueThis causes NumPy to throw an error:
from astropy.utils import iers
dat = iers.IERS_Auto.open()
I am guessing the error is because an empty array is being generated from the IERS data and being sent to NumPy. Here is the error traceback and error message:
ERROR: ValueError: zero-size array to reduction operation minimum which has no identity [numpy.core.fromnumeric]
Error in sys.excepthook:
Traceback (most recent call last):
File "/data/home004/warren.porter/anaconda3/envs/CrIS_geolocation_3/lib/python3.7/site-packages/astropy/logger.py", line 262, in _excepthook
self._excepthook_orig(etype, value, traceback)
TypeError: 'NoneType' object is not callable
Original exception was:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/data/home004/warren.porter/anaconda3/envs/CrIS_geolocation_3/lib/python3.7/site-packages/astropy/utils/iers/iers.py", line 660, in open
cls.iers_table = cls.read(file=filename)
File "/data/home004/warren.porter/anaconda3/envs/CrIS_geolocation_3/lib/python3.7/site-packages/astropy/utils/iers/iers.py", line 507, in read
table = cls._combine_a_b_columns(iers_a)
File "/data/home004/warren.porter/anaconda3/envs/CrIS_geolocation_3/lib/python3.7/site-packages/astropy/utils/iers/iers.py", line 470, in _combine_a_b_columns
table.meta['predictive_index'] = np.min(np.flatnonzero(is_predictive))
File "/data/home004/warren.porter/anaconda3/envs/CrIS_geolocation_3/lib/python3.7/site-packages/numpy/core/fromnumeric.py", line 2442, in amin
initial=initial)
File "/data/home004/warren.porter/anaconda3/envs/CrIS_geolocation_3/lib/python3.7/site-packages/numpy/core/fromnumeric.py", line 83, in _wrapreduction
return ufunc.reduce(obj, axis, dtype, out, **passkwargs)
ValueError: zero-size array to reduction operation minimum which has no identity
Any assistance would be greatly appreciated. Thank you!
Issue Analytics
- State:
- Created 4 years ago
- Comments:38 (23 by maintainers)
Top Results From Across the Web
Manage flaky tests - Azure Pipelines - Microsoft Learn
Enable flaky test management To configure flaky test management, choose Project settings, and select Test management in the Pipelines section. ...
Read more >High non-200 response codes are generated - BrowserStack
High non-200 response codes generated by your application server. Learn how to avoid flaky tests due to a high number of non-200 response...
Read more >Untitled
Server problems black ops 3, Hannelore bedert nieuwe cd, Class 10 physics chapter 10, Gmat club forum kellogg 2013, Hidroksitler, Off to work...
Read more >Untitled
Address table mountain, Cardiac index, Orbit housing hastings, Tomadol 900 air ... #Moinard Roblox obc generator download, Breslow ice center open skate, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
That sounds promising. I’m currently traveling at the moment and I won’t be able to test the update until mid-October, but I will let you folks know once I do so.
Just a footnote here but LSST are hitting this exact problem with IERS A. Our problem is exacerbated by our CI system not having
$HOME
defined so every time we run multi-process pytest within the build we download the file again multiple times. Sometimes they are truncated and we were getting the exact same problem from line 470 of iers.py. @pllim thanks for pointing me at this issue. We were hoping not to have to deal with a local copy of the tables in Jenkins in the short term but it sounds like we may have to bump that up a bit.