skyfielders / python-skyfield

Elegant astronomy for Python
MIT License
1.42k stars 213 forks source link

First access to time.dut1 prints to console #611

Closed chylu closed 3 years ago

chylu commented 3 years ago

Sample code:

from skyfield.api import load
ts = load.timescale()
time = ts.tai_jd(0)
print("The next line probably says something like '32.184 37.0 70.25898853004271' but we didn't print it.")
test = time.dut1 # getting this property prints

Repeated calls to dut1 on the same object doesn't seem to print; it's just the first call.

brandon-rhodes commented 3 years ago

That's unfortunate! Could you check which Skyfield version you have installed?

brandon-rhodes commented 3 years ago

(It's possible that you're using the old 1.29 from September, in which case you might be hitting bug #455.)

chylu commented 3 years ago

Ah, you are correct. I had gotten my interpreters/packages switched around. I thought I was using a newer version but I wasn't. Thanks.

brandon-rhodes commented 3 years ago

I'm glad the fix was a simple one and that your project is moving again!