timothydmorton / isochrones

Pythonic stellar model grid access; easy MCMC fitting of stellar properties
http://isochrones.readthedocs.org
MIT License
119 stars 63 forks source link

nosetests isochrones not passing #80

Closed jvines closed 5 years ago

jvines commented 5 years ago

Hi,

I just installed the isochrones packages, I manually downloaded the required files and stored them in ~/.isochrones and when running nosetests isochrone I get the following:

an 11 tests in 0.557s

FAILED (errors=4)

I thought it wouldn't matter and tried to run some examples in your API so in a jupyter notebook I ran the following:

from isochrones import StarModel from isochrones.mist import MIST_Isochrone mist = MIST_Isochrone()

but I got the following error:


TypeError Traceback (most recent call last)

in () ----> 1 mist = MIST_Isochrone() /Users/jvines/anaconda2/lib/python2.7/site-packages/isochrones-1.2.2.dev0-py2.7.egg/isochrones/mist/isochrone.pyc in __init__(self, *args, **kwargs) 34 self.feh_col = 7 35 ---> 36 super().__init__(*args, **kwargs) 37 38 def Z_surf(self, mass, age, feh): TypeError: super() takes at least 1 argument (0 given) I'm working on a Macbook Pro 2017 touch bar, OSX Mojave and Python 2.7 I tried installing isochrones with both pip and cloning the repo, with no avail. Thank you
timothydmorton commented 5 years ago

Hi Jose-

I no longer support python 2.x; you'll have to upgrade to python 3+ to use it.

Also, as I'm telling everyone who's raising issues recently, stay tuned for a new version shortly (will be based off the bolo branch, which is the current (not-quite-stable) dev branch).

On Wed, Feb 20, 2019 at 7:14 PM Jose Vines notifications@github.com wrote:

Hi,

I just installed the isochrones packages, I manually downloaded the required files and stored them in ~/.isochrones and when running nosetests isochrone I get the following:

an 11 tests in 0.557s

FAILED (errors=4)

I thought it wouldn't matter and tried to run some examples in your API so in a jupyter notebook I ran the following:

from isochrones import StarModel from isochrones.mist import MIST_Isochrone mist = MIST_Isochrone()

but I got the following error:

TypeError Traceback (most recent call last) in () ----> 1 mist = MIST_Isochrone()

/Users/jvines/anaconda2/lib/python2.7/site-packages/isochrones-1.2.2.dev0-py2.7.egg/isochrones/mist/isochrone.pyc in init(self, *args, *kwargs) 34 self.feh_col = 7 35 ---> 36 super().init(args, **kwargs) 37 38 def Z_surf(self, mass, age, feh):

TypeError: super() takes at least 1 argument (0 given)

I'm working on a Macbook Pro 2017 touch bar, OSX Mojave and Python 2.7

I tried installing isochrones with both pip and cloning the repo, with no avail.

Thank you

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/timothydmorton/isochrones/issues/80, or mute the thread https://github.com/notifications/unsubscribe-auth/ABzr29YP3rPOcOtBQD41RvQnE_-p0sttks5vPeUDgaJpZM4bGYkV .

-- about.me/tim.morton

jvines commented 5 years ago

Hi Timothy,

I understand, thank you very much for the quick answer.

Cheers