Failure to load timescale with builtin=False
See original GitHub issueTrying to follow along with the example here to manually update the IERS file and load.timescale(builtin=False)
appears to fail without attempting to download the file:
Python 3.9.0 (default, Nov 15 2020, 14:28:56)
[GCC 7.3.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from skyfield.api import load
>>> ts = load.timescale(builtin=False)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/brad/anaconda3/envs/test/lib/python3.9/site-packages/skyfield/iokit.py", line 354, in timescale
with self.open('finals2000A.all') as f:
File "/home/brad/anaconda3/envs/test/lib/python3.9/site-packages/skyfield/iokit.py", line 312, in open
return open(path, mode)
FileNotFoundError: [Errno 2] No such file or directory: './finals2000A.all'
Based on the documentation, I expected this:
>>> ts = load.timescale(builtin=False)
[#################################] 100% finals2000A.all
A regular call to load.timescale()
works normally.
Versions I’ve reproduced this error on:
- Python 3.8.5, 3.9.0
- skyfield 1.31, 1.32
Issue Analytics
- State:
- Created 3 years ago
- Comments:14 (6 by maintainers)
Top Results From Across the Web
Dates and Time — Skyfield documentation - Rhodes Mill
The Timescale object returned by load.timescale() manages the conversions between different time scales and is also how the programmer builds Time objects ...
Read more >Skyfield, how to use https:// instead of ftp
According to the docs you should be able to do a from skyfield.api import load ; load.timescale(builtin=False) but this fails for me also....
Read more >skyfield-data - PyPI
... load.timescale(builtin=False) # this command won't download the IERS file. For the record, using buitin=True as an argument to load the timescale data ......
Read more >Source code for caput.time - Read the Docs
_timescale = self.load.timescale(builtin=False) except IOError: warnings.warn( "Could not get timescale data from an official source.
Read more >Genetic circuit characterization and debugging using RNA‐seq
This analysis reveals several mechanistic causes of circuit failures. ... number of RNAPs passing that position that occur on the timescale of degradation)....
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
Just tried that. Though I am embarassed for not having tried that sooner, it is a good type of embarassed. It worked of course!
Thank you for your generosity toward someone with far far less experience than yourself.
Just tested the new version and everything looks good on my end now. Thanks for the quick fix!