Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ryanvarley opened this issue Sep 4, 2017 · 0 comments
Labels

Comments

@ryanvarley
Copy link
Owner

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 ryanvarley added the bug label Sep 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant