sczesla / PyAstronomy

A collection of astronomy-related routines in Python
154 stars 35 forks source link

period on pyasl.ExoplanetEU() #9

Closed sousasag closed 9 years ago

sousasag commented 9 years ago

Hi,

Just another small thing that I found on pyasl, for the ExoplanetEU.

The period of the planets from this database seem to be not correct. maybe a problem with parsing of this column?

Cheers, Sérgio

In [5]:   sc = pyasl.ExoplanetEU()

In [6]:   data = sc.getAllData()

In [8]: data['period']
Out[8]: 
array([  3.93230819e-062,   1.26104796e-076,   1.15314137e+214, ...,
         0.00000000e+000,   0.00000000e+000,   0.00000000e+000])

In [9]: data['period'][10:20]
Out[9]: 
array([  3.25259809e-086,   3.25259809e-086,   1.24395485e-047,
         5.96163564e-263,   5.96162052e-263,   5.96163564e-263,
         3.12707042e-264,   2.72208146e-077,   1.30420246e-076,
         1.78394550e-072])
sczesla commented 9 years ago

Dear Sérgio,

you are right. There was an error assigning the periods. I pushed a bug fix to correct this.

Thanks, Stefan