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

ICgen: error loading old ICs #6

Open
ibackus opened this issue Oct 16, 2015 · 0 comments
Open

ICgen: error loading old ICs #6

ibackus opened this issue Oct 16, 2015 · 0 comments
Labels

Comments

@ibackus
Copy link
Owner

ibackus commented Oct 16, 2015

Loading old ICs (from scanparams) in ChaNGa gives the following error:

IC = diskpy.ICgen.load('IC.p')
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-59-3eace429ef52> in <module>()
----> 1 IC = diskpy.ICgen.load('IC.p')

/usr/lusers/ibackus/diskpy/diskpy/ICgen/ICgen.pyc in load(filename)
    328 
    329             CDF = input_dict['CDF']
--> 330             ICobj = IC(r, sigma, CDF)
    331 
    332         else:

/usr/lusers/ibackus/diskpy/diskpy/ICgen/ICgen.pyc in __init__(self, r, sigma, CDF, profile_kind, settings)
    117         if (r is not None) or (profile_kind is not None):
    118 
--> 119             self.maker.sigma_gen(r, sigma, CDF)
    120 
    121         # Define a saving function

/usr/lusers/ibackus/diskpy/diskpy/ICgen/ICgen.pyc in sigma_gen(self, r, sigma, CDF)
    495             r, sigma = sigma_profile.make_profile(self._parent)
    496 
--> 497         sigma = make_sigma.sigma_gen(r, sigma, CDF)
    498         # Copy sigma to the parent (IC) object
    499         self._parent.sigma = sigma

/usr/lusers/ibackus/diskpy/diskpy/ICgen/make_sigma.pyc in __init__(self, r_bins, sigmaBinned, CDF)
     50 
     51         self.input_dict = {'r': r_bins, 'sigma': sigmaBinned}
---> 52         self._make_sigma(r_bins, sigmaBinned)
     53         self._make_pdf()
     54         self._make_cdf_inv(CDF)

/usr/lusers/ibackus/diskpy/diskpy/ICgen/make_sigma.pyc in _make_sigma(self, r_bins, sigmaBinned)
     81         r_bins = match_units(r_bins, 'au')[0]
     82         # Calculate spline interpolation
---> 83         sigspline = spline(r_bins, sigmaBinned, k=3, ext='zeros')
     84 #        print 'Calculating spline interpolation (slow for many data points)'
     85 #        sigspline = interp1d(r_bins,sigmaBinned,kind='cubic',fill_value=0.0,\

TypeError: __init__() got an unexpected keyword argument 'ext'
ibackus pushed a commit that referenced this issue Nov 4, 2015
@ibackus ibackus added the bug label Mar 24, 2016
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