timothydmorton / isochrones

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

Initialization of MIST_Isochrone() gives an error #76

Closed linoush closed 4 years ago

linoush commented 5 years ago

Hi,

I just downloaded isochrones in anaconda on a mac, and tried to follow the basic example by doing

from isochrones.mist import MIST_Isochrone
mist = MIST_Isochrone()

and I get the error


---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-1-527816afdff2> in <module>()
      1 from isochrones.mist import MIST_Isochrone
----> 2 mist = MIST_Isochrone()
      3 mist.radius(1.0, 9.7, 0.0) #M/Msun, log10(age), Fe/H
      4 #1.0429784536817184

/Users/lnecib/anaconda2/envs/GD1/lib/python2.7/site-packages/isochrones/mist/isochrone.pyc in __init__(self, *args, **kwargs)
     36             self.default_bands = self.default_bands + ('TESS', 'BP', 'RP')
     37 
---> 38         super().__init__(*args, **kwargs)
     39 
     40     def Z_surf(self, mass, age, feh):

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

How do I set this up correctly? Thanks, Lina

msotov commented 5 years ago

Hi,

I have the exact same problem, can you please take a look at it? I'm using a linux machine.

Thanks!

timothydmorton commented 5 years ago

You need to be using python 3. I'm no longer supporting python 2.

On Thu, Oct 25, 2018 at 3:09 PM Lina Necib notifications@github.com wrote:

Hi,

I just downloaded isochrones in anaconda on a mac, and tried to follow the basic example by doing

from isochrones.mist import MIST_Isochrone mist = MIST_Isochrone()

and I get the error


TypeError Traceback (most recent call last)

in () 1 from isochrones.mist import MIST_Isochrone ----> 2 mist = MIST_Isochrone() 3 mist.radius(1.0, 9.7, 0.0) #M/Msun, log10(age), Fe/H 4 #1.0429784536817184 /Users/lnecib/anaconda2/envs/GD1/lib/python2.7/site-packages/isochrones/mist/isochrone.pyc in __init__(self, *args, **kwargs) 36 self.default_bands = self.default_bands + ('TESS', 'BP', 'RP') 37 ---> 38 super().__init__(*args, **kwargs) 39 40 def Z_surf(self, mass, age, feh): TypeError: super() takes at least 1 argument (0 given) How do I set this up correctly? Thanks, Lina — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub , or mute the thread .

-- about.me/tim.morton