Skip to content

Instantly share code, notes, and snippets.

@cdeil
Created July 29, 2014 19:40
Show Gist options
  • Select an option

  • Save cdeil/315b00aa3e6387e9aba3 to your computer and use it in GitHub Desktop.

Select an option

Save cdeil/315b00aa3e6387e9aba3 to your computer and use it in GitHub Desktop.
========================================================== test session starts ==========================================================
platform darwin -- Python 2.7.8 -- pytest-2.5.1
Running tests with Astropy version 0.4rc3.dev9437.
Running tests in astropy /Users/deil/code/astropy/docs.
Platform: Darwin-13.3.0-x86_64-i386-64bit
Executable: /opt/local/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
Full Python Version:
2.7.8 (default, Jul 13 2014, 17:11:32)
[GCC 4.2.1 Compatible Apple LLVM 5.1 (clang-503.0.40)]
encodings: sys: ascii, locale: UTF-8, filesystem: utf-8, unicode bits: 15
byteorder: little
float info: dig: 15, mant_dig: 15
Numpy: 1.8.1
Scipy: 0.14.0
Matplotlib: 1.3.1
h5py: 2.3.1
plugins: bench, cache, cov, pep8, rerunfailures, xdist
collected 7664 items / 6 skipped
astropy/config/configuration.py .
astropy/config/tests/test_configs.py ..............
astropy/constants/__init__.py .
astropy/constants/tests/test_constant.py ..............
astropy/convolution/kernels.py ...
astropy/convolution/tests/test_convolve.py ...............................................................................................................
astropy/convolution/tests/test_convolve_fft.py ...................................................................................................................................................................................................................................................................................................................................................
astropy/convolution/tests/test_convolve_kernels.py ..............................................................
astropy/convolution/tests/test_discretize.py ...s...........s..........
astropy/convolution/tests/test_kernel_class.py ..............................................................................................................................................................
astropy/coordinates/angles.py ..
astropy/coordinates/baseframe.py .
astropy/coordinates/sky_coordinate.py ..
astropy/coordinates/tests/test_angles.py ........................................................................
astropy/coordinates/tests/test_angular_separation.py ....
astropy/coordinates/tests/test_api_ape5.py ....s
astropy/coordinates/tests/test_arrays.py ..........................
astropy/coordinates/tests/test_distance.py .........
astropy/coordinates/tests/test_earth.py ........................
astropy/coordinates/tests/test_formatting.py ....................
astropy/coordinates/tests/test_frames.py ...................
astropy/coordinates/tests/test_matching.py ....
astropy/coordinates/tests/test_name_resolve.py ssssss
astropy/coordinates/tests/test_pickle.py ..
astropy/coordinates/tests/test_representation.py ............................................................................
astropy/coordinates/tests/test_sky_coord.py .......................................................................................................................................................................................................................................................................................................................................................................................x.
astropy/coordinates/tests/test_transformations.py .............
astropy/coordinates/tests/accuracy/test_fk4_no_e_fk4.py .
astropy/coordinates/tests/accuracy/test_fk4_no_e_fk5.py .
astropy/coordinates/tests/accuracy/test_galactic_fk4.py .
astropy/coordinates/tests/accuracy/test_icrs_fk5.py .
astropy/cosmology/tests/test_cosmology.py ....................................
astropy/io/ascii/daophot.py .
astropy/io/ascii/ipac.py .
astropy/io/ascii/tests/test_cds_header_from_readme.py ...
astropy/io/ascii/tests/test_compressed.py .....
astropy/io/ascii/tests/test_connect.py ........................
astropy/io/ascii/tests/test_fixedwidth.py ........................................................
astropy/io/ascii/tests/test_html.py .......s.......
astropy/io/ascii/tests/test_ipac_definitions.py ......................................
astropy/io/ascii/tests/test_read.py ............................................................................................
astropy/io/ascii/tests/test_types.py ......
astropy/io/ascii/tests/test_write.py ........
astropy/io/fits/diff.py .
astropy/io/fits/util.py .
astropy/io/fits/tests/test_checksum.py ....................
astropy/io/fits/tests/test_connect.py .........................
astropy/io/fits/tests/test_core.py ..................................................
astropy/io/fits/tests/test_diff.py ...............................
astropy/io/fits/tests/test_division.py .....
astropy/io/fits/tests/test_groups.py .......
astropy/io/fits/tests/test_hdulist.py ........................................
astropy/io/fits/tests/test_header.py ...........................................................................................................................................
astropy/io/fits/tests/test_image.py ................................................
astropy/io/fits/tests/test_nonstandard.py ...
astropy/io/fits/tests/test_structured.py .
astropy/io/fits/tests/test_table.py ..............................................................
astropy/io/fits/tests/test_uint.py ........
astropy/io/fits/tests/test_util.py .
astropy/io/misc/tests/test_hdf5.py .....................................
astropy/io/misc/tests/test_pickle_helpers.py ....
astropy/io/tests/test_registry.py ............................................................
astropy/io/votable/tests/converter_test.py ............................................
astropy/io/votable/tests/exception_test.py ..
astropy/io/votable/tests/table_test.py ..............
astropy/io/votable/tests/tree_test.py ...
astropy/io/votable/tests/ucd_test.py ..........
astropy/io/votable/tests/util_test.py ......................
astropy/io/votable/tests/vo_test.py ..............................................................................................................................................................................................................................................................................................................................
astropy/modeling/core.py ...
astropy/modeling/functional_models.py ..
astropy/modeling/tests/test_constraints.py .....................
astropy/modeling/tests/test_core.py .....
astropy/modeling/tests/test_fitters.py ..................
astropy/modeling/tests/test_functional_models.py ......
astropy/modeling/tests/test_input.py ..F.......F...................................
astropy/modeling/tests/test_models.py ....................................................................s........s..s...............................ssssss.s.s...
astropy/modeling/tests/test_parameters.py .....................................................
astropy/modeling/tests/test_polynomial.py .F...F...........
astropy/modeling/tests/test_projections.py ...................
astropy/modeling/tests/test_rotations.py .....
astropy/nddata/tests/test_flag_collection.py ....................
astropy/nddata/tests/test_nddata.py ................................................................................................................................................................................................
astropy/sphinx/ext/tests/test_automodapi.py ......
astropy/sphinx/ext/tests/test_automodsumm.py .
astropy/stats/funcs.py ....
astropy/stats/tests/test_funcs.py ...........
astropy/table/np_utils.py ..
astropy/table/operations.py ..
astropy/table/table.py .............
astropy/table/tests/test_column.py ........................................................................................................................................
astropy/table/tests/test_groups.py ........................................
astropy/table/tests/test_init_table.py ..................................................................................................................................................................................................................................................................................................
astropy/table/tests/test_item_access.py ........................................................
astropy/table/tests/test_masked.py ................................................................
astropy/table/tests/test_np_utils.py .
astropy/table/tests/test_operations.py ................................................................
astropy/table/tests/test_pickle.py ............
astropy/table/tests/test_pprint.py ..................................................................................
astropy/table/tests/test_row.py ..................................................
astropy/table/tests/test_subclass.py ..
astropy/table/tests/test_table.py .......................................................................................................................................................................................................................................................................................x.............................................................................................................................................................................................................................................................................................................x......................
astropy/tests/test_logger.py ...........................
astropy/tests/tests/test_imports.py ..
astropy/tests/tests/test_open_file_detection.py .
astropy/tests/tests/test_run_tests.py ..........
astropy/tests/tests/test_skip_remote_data.py s
astropy/tests/tests/test_socketblocker.py ...
astropy/time/core.py ..
astropy/time/tests/test_basic.py ......................................................................
astropy/time/tests/test_comparisons.py ...
astropy/time/tests/test_delta.py ................................................................................
astropy/time/tests/test_guess.py ....
astropy/time/tests/test_pickle.py .
astropy/time/tests/test_precision.py .......x.
astropy/time/tests/test_quantity_interaction.py ...........
astropy/time/tests/test_sidereal.py ...................
astropy/time/tests/test_ut1.py ...s
astropy/units/cds.py .
astropy/units/core.py ....
astropy/units/equivalencies.py ....
astropy/units/imperial.py .
astropy/units/format/console.py .
astropy/units/format/unicode_format.py .
astropy/units/tests/test_equivalencies.py ..................................................
astropy/units/tests/test_format.py ............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
astropy/units/tests/test_physical.py ....................
astropy/units/tests/test_quantity.py ................................................................
astropy/units/tests/test_quantity_array_methods.py ........x..............x..........x.x.............
astropy/units/tests/test_quantity_non_ufuncs.py xx
astropy/units/tests/test_quantity_ufuncs.py ................................................................................................................................................
astropy/units/tests/test_units.py ......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
astropy/utils/misc.py ...
astropy/utils/timer.py .
astropy/utils/iers/iers.py .
astropy/utils/iers/tests/test_iers.py .s
astropy/utils/tests/test_collections.py .....
astropy/utils/tests/test_compat.py .
astropy/utils/tests/test_console.py ........................................
astropy/utils/tests/test_data.py .sssss.........s..s..sssss.........s..s.
astropy/utils/tests/test_gzip.py ss
astropy/utils/tests/test_metadata.py ..............
astropy/utils/tests/test_misc.py ......s..
astropy/utils/tests/test_odict.py sssssssssssssssssssssssssssssssssssssssssss
astropy/utils/tests/test_state.py ..
astropy/utils/tests/test_timer.py .
astropy/utils/tests/test_xml.py ........
astropy/vo/client/tests/test_conesearch.py sssssssssssss...x.
astropy/vo/client/tests/test_vos_catalog.py ..............s
astropy/vo/samp/tests/test_client.py ...
astropy/vo/samp/tests/test_errors.py ...
astropy/vo/samp/tests/test_hub.py ..
astropy/vo/samp/tests/test_hub_proxy.py .....
astropy/vo/samp/tests/test_hub_script.py .
astropy/vo/samp/tests/test_standard_profile.py .XX
astropy/vo/samp/tests/test_web_profile.py X.
astropy/vo/validator/tests/test_inpect.py ....
astropy/vo/validator/tests/test_validate.py sss
astropy/wcs/tests/test_pickle.py ......
astropy/wcs/tests/test_profiling.py ..................................
astropy/wcs/tests/test_utils.py .........
astropy/wcs/tests/test_wcs.py ..................................................................................................................................
astropy/wcs/tests/test_wcsprm.py ...........................................................................................x....
astropy/wcs/tests/extension/test_extension.py .
../../../../../../../../Users/deil/code/astropy/docs/changelog.rst .
../../../../../../../../Users/deil/code/astropy/docs/credits.rst .
../../../../../../../../Users/deil/code/astropy/docs/getting_started.rst .
../../../../../../../../Users/deil/code/astropy/docs/index.rst .
../../../../../../../../Users/deil/code/astropy/docs/install.rst .
../../../../../../../../Users/deil/code/astropy/docs/known_issues.rst .
../../../../../../../../Users/deil/code/astropy/docs/license.rst .
../../../../../../../../Users/deil/code/astropy/docs/logging.rst .
../../../../../../../../Users/deil/code/astropy/docs/overview.rst .
../../../../../../../../Users/deil/code/astropy/docs/stability.rst .
../../../../../../../../Users/deil/code/astropy/docs/warnings.rst .
../../../../../../../../Users/deil/code/astropy/docs/config/config_0_4_transition.rst .
../../../../../../../../Users/deil/code/astropy/docs/config/index.rst .
../../../../../../../../Users/deil/code/astropy/docs/constants/index.rst .
../../../../../../../../Users/deil/code/astropy/docs/convolution/index.rst .
../../../../../../../../Users/deil/code/astropy/docs/convolution/kernels.rst .
../../../../../../../../Users/deil/code/astropy/docs/convolution/using.rst .
../../../../../../../../Users/deil/code/astropy/docs/coordinates/angles.rst .
../../../../../../../../Users/deil/code/astropy/docs/coordinates/definitions.rst .
../../../../../../../../Users/deil/code/astropy/docs/coordinates/formatting.rst .
../../../../../../../../Users/deil/code/astropy/docs/coordinates/frames.rst .
../../../../../../../../Users/deil/code/astropy/docs/coordinates/index.rst .
../../../../../../../../Users/deil/code/astropy/docs/coordinates/matchsep.rst .
../../../../../../../../Users/deil/code/astropy/docs/coordinates/representations.rst .
../../../../../../../../Users/deil/code/astropy/docs/coordinates/sgr-example.rst .
../../../../../../../../Users/deil/code/astropy/docs/coordinates/skycoord.rst .
../../../../../../../../Users/deil/code/astropy/docs/coordinates/transforming.rst .
../../../../../../../../Users/deil/code/astropy/docs/cosmology/index.rst .
../../../../../../../../Users/deil/code/astropy/docs/development/building.rst .
../../../../../../../../Users/deil/code/astropy/docs/development/ccython.rst .
../../../../../../../../Users/deil/code/astropy/docs/development/codeguide.rst .
../../../../../../../../Users/deil/code/astropy/docs/development/codeguide_emacs.rst .
../../../../../../../../Users/deil/code/astropy/docs/development/docguide.rst .
../../../../../../../../Users/deil/code/astropy/docs/development/docrules.rst .
../../../../../../../../Users/deil/code/astropy/docs/development/releasing.rst .
../../../../../../../../Users/deil/code/astropy/docs/development/scripts.rst .
../../../../../../../../Users/deil/code/astropy/docs/development/testguide.rst .
../../../../../../../../Users/deil/code/astropy/docs/development/vision.rst .
../../../../../../../../Users/deil/code/astropy/docs/development/workflow/additional_git_topics.rst .
../../../../../../../../Users/deil/code/astropy/docs/development/workflow/command_history.rst .
../../../../../../../../Users/deil/code/astropy/docs/development/workflow/development_workflow.rst .
../../../../../../../../Users/deil/code/astropy/docs/development/workflow/get_devel_version.rst .
../../../../../../../../Users/deil/code/astropy/docs/development/workflow/git_edit_workflow_examples.rst .
../../../../../../../../Users/deil/code/astropy/docs/development/workflow/git_install.rst .
../../../../../../../../Users/deil/code/astropy/docs/development/workflow/git_resources.rst .
../../../../../../../../Users/deil/code/astropy/docs/development/workflow/maintainer_workflow.rst .
../../../../../../../../Users/deil/code/astropy/docs/development/workflow/patches.rst .
../../../../../../../../Users/deil/code/astropy/docs/development/workflow/terminal_cast.rst .
../../../../../../../../Users/deil/code/astropy/docs/development/workflow/virtual_pythons.rst .
../../../../../../../../Users/deil/code/astropy/docs/development/workflow/virtualenv_detail.rst .
../../../../../../../../Users/deil/code/astropy/docs/io/misc.rst .
../../../../../../../../Users/deil/code/astropy/docs/io/registry.rst .
../../../../../../../../Users/deil/code/astropy/docs/io/unified.rst .
../../../../../../../../Users/deil/code/astropy/docs/io/ascii/base_classes.rst .
../../../../../../../../Users/deil/code/astropy/docs/io/ascii/extension_classes.rst .
../../../../../../../../Users/deil/code/astropy/docs/io/ascii/fixed_width_gallery.rst .
../../../../../../../../Users/deil/code/astropy/docs/io/ascii/index.rst .
../../../../../../../../Users/deil/code/astropy/docs/io/ascii/read.rst .
../../../../../../../../Users/deil/code/astropy/docs/io/ascii/write.rst .
../../../../../../../../Users/deil/code/astropy/docs/io/fits/index.rst .
../../../../../../../../Users/deil/code/astropy/docs/io/fits/appendix/faq.rst .
../../../../../../../../Users/deil/code/astropy/docs/io/fits/appendix/header_transition.rst .
../../../../../../../../Users/deil/code/astropy/docs/io/fits/appendix/history.rst .
../../../../../../../../Users/deil/code/astropy/docs/io/fits/usage/examples.rst .
../../../../../../../../Users/deil/code/astropy/docs/io/fits/usage/headers.rst .
../../../../../../../../Users/deil/code/astropy/docs/io/fits/usage/image.rst .
../../../../../../../../Users/deil/code/astropy/docs/io/fits/usage/misc.rst .
../../../../../../../../Users/deil/code/astropy/docs/io/fits/usage/scripts.rst .
../../../../../../../../Users/deil/code/astropy/docs/io/fits/usage/table.rst .
../../../../../../../../Users/deil/code/astropy/docs/io/fits/usage/unfamiliar.rst .
../../../../../../../../Users/deil/code/astropy/docs/io/fits/usage/verification.rst .
../../../../../../../../Users/deil/code/astropy/docs/io/votable/api_exceptions.rst .
../../../../../../../../Users/deil/code/astropy/docs/io/votable/index.rst .
../../../../../../../../Users/deil/code/astropy/docs/modeling/algorithms.rst .
../../../../../../../../Users/deil/code/astropy/docs/modeling/design.rst .
../../../../../../../../Users/deil/code/astropy/docs/modeling/fitting.rst .
../../../../../../../../Users/deil/code/astropy/docs/modeling/index.rst .
../../../../../../../../Users/deil/code/astropy/docs/modeling/models.rst .
../../../../../../../../Users/deil/code/astropy/docs/modeling/new.rst .
../../../../../../../../Users/deil/code/astropy/docs/modeling/parameters.rst .
../../../../../../../../Users/deil/code/astropy/docs/nddata/index.rst .
../../../../../../../../Users/deil/code/astropy/docs/nddata/nddata.rst .
../../../../../../../../Users/deil/code/astropy/docs/nddata/subclassing.rst .
../../../../../../../../Users/deil/code/astropy/docs/stats/index.rst .
../../../../../../../../Users/deil/code/astropy/docs/table/access_table.rst .
../../../../../../../../Users/deil/code/astropy/docs/table/construct_table.rst .
../../../../../../../../Users/deil/code/astropy/docs/table/index.rst .
../../../../../../../../Users/deil/code/astropy/docs/table/io.rst .
../../../../../../../../Users/deil/code/astropy/docs/table/masking.rst .
../../../../../../../../Users/deil/code/astropy/docs/table/modify_table.rst .
../../../../../../../../Users/deil/code/astropy/docs/table/operations.rst .
../../../../../../../../Users/deil/code/astropy/docs/time/index.rst .
../../../../../../../../Users/deil/code/astropy/docs/units/combining_and_defining.rst .
../../../../../../../../Users/deil/code/astropy/docs/units/conversion.rst .
../../../../../../../../Users/deil/code/astropy/docs/units/decomposing_and_composing.rst .
../../../../../../../../Users/deil/code/astropy/docs/units/equivalencies.rst .
../../../../../../../../Users/deil/code/astropy/docs/units/format.rst .
../../../../../../../../Users/deil/code/astropy/docs/units/index.rst .
../../../../../../../../Users/deil/code/astropy/docs/units/quantity.rst .
../../../../../../../../Users/deil/code/astropy/docs/units/standard_units.rst .
../../../../../../../../Users/deil/code/astropy/docs/utils/index.rst .
../../../../../../../../Users/deil/code/astropy/docs/vo/index.rst .
../../../../../../../../Users/deil/code/astropy/docs/vo/conesearch/client.rst .
../../../../../../../../Users/deil/code/astropy/docs/vo/conesearch/index.rst .
../../../../../../../../Users/deil/code/astropy/docs/vo/conesearch/validator.rst .
../../../../../../../../Users/deil/code/astropy/docs/vo/samp/advanced_embed_samp_hub.rst .
../../../../../../../../Users/deil/code/astropy/docs/vo/samp/example_clients.rst .
../../../../../../../../Users/deil/code/astropy/docs/vo/samp/example_hub.rst .
../../../../../../../../Users/deil/code/astropy/docs/vo/samp/example_table_image.rst .
../../../../../../../../Users/deil/code/astropy/docs/vo/samp/index.rst .
../../../../../../../../Users/deil/code/astropy/docs/wcs/history.rst .
../../../../../../../../Users/deil/code/astropy/docs/wcs/index.rst .
../../../../../../../../Users/deil/code/astropy/docs/wcs/relax.rst .
../../../../../../../../Users/deil/code/astropy/docs/whatsnew/0.1.rst .
../../../../../../../../Users/deil/code/astropy/docs/whatsnew/0.2.rst .
../../../../../../../../Users/deil/code/astropy/docs/whatsnew/0.3.rst .
../../../../../../../../Users/deil/code/astropy/docs/whatsnew/0.4.rst .
../../../../../../../../Users/deil/code/astropy/docs/whatsnew/index.rst .
=============================================================== FAILURES ================================================================
______________________________________________ TestInputType.test_input1D[model2-params2] _______________________________________________
self = <astropy.modeling.tests.test_input.TestInputType object at 0x110119550>, model = <class 'astropy.modeling.polynomial.Chebyshev1D'>
params = [2]
@pytest.mark.parametrize(('model', 'params'), model1d_params)
def test_input1D(self, model, params):
m = model(*params)
> m(self.x)
astropy/modeling/tests/test_input.py:58:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <Chebyshev1D(2, c0=0.0, c1=0.0, c2=0.0)>, inputs = (array(5.3),), kwargs = {}, format_info = ()
def __call__(self, *inputs, **kwargs):
inputs, format_info = self.prepare_inputs(*inputs, **kwargs)
> outputs = self.evaluate(*itertools.chain(inputs, self.param_sets))
astropy/modeling/core.py:239:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
x = <class 'astropy.modeling.polynomial.Chebyshev1D'>, coeffs = (array(5.3), array([ 0.]), array([ 0.]), array([ 0.]))
@classmethod
def evaluate(x, *coeffs):
> return cls.clenshaw(x, coeffs)
E NameError: global name 'cls' is not defined
astropy/modeling/polynomial.py:400: NameError
_________________________________________________ TestFitting.test_linear_fitter_1dcheb _________________________________________________
self = <astropy.modeling.tests.test_input.TestFitting object at 0x110a63090>
def test_linear_fitter_1dcheb(self):
"""
1 pset, 1 set 1D x, 1 set 1D y, Chebyshev 1D polynomial
"""
expected = np.array(
[[2817.2499999999995,
4226.6249999999991,
1680.7500000000009,
273.37499999999926]]).T
ch1 = models.Chebyshev1D(3)
ch1.parameters = [0, 1, 2, 3]
> y1 = ch1(self.x1)
astropy/modeling/tests/test_input.py:121:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <Chebyshev1D(3, c0=0.0, c1=1.0, c2=2.0, c3=3.0)>, inputs = (array([ 0., 1., 2., 3., 4., 5., 6., 7., 8., 9.]),)
kwargs = {}, format_info = ([(10,)],)
def __call__(self, *inputs, **kwargs):
inputs, format_info = self.prepare_inputs(*inputs, **kwargs)
> outputs = self.evaluate(*itertools.chain(inputs, self.param_sets))
astropy/modeling/core.py:239:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
x = <class 'astropy.modeling.polynomial.Chebyshev1D'>
coeffs = (array([ 0., 1., 2., 3., 4., 5., 6., 7., 8., 9.]), array([ 0.]), array([ 1.]), array([ 2.]), array([ 3.]))
@classmethod
def evaluate(x, *coeffs):
> return cls.clenshaw(x, coeffs)
E NameError: global name 'cls' is not defined
astropy/modeling/polynomial.py:400: NameError
____________________________________________ TestFitting.test_linear_fitter_1D[model_class1] ____________________________________________
self = <astropy.modeling.tests.test_polynomial.TestFitting object at 0x1108a9b90>
model_class = <class 'astropy.modeling.polynomial.Chebyshev1D'>
@pytest.mark.parametrize(('model_class'), linear1d.keys())
def test_linear_fitter_1D(self, model_class):
""" Test fitting with LinearLSQFitter"""
parameters = linear1d[model_class]['parameters']
kwargs = linear1d[model_class]['kwargs']
model = model_class(*parameters, **kwargs)
> y1 = model(self.x1)
astropy/modeling/tests/test_polynomial.py:77:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <Chebyshev1D(3, c0=1.2, c1=2.0, c2=2.3, c3=0.2)>
inputs = (array([-1. , -0.97979798, -0.95959596, -0.93939394, -0.91919192,
...9899 ,
0.91919192, 0.93939394, 0.95959596, 0.97979798, 1. ]),)
kwargs = {}, format_info = ([(100,)],)
def __call__(self, *inputs, **kwargs):
inputs, format_info = self.prepare_inputs(*inputs, **kwargs)
> outputs = self.evaluate(*itertools.chain(inputs, self.param_sets))
astropy/modeling/core.py:239:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
x = <class 'astropy.modeling.polynomial.Chebyshev1D'>
coeffs = (array([-1. , -0.97979798, -0.95959596, -0.93939394, -0.91919192,
...9899 ,
0.91919192, 0.93939394, 0.95959596, 0.97979798, 1. ]), array([ 1.2]), array([ 2.]), array([ 2.3]), array([ 0.2]))
@classmethod
def evaluate(x, *coeffs):
> return cls.clenshaw(x, coeffs)
E NameError: global name 'cls' is not defined
astropy/modeling/polynomial.py:400: NameError
__________________________________________ TestFitting.test_non_linear_fitter_1D[model_class1] __________________________________________
self = <astropy.modeling.tests.test_polynomial.TestFitting object at 0x1108a9c10>
model_class = <class 'astropy.modeling.polynomial.Chebyshev1D'>
@pytest.mark.parametrize(('model_class'), linear1d.keys())
def test_non_linear_fitter_1D(self, model_class):
""" Test fitting with non-linear LevMarLSQFitter"""
parameters = linear1d[model_class]['parameters']
kwargs = linear1d[model_class]['kwargs']
model = model_class(*parameters, **kwargs)
> y1 = model(self.x1)
astropy/modeling/tests/test_polynomial.py:87:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <Chebyshev1D(3, c0=1.2, c1=2.0, c2=2.3, c3=0.2)>
inputs = (array([-1. , -0.97979798, -0.95959596, -0.93939394, -0.91919192,
...9899 ,
0.91919192, 0.93939394, 0.95959596, 0.97979798, 1. ]),)
kwargs = {}, format_info = ([(100,)],)
def __call__(self, *inputs, **kwargs):
inputs, format_info = self.prepare_inputs(*inputs, **kwargs)
> outputs = self.evaluate(*itertools.chain(inputs, self.param_sets))
astropy/modeling/core.py:239:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
x = <class 'astropy.modeling.polynomial.Chebyshev1D'>
coeffs = (array([-1. , -0.97979798, -0.95959596, -0.93939394, -0.91919192,
...9899 ,
0.91919192, 0.93939394, 0.95959596, 0.97979798, 1. ]), array([ 1.2]), array([ 2.]), array([ 2.3]), array([ 0.2]))
@classmethod
def evaluate(x, *coeffs):
> return cls.clenshaw(x, coeffs)
E NameError: global name 'cls' is not defined
astropy/modeling/polynomial.py:400: NameError
============================== 4 failed, 7544 passed, 107 skipped, 12 xfailed, 3 xpassed in 218.61 seconds ==============================
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment