0

I am trying to import ParametricModel as follows:

from astropy.modeling import ParametricModel

But it shows following error:

Traceback (most recent call last): File "", line 1, in ImportError: cannot import name ParametricModel

Why can't I import ParametricModel?

Two-Bit Alchemist
  • 17,966
  • 6
  • 47
  • 82
user1682623
  • 11
  • 1
  • 2
  • I am not familiar with this package and their documentation is confusing. At one point, this model was located in `astropy.modeling.core.ParametricModel`. Does making that change work? (`from astropy.modeling.core import ParametricModel`) – Two-Bit Alchemist Jul 24 '15 at 20:56

1 Answers1

0

That class was renamed in Astropy v0.4. See the API changes in the changelog for details (under the astropy.modeling section). Make sure any documentation you're looking at matches your astropy version (via astropy.__version__).

Iguananaut
  • 21,810
  • 5
  • 50
  • 63