question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

download_file and flaky server (was: Trouble opening IERS table)

See original GitHub issue

This 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:closed
  • Created 4 years ago
  • Comments:38 (23 by maintainers)

github_iconTop GitHub Comments

1reaction
Warren-Portercommented, Sep 30, 2019

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.

1reaction
timjcommented, Sep 11, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found