Loading xspec models...
---------------------------------------------------------------------------
RuntimeWarning Traceback (most recent call last)
<ipython-input-1-949d564e9c35> in <module>()
1 get_ipython().magic(u'matplotlib inline')
----> 2 from threeML import *
3 import os
/usr/local/Cellar/python/HEAD/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/threeML-0.3.2-py2.7.egg/threeML/__init__.py in <module>()
35 from .exceptions import custom_exceptions
36 from .exceptions.custom_exceptions import custom_warnings
---> 37 from .plugin_prototype import PluginPrototype
38
39 try:
/usr/local/Cellar/python/HEAD/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/threeML-0.3.2-py2.7.egg/threeML/plugin_prototype.py in <module>()
4
5 import abc
----> 6 from astromodels.utils.valid_variable import is_valid_variable_name
7 import warnings
8
build/bdist.macosx-10.11-x86_64/egg/astromodels/__init__.py in <module>()
build/bdist.macosx-10.11-x86_64/egg/astromodels/xspec/factory.py in <module>()
build/bdist.macosx-10.11-x86_64/egg/astromodels/xspec/factory.py in setup_xspec_models()
build/bdist.macosx-10.11-x86_64/egg/astromodels/xspec/factory.py in xspec_model_factory(model_name, xspec_function, model_type, definition)
<string> in <module>()
/Users/jburgess/.astromodels/data/XS_gadem.py in <module>()
9 from astromodels.xspec import _xspec
10
---> 11 class XS_gadem(Function1D):
12
13 """
/usr/local/Cellar/python/HEAD/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/astromodels-0.2.3-py2.7-macosx-10.11-x86_64.egg/astromodels/functions/function.pyc in __init__(cls, name, bases, dct)
254 for parameter_name, parameter_definition in function_definition['parameters'].iteritems():
255
--> 256 this_parameter = FunctionMeta.parse_parameter_definition(name, parameter_name, parameter_definition)
257
258 cls.__parameters[this_parameter.name] = this_parameter
/usr/local/Cellar/python/HEAD/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/astromodels-0.2.3-py2.7-macosx-10.11-x86_64.egg/astromodels/functions/function.pyc in parse_parameter_definition(func_name, par_name, definition)
436
437 new_parameter = Parameter(par_name, value, min_value=min_value, max_value=max_value,
--> 438 delta=delta, desc=desc, free=free, unit=unit)
439
440 return new_parameter
/usr/local/Cellar/python/HEAD/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/astromodels-0.2.3-py2.7-macosx-10.11-x86_64.egg/astromodels/parameter.pyc in __init__(self, name, value, min_value, max_value, delta, desc, free, unit, prior)
553 # well as a prior
554
--> 555 super(Parameter, self).__init__(name, value, min_value=min_value, max_value=max_value, desc=desc, unit=unit)
556
557 self._free = bool(free)
/usr/local/Cellar/python/HEAD/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/astromodels-0.2.3-py2.7-macosx-10.11-x86_64.egg/astromodels/parameter.pyc in __init__(self, name, value, min_value, max_value, desc, unit)
173
174 self._max_value = None # this will be overwritten immediately in the next line
--> 175 self.max_value = max_value
176
177 # Store description
/usr/local/Cellar/python/HEAD/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/astromodels-0.2.3-py2.7-macosx-10.11-x86_64.egg/astromodels/dual_access_class.pyc in __setattr__(self, key, value)
51 warnings.warn("Attribute %s does not exist. Check for typos." % key, NonExistingAttribute)
52
---> 53 super(DualAccessClass, self).__setattr__(key, value)
54
55 def _add_attribute(self, name, value):
/usr/local/Cellar/python/HEAD/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/astromodels-0.2.3-py2.7-macosx-10.11-x86_64.egg/astromodels/parameter.pyc in handle_quantity(instance, value, *args, **kwargs)
91 new_value = input_type(value)
92
---> 93 return method(instance, new_value, *args, **kwargs)
94
95 except TypeError:
/usr/local/Cellar/python/HEAD/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/astromodels-0.2.3-py2.7-macosx-10.11-x86_64.egg/astromodels/parameter.pyc in _set_max_value(self, max_value)
418 warnings.warn("The current value of the parameter %s (%s) "
419 "was above the new maximum %s." % (self.name, self.value, self._max_value),
--> 420 exceptions.RuntimeWarning)
421 self._value = self._max_value
422
RuntimeWarning: The current value of the parameter switch (2.0) was above the new maximum 1.0.