zemogle / chemevol

Chemical evolution python package
3 stars 3 forks source link

evolve_all() failed due to NameError: undefined function "exit" #32

Open idchiang opened 4 years ago

idchiang commented 4 years ago

Python version: v3.7.6 (with iPython version 7.14.0) Module version: cloned master branch (after Nov 7, 2018 commits) Code to reproduce issue:

In [1]: import chemevol as ch                                                                                                                       
In [2]: galaxies = ch.BulkEvolve('chemevol-master/chemevol/examples/data.csv')                                                                      
In [3]: galaxies.upload_csv()                                                                                                                       
In [4]: galaxies.evolve_all()  

Error message:

---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-4-a33a9c8e9706> in <module>
----> 1 galaxies.evolve_all()

~/anaconda3/lib/python3.7/site-packages/chemevol-0.3-py3.7.egg/chemevol/evolve.py in evolve_all(self)
    404         for item in self.inits:
    405             logger.warning('Starting run on {}'.format(item['name']))
--> 406             ch = ChemModel(**item)
    407 
    408             snrate = ch.supernova_rate()

~/anaconda3/lib/python3.7/site-packages/chemevol-0.3-py3.7.egg/chemevol/evolve.py in __init__(self, **inputs)
    120         else:
    121             print ('oops please check the dust sources are in the right format and try again')
--> 122             exit()
    123 
    124     def load_sfh(self):

NameError: name 'exit' is not defined