ExoData icon indicating copy to clipboard operation
ExoData copied to clipboard

Build failure: AttributeError: 'numpy.float64' object has no attribute 'rescale'

Open ryanvarley opened this issue 7 years ago • 0 comments

Seems to have occurred whilst #19 was broken. It looks like the latest catalogue version has some bad data. Find and fix / make the catalogue able to handle it.

======================================================================
ERROR: test_T (exodata.tests.test_catalogue.TestCatalogue_Planet)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/travis/build/ryanvarley/ExoData/exodata/tests/test_catalogue.py", line 32, in test_T
    x = [planet.T for planet in exocat.planets]
  File "/home/travis/build/ryanvarley/ExoData/exodata/astroclasses.py", line 394, in T
    return self.calcTemperature()
  File "/home/travis/build/ryanvarley/ExoData/exodata/astroclasses.py", line 741, in calcTemperature
    return eq.MeanPlanetTemp(self.albedo, self.star.T, self.star.R, self.a).T_p
  File "/home/travis/build/ryanvarley/ExoData/exodata/equations.py", line 196, in T_p
    return T_p.rescale(aq.degK)
AttributeError: 'numpy.float64' object has no attribute 'rescale'

ryanvarley avatar Sep 04 '17 21:09 ryanvarley