Skip to content

Instantly share code, notes, and snippets.

@bsipocz
Last active June 12, 2016 14:55
Show Gist options
  • Save bsipocz/f42af5e837a7f270e0a27a1003dda427 to your computer and use it in GitHub Desktop.
Save bsipocz/f42af5e837a7f270e0a27a1003dda427 to your computer and use it in GitHub Desktop.
1.2rc1 testing with Ubuntu 14.04 python 3.4.3 issues #5076 #5078
=========================================================================================================== test session starts ============================================================================================================
platform linux -- Python 3.4.3, pytest-2.8.3, py-1.4.30, pluggy-0.3.1
Running tests with Astropy version 1.2rc1.
Running tests in /home/gkovacs/.local/lib/python3.4/site-packages/astropy.
Date: 2016-06-12T15:28:54
Platform: Linux-3.16.0-71-generic-x86_64-with-Ubuntu-14.04-trusty
Executable: /usr/bin/python3
Full Python Version:
3.4.3 (default, Oct 14 2015, 20:28:29)
[GCC 4.8.4]
encodings: sys: utf-8, locale: UTF-8, filesystem: utf-8
byteorder: little
float info: dig: 15, mant_dig: 15
Numpy: 1.11.0
Scipy: 0.16.1
Matplotlib: 1.5.0
h5py: not available
Pandas: 0.18.0
Using Astropy options: remote_data.
rootdir: /home/gkovacs/.local/lib/python3.4/site-packages/astropy, inifile:
collected 8333 items
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/_erfa/tests/test_erfa.py .......
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/analytic_functions/tests/test_blackbody.py .....
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/config/tests/test_configs.py ...............
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/constants/tests/test_constant.py ........
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/constants/tests/test_pickle.py xxxxxxxxx
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/convolution/tests/test_convolve.py ...............................................................................................................
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/convolution/tests/test_convolve_fft.py ...................................................................................................................................................................................................................................................................................................................................................
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/convolution/tests/test_convolve_kernels.py ..............................................................................
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/convolution/tests/test_discretize.py ...s...........s...............
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/convolution/tests/test_kernel_class.py ........................................................................................................................................................................................
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/convolution/tests/test_pickle.py .xx.xx.xx
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/tests/test_angles.py ........................................
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/tests/test_angular_separation.py ....
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/tests/test_api_ape5.py .....
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/tests/test_arrays.py .............
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/tests/test_atc_replacements.py ....
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/tests/test_celestial_transformations.py ..............
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/tests/test_distance.py .........
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/tests/test_earth.py .............
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/tests/test_formatting.py ..........
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/tests/test_frames.py .........................
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/tests/test_funcs.py ...
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/tests/test_iau_fullstack.py ....................................................
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/tests/test_intermediate_transformations.py ....................................................
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/tests/test_matching.py ......
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/tests/test_name_resolve.py ...
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/tests/test_pickle.py ....xx.x...xx.x...xx.x.
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/tests/test_regression.py ........
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/tests/test_representation.py ...............................................................................
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/tests/test_sites.py .......
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/tests/test_sky_coord.py .........................................................................................................................................................................................................................................................................................................................................................................................x..................F.
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/tests/test_skyoffset_transformations.py FFFFFFFFFFFFFFFFFFFFFFF
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/tests/test_solar_system.py s....ssss..ssssssss
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/tests/test_transformations.py ......
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/tests/test_unit_representation.py .
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/tests/accuracy/test_altaz_icrs.py ...x
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/tests/accuracy/test_ecliptic.py .....
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/tests/accuracy/test_fk4_no_e_fk4.py .
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/tests/accuracy/test_fk4_no_e_fk5.py .
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/tests/accuracy/test_galactic_fk4.py .
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/tests/accuracy/test_icrs_fk5.py .
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/cosmology/tests/test_cosmology.py .......................................
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/cosmology/tests/test_pickle.py ...
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/io/ascii/tests/test_c_reader.py ...........................x..................x.......x.x.................
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/io/ascii/tests/test_cds_header_from_readme.py ....
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/io/ascii/tests/test_compressed.py .......
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/io/ascii/tests/test_connect.py .............ss........
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/io/ascii/tests/test_ecsv.py ssssssss
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/io/ascii/tests/test_fixedwidth.py ...............................
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/io/ascii/tests/test_html.py s.ssssss.ssss.s.sss
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/io/ascii/tests/test_ipac_definitions.py ....................
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/io/ascii/tests/test_read.py ............................................................................................................s.
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/io/ascii/tests/test_rst.py .........
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/io/ascii/tests/test_types.py ...
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/io/ascii/tests/test_write.py ......................................
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/io/fits/tests/test_checksum.py .....................
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/io/fits/tests/test_connect.py ...........................
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/io/fits/tests/test_convenience.py ..
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/io/fits/tests/test_core.py ..................................................ss..........
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/io/fits/tests/test_diff.py ...................................
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/io/fits/tests/test_division.py .....
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/io/fits/tests/test_groups.py ........
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/io/fits/tests/test_hdulist.py .........................................
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/io/fits/tests/test_header.py ..................................................................................................................................................
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/io/fits/tests/test_image.py ........................................................
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/io/fits/tests/test_nonstandard.py ...
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/io/fits/tests/test_structured.py .
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/io/fits/tests/test_table.py .........................................................s.................
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/io/fits/tests/test_uint.py ........
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/io/fits/tests/test_util.py .
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/io/misc/tests/test_hdf5.py sssssssssssssssssssssssssssssssssssssssss
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/io/misc/tests/test_pickle_helpers.py ....
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/io/tests/test_registry.py ..............................
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/io/votable/tests/converter_test.py .......................
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/io/votable/tests/exception_test.py ..
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/io/votable/tests/table_test.py .........
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/io/votable/tests/tree_test.py ...
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/io/votable/tests/ucd_test.py .....
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/io/votable/tests/util_test.py ...........
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/io/votable/tests/vo_test.py ...........................................................................................................................................................................
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/modeling/tests/test_compound.py ................................................s
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/modeling/tests/test_constraints.py .....................
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/modeling/tests/test_core.py ............
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/modeling/tests/test_fitters.py .....................
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/modeling/tests/test_functional_models.py ............
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/modeling/tests/test_input.py ......................................................
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/modeling/tests/test_mappings.py ......
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/modeling/tests/test_models.py .....................................s.ssssssssssss..................ss...s.......s.........................sssss.s.............sssssss..ss....
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/modeling/tests/test_parameters.py .....................................................
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/modeling/tests/test_polynomial.py ............................s.........
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/modeling/tests/test_projections.py .......................................................................................
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/modeling/tests/test_rotations.py ...................
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/modeling/tests/test_utils.py ...
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/nddata/mixins/tests/test_ndarithmetic.py ..................................................................................................
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/nddata/mixins/tests/test_ndio.py .
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/nddata/mixins/tests/test_ndslicing.py ...........
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/nddata/tests/test_compat.py .................
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/nddata/tests/test_decorators.py ..........
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/nddata/tests/test_flag_collection.py ..........
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/nddata/tests/test_nddata.py ....................................
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/nddata/tests/test_nddata_base.py .
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/nddata/tests/test_nduncertainty.py ....................
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/nddata/tests/test_utils.py ..........................sssssssssssss..............
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/stats/lombscargle/implementations/tests/test_mle.py ........................
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/stats/lombscargle/implementations/tests/test_utils.py .............................................
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/stats/lombscargle/tests/test_lombscargle.py ...........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/stats/tests/test_bayesian_blocks.py .......
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/stats/tests/test_circstats.py .........
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/stats/tests/test_funcs.py ......................................s..s
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/stats/tests/test_histogram.py .........
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/stats/tests/test_info_theory.py ....
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/stats/tests/test_jackknife.py ...
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/stats/tests/test_sigma_clipping.py .....
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/table/tests/test_array.py ...
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/table/tests/test_bst.py .......
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/table/tests/test_column.py .....................................................................................
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/table/tests/test_groups.py ......................................
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/table/tests/test_index.py ................................................................................................................................................................................................................................................................................................................................................................................................................................................
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/table/tests/test_info.py ............
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/table/tests/test_init_table.py ...................................................................................................................................................
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/table/tests/test_item_access.py ..............................
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/table/tests/test_jsviewer.py ....
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/table/tests/test_masked.py ..................................
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/table/tests/test_mixin.py ..............................................................x....
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/table/tests/test_np_utils.py .
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/table/tests/test_operations.py ......................................
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/table/tests/test_pickle.py ...............
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/table/tests/test_pprint.py ........................................................
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/table/tests/test_row.py ..................................
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/table/tests/test_subclass.py ..
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/table/tests/test_table.py ...................................................................................................................................................................................................................................................................................................x..............................................
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/tests/test_logger.py .............................
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/tests/tests/test_imports.py ..
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/tests/tests/test_open_file_detection.py .
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/tests/tests/test_quantity_helpers.py .
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/tests/tests/test_run_tests.py ....
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/tests/tests/test_skip_remote_data.py .
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/tests/tests/test_socketblocker.py ....
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/time/tests/test_basic.py ........................................................
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/time/tests/test_comparisons.py ...
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/time/tests/test_corrs.py ...
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/time/tests/test_delta.py .................................................................................
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/time/tests/test_guess.py ....
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/time/tests/test_methods.py ...............................................
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/time/tests/test_pickle.py .
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/time/tests/test_precision.py .......x..
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/time/tests/test_quantity_interaction.py ...............
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/time/tests/test_sidereal.py ...................
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/time/tests/test_ut1.py ...s.
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/units/tests/test_equivalencies.py .....................................................
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/units/tests/test_format.py .........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/units/tests/test_logarithmic.py ................................................................................................................................................................................
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/units/tests/test_physical.py ...........
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/units/tests/test_quantity.py ........................................................................
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/units/tests/test_quantity_array_methods.py ..........................................x...............
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/units/tests/test_quantity_decorator.py ............................
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/units/tests/test_quantity_non_ufuncs.py xx
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/units/tests/test_quantity_ufuncs.py ...........................................................................................................................................................
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/units/tests/test_units.py .................................................................................................................................................................................................................................................
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/utils/compat/numpy/tests/test_broadcast_arrays.py ....
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/utils/iers/tests/test_iers.py ....s.
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/utils/tests/test_argparse.py .
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/utils/tests/test_codegen.py .
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/utils/tests/test_collections.py .....
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/utils/tests/test_compat.py .
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/utils/tests/test_console.py .......s....................
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/utils/tests/test_data.py ...........................
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/utils/tests/test_data_info.py .............
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/utils/tests/test_decorators.py ........s..........
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/utils/tests/test_fractions.py .
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/utils/tests/test_gzip.py .
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/utils/tests/test_introspection.py ....
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/utils/tests/test_metadata.py .................
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/utils/tests/test_misc.py .....s
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/utils/tests/test_odict.py .
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/utils/tests/test_state.py FF
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/utils/tests/test_subprocess.py .
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/utils/tests/test_timer.py .
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/utils/tests/test_xml.py .........s
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/visualization/scripts/tests/test_fits2bitmap.py ......
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/visualization/tests/test_histogram.py ...
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/visualization/tests/test_interval.py ..................
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/visualization/tests/test_norm.py s......
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/visualization/tests/test_stretch.py ...................................................................................................
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/visualization/tests/test_ui.py ......
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/visualization/tests/test_units.py ..
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/vo/client/tests/test_conesearch.py ......x..........x.
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/vo/client/tests/test_vos_catalog.py ...............
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/vo/samp/tests/test_client.py ....
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/vo/samp/tests/test_errors.py ...
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/vo/samp/tests/test_hub.py ...
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/vo/samp/tests/test_hub_proxy.py .....
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/vo/samp/tests/test_hub_script.py .
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/vo/samp/tests/test_standard_profile.py ...
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/vo/samp/tests/test_web_profile.py ..
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/vo/validator/tests/test_inpect.py ....
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/vo/validator/tests/test_validate.py ....
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/wcs/tests/test_pickle.py ......
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/wcs/tests/test_profiling.py ..................................
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/wcs/tests/test_utils.py .........................................
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/wcs/tests/test_wcs.py ...............................................................................
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/wcs/tests/test_wcsprm.py ....................................................................................................x..........
../../../home/gkovacs/.local/lib/python3.4/site-packages/astropy/wcs/tests/extension/test_extension.py .
================================================================================================================= FAILURES =================================================================================================================
__________________________________________________________________________________________________________ test_spherical_offsets __________________________________________________________________________________________________________
def test_spherical_offsets():
i00 = SkyCoord(0*u.arcmin, 0*u.arcmin, frame='icrs')
i01 = SkyCoord(0*u.arcmin, 1*u.arcmin, frame='icrs')
i10 = SkyCoord(1*u.arcmin, 0*u.arcmin, frame='icrs')
i11 = SkyCoord(1*u.arcmin, 1*u.arcmin, frame='icrs')
i22 = SkyCoord(2*u.arcmin, 2*u.arcmin, frame='icrs')
> dra, ddec = i00.spherical_offsets_to(i01)
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/tests/test_sky_coord.py:1193:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/sky_coordinate.py:746: in spherical_offsets_to
aframe = self.skyoffset_frame()
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/sky_coordinate.py:1056: in skyoffset_frame
return SkyOffsetFrame(origin=self, rotation=rotation)
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/builtin_frames/skyoffset.py:199: in __new__
newcls = make_skyoffset_cls(origin_frame.__class__)
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/builtin_frames/skyoffset.py:110: in make_skyoffset_cls
{'__doc__': SkyOffsetFrame.__doc__})
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cls = <class 'astropy.coordinates.builtin_frames.skyoffset.make_skyoffset_cls.<locals>.SkyOffsetMeta'>, name = 'SkyOffsetFrame'
bases = (<class 'astropy.coordinates.builtin_frames.skyoffset.SkyOffsetFrame'>, <class 'astropy.coordinates.builtin_frames.icrs.ICRS'>)
members = {'__doc__': '\n A frame which is relative to some specific position and oriented to match\n its frame.\n\n Sk...at', framename='dec', defaultunit='recommended')]}, 'default_representation': <property object at 0x7f02cd6f0958>, ...}
def __new__(cls, name, bases, members):
# Only 'origin' is needed here, to set the origin frame properly.
members['origin'] = CoordinateAttribute(frame=framecls, default=None)
# This has to be done because FrameMeta will set these attributes
# to the defaults from BaseCoordinateFrame when it creates the base
# SkyOffsetFrame class initially.
members['_frame_specific_representation_info'] = framecls._frame_specific_representation_info
members['_default_representation'] = framecls._default_representation
newname = name[:-5] if name.endswith('Frame') else name
newname += framecls.__name__
res = super(SkyOffsetMeta, cls).__new__(cls, newname, bases, members)
# now go through all the component names and make any spherical names be "lon" and "lat"
# instead of e.g. "ra" and "dec"
lists_done = []
for nm, component_list in res._frame_specific_representation_info.items():
if nm in ('spherical', 'unitspherical'):
gotlatlon = []
for i, comp in enumerate(component_list):
if component_list in lists_done:
# we need this because sometimes the component_
# list's are the exact *same* object for both
# spherical and unitspherical. So looping then makes
# the change *twice*. This hack bypasses that.
continue
if comp.reprname in ('lon', 'lat'):
dct = namedtuple_asdict(comp)
# this forces the component names to be 'lat' and
# 'lon' regardless of what the actual base frame
# might use
dct['framename'] = comp.reprname
> component_list[i] = type(comp)(**dct)
E TypeError: __new__() missing 1 required positional argument: 'reprname'
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/builtin_frames/skyoffset.py:95: TypeError
_____________________________________________________________________________________________ test_skyoffset[inradec0-expectedlatlon0-tolsep0] _____________________________________________________________________________________________
inradec = <Quantity [ 45., 45.] deg>, expectedlatlon = <Quantity [ 0., 0.] deg>, tolsep = <Quantity 0.001 arcsec>, originradec = <Quantity [ 45., 45.] deg>
@pytest.mark.parametrize("inradec,expectedlatlon, tolsep", [
((45, 45)*u.deg, (0, 0)*u.deg, .001*u.arcsec),
((45, 0)*u.deg, (0, -45)*u.deg, .001*u.arcsec),
((45, 90)*u.deg, (0, 45)*u.deg, .001*u.arcsec),
((46, 45)*u.deg, (1*np.cos(45*u.deg), 0)*u.deg, 16*u.arcsec),
])
def test_skyoffset(inradec, expectedlatlon, tolsep, originradec=(45, 45)*u.deg):
origin = ICRS(*originradec)
> skyoffset_frame = SkyOffsetFrame(origin=origin)
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/tests/test_skyoffset_transformations.py:26:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/builtin_frames/skyoffset.py:199: in __new__
newcls = make_skyoffset_cls(origin_frame.__class__)
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/builtin_frames/skyoffset.py:110: in make_skyoffset_cls
{'__doc__': SkyOffsetFrame.__doc__})
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cls = <class 'astropy.coordinates.builtin_frames.skyoffset.make_skyoffset_cls.<locals>.SkyOffsetMeta'>, name = 'SkyOffsetFrame'
bases = (<class 'astropy.coordinates.builtin_frames.skyoffset.SkyOffsetFrame'>, <class 'astropy.coordinates.builtin_frames.icrs.ICRS'>)
members = {'__doc__': '\n A frame which is relative to some specific position and oriented to match\n its frame.\n\n Sk...at', framename='dec', defaultunit='recommended')]}, 'default_representation': <property object at 0x7f02cb5c24a8>, ...}
def __new__(cls, name, bases, members):
# Only 'origin' is needed here, to set the origin frame properly.
members['origin'] = CoordinateAttribute(frame=framecls, default=None)
# This has to be done because FrameMeta will set these attributes
# to the defaults from BaseCoordinateFrame when it creates the base
# SkyOffsetFrame class initially.
members['_frame_specific_representation_info'] = framecls._frame_specific_representation_info
members['_default_representation'] = framecls._default_representation
newname = name[:-5] if name.endswith('Frame') else name
newname += framecls.__name__
res = super(SkyOffsetMeta, cls).__new__(cls, newname, bases, members)
# now go through all the component names and make any spherical names be "lon" and "lat"
# instead of e.g. "ra" and "dec"
lists_done = []
for nm, component_list in res._frame_specific_representation_info.items():
if nm in ('spherical', 'unitspherical'):
gotlatlon = []
for i, comp in enumerate(component_list):
if component_list in lists_done:
# we need this because sometimes the component_
# list's are the exact *same* object for both
# spherical and unitspherical. So looping then makes
# the change *twice*. This hack bypasses that.
continue
if comp.reprname in ('lon', 'lat'):
dct = namedtuple_asdict(comp)
# this forces the component names to be 'lat' and
# 'lon' regardless of what the actual base frame
# might use
dct['framename'] = comp.reprname
> component_list[i] = type(comp)(**dct)
E TypeError: __new__() missing 1 required positional argument: 'reprname'
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/builtin_frames/skyoffset.py:95: TypeError
_____________________________________________________________________________________________ test_skyoffset[inradec1-expectedlatlon1-tolsep1] _____________________________________________________________________________________________
inradec = <Quantity [ 45., 0.] deg>, expectedlatlon = <Quantity [ 0.,-45.] deg>, tolsep = <Quantity 0.001 arcsec>, originradec = <Quantity [ 45., 45.] deg>
@pytest.mark.parametrize("inradec,expectedlatlon, tolsep", [
((45, 45)*u.deg, (0, 0)*u.deg, .001*u.arcsec),
((45, 0)*u.deg, (0, -45)*u.deg, .001*u.arcsec),
((45, 90)*u.deg, (0, 45)*u.deg, .001*u.arcsec),
((46, 45)*u.deg, (1*np.cos(45*u.deg), 0)*u.deg, 16*u.arcsec),
])
def test_skyoffset(inradec, expectedlatlon, tolsep, originradec=(45, 45)*u.deg):
origin = ICRS(*originradec)
> skyoffset_frame = SkyOffsetFrame(origin=origin)
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/tests/test_skyoffset_transformations.py:26:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/builtin_frames/skyoffset.py:199: in __new__
newcls = make_skyoffset_cls(origin_frame.__class__)
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/builtin_frames/skyoffset.py:110: in make_skyoffset_cls
{'__doc__': SkyOffsetFrame.__doc__})
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cls = <class 'astropy.coordinates.builtin_frames.skyoffset.make_skyoffset_cls.<locals>.SkyOffsetMeta'>, name = 'SkyOffsetFrame'
bases = (<class 'astropy.coordinates.builtin_frames.skyoffset.SkyOffsetFrame'>, <class 'astropy.coordinates.builtin_frames.icrs.ICRS'>)
members = {'__doc__': '\n A frame which is relative to some specific position and oriented to match\n its frame.\n\n Sk...at', framename='dec', defaultunit='recommended')]}, 'default_representation': <property object at 0x7f02ce1563b8>, ...}
def __new__(cls, name, bases, members):
# Only 'origin' is needed here, to set the origin frame properly.
members['origin'] = CoordinateAttribute(frame=framecls, default=None)
# This has to be done because FrameMeta will set these attributes
# to the defaults from BaseCoordinateFrame when it creates the base
# SkyOffsetFrame class initially.
members['_frame_specific_representation_info'] = framecls._frame_specific_representation_info
members['_default_representation'] = framecls._default_representation
newname = name[:-5] if name.endswith('Frame') else name
newname += framecls.__name__
res = super(SkyOffsetMeta, cls).__new__(cls, newname, bases, members)
# now go through all the component names and make any spherical names be "lon" and "lat"
# instead of e.g. "ra" and "dec"
lists_done = []
for nm, component_list in res._frame_specific_representation_info.items():
if nm in ('spherical', 'unitspherical'):
gotlatlon = []
for i, comp in enumerate(component_list):
if component_list in lists_done:
# we need this because sometimes the component_
# list's are the exact *same* object for both
# spherical and unitspherical. So looping then makes
# the change *twice*. This hack bypasses that.
continue
if comp.reprname in ('lon', 'lat'):
dct = namedtuple_asdict(comp)
# this forces the component names to be 'lat' and
# 'lon' regardless of what the actual base frame
# might use
dct['framename'] = comp.reprname
> component_list[i] = type(comp)(**dct)
E TypeError: __new__() missing 1 required positional argument: 'reprname'
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/builtin_frames/skyoffset.py:95: TypeError
_____________________________________________________________________________________________ test_skyoffset[inradec2-expectedlatlon2-tolsep2] _____________________________________________________________________________________________
inradec = <Quantity [ 45., 90.] deg>, expectedlatlon = <Quantity [ 0., 45.] deg>, tolsep = <Quantity 0.001 arcsec>, originradec = <Quantity [ 45., 45.] deg>
@pytest.mark.parametrize("inradec,expectedlatlon, tolsep", [
((45, 45)*u.deg, (0, 0)*u.deg, .001*u.arcsec),
((45, 0)*u.deg, (0, -45)*u.deg, .001*u.arcsec),
((45, 90)*u.deg, (0, 45)*u.deg, .001*u.arcsec),
((46, 45)*u.deg, (1*np.cos(45*u.deg), 0)*u.deg, 16*u.arcsec),
])
def test_skyoffset(inradec, expectedlatlon, tolsep, originradec=(45, 45)*u.deg):
origin = ICRS(*originradec)
> skyoffset_frame = SkyOffsetFrame(origin=origin)
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/tests/test_skyoffset_transformations.py:26:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/builtin_frames/skyoffset.py:199: in __new__
newcls = make_skyoffset_cls(origin_frame.__class__)
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/builtin_frames/skyoffset.py:110: in make_skyoffset_cls
{'__doc__': SkyOffsetFrame.__doc__})
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cls = <class 'astropy.coordinates.builtin_frames.skyoffset.make_skyoffset_cls.<locals>.SkyOffsetMeta'>, name = 'SkyOffsetFrame'
bases = (<class 'astropy.coordinates.builtin_frames.skyoffset.SkyOffsetFrame'>, <class 'astropy.coordinates.builtin_frames.icrs.ICRS'>)
members = {'__doc__': '\n A frame which is relative to some specific position and oriented to match\n its frame.\n\n Sk...at', framename='dec', defaultunit='recommended')]}, 'default_representation': <property object at 0x7f02cb5d3638>, ...}
def __new__(cls, name, bases, members):
# Only 'origin' is needed here, to set the origin frame properly.
members['origin'] = CoordinateAttribute(frame=framecls, default=None)
# This has to be done because FrameMeta will set these attributes
# to the defaults from BaseCoordinateFrame when it creates the base
# SkyOffsetFrame class initially.
members['_frame_specific_representation_info'] = framecls._frame_specific_representation_info
members['_default_representation'] = framecls._default_representation
newname = name[:-5] if name.endswith('Frame') else name
newname += framecls.__name__
res = super(SkyOffsetMeta, cls).__new__(cls, newname, bases, members)
# now go through all the component names and make any spherical names be "lon" and "lat"
# instead of e.g. "ra" and "dec"
lists_done = []
for nm, component_list in res._frame_specific_representation_info.items():
if nm in ('spherical', 'unitspherical'):
gotlatlon = []
for i, comp in enumerate(component_list):
if component_list in lists_done:
# we need this because sometimes the component_
# list's are the exact *same* object for both
# spherical and unitspherical. So looping then makes
# the change *twice*. This hack bypasses that.
continue
if comp.reprname in ('lon', 'lat'):
dct = namedtuple_asdict(comp)
# this forces the component names to be 'lat' and
# 'lon' regardless of what the actual base frame
# might use
dct['framename'] = comp.reprname
> component_list[i] = type(comp)(**dct)
E TypeError: __new__() missing 1 required positional argument: 'reprname'
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/builtin_frames/skyoffset.py:95: TypeError
_____________________________________________________________________________________________ test_skyoffset[inradec3-expectedlatlon3-tolsep3] _____________________________________________________________________________________________
inradec = <Quantity [ 46., 45.] deg>, expectedlatlon = <Quantity [ 0.70710678, 0. ] deg>, tolsep = <Quantity 16.0 arcsec>, originradec = <Quantity [ 45., 45.] deg>
@pytest.mark.parametrize("inradec,expectedlatlon, tolsep", [
((45, 45)*u.deg, (0, 0)*u.deg, .001*u.arcsec),
((45, 0)*u.deg, (0, -45)*u.deg, .001*u.arcsec),
((45, 90)*u.deg, (0, 45)*u.deg, .001*u.arcsec),
((46, 45)*u.deg, (1*np.cos(45*u.deg), 0)*u.deg, 16*u.arcsec),
])
def test_skyoffset(inradec, expectedlatlon, tolsep, originradec=(45, 45)*u.deg):
origin = ICRS(*originradec)
> skyoffset_frame = SkyOffsetFrame(origin=origin)
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/tests/test_skyoffset_transformations.py:26:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/builtin_frames/skyoffset.py:199: in __new__
newcls = make_skyoffset_cls(origin_frame.__class__)
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/builtin_frames/skyoffset.py:110: in make_skyoffset_cls
{'__doc__': SkyOffsetFrame.__doc__})
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cls = <class 'astropy.coordinates.builtin_frames.skyoffset.make_skyoffset_cls.<locals>.SkyOffsetMeta'>, name = 'SkyOffsetFrame'
bases = (<class 'astropy.coordinates.builtin_frames.skyoffset.SkyOffsetFrame'>, <class 'astropy.coordinates.builtin_frames.icrs.ICRS'>)
members = {'__doc__': '\n A frame which is relative to some specific position and oriented to match\n its frame.\n\n Sk...at', framename='dec', defaultunit='recommended')]}, 'default_representation': <property object at 0x7f02d1be3c78>, ...}
def __new__(cls, name, bases, members):
# Only 'origin' is needed here, to set the origin frame properly.
members['origin'] = CoordinateAttribute(frame=framecls, default=None)
# This has to be done because FrameMeta will set these attributes
# to the defaults from BaseCoordinateFrame when it creates the base
# SkyOffsetFrame class initially.
members['_frame_specific_representation_info'] = framecls._frame_specific_representation_info
members['_default_representation'] = framecls._default_representation
newname = name[:-5] if name.endswith('Frame') else name
newname += framecls.__name__
res = super(SkyOffsetMeta, cls).__new__(cls, newname, bases, members)
# now go through all the component names and make any spherical names be "lon" and "lat"
# instead of e.g. "ra" and "dec"
lists_done = []
for nm, component_list in res._frame_specific_representation_info.items():
if nm in ('spherical', 'unitspherical'):
gotlatlon = []
for i, comp in enumerate(component_list):
if component_list in lists_done:
# we need this because sometimes the component_
# list's are the exact *same* object for both
# spherical and unitspherical. So looping then makes
# the change *twice*. This hack bypasses that.
continue
if comp.reprname in ('lon', 'lat'):
dct = namedtuple_asdict(comp)
# this forces the component names to be 'lat' and
# 'lon' regardless of what the actual base frame
# might use
dct['framename'] = comp.reprname
> component_list[i] = type(comp)(**dct)
E TypeError: __new__() missing 1 required positional argument: 'reprname'
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/builtin_frames/skyoffset.py:95: TypeError
_______________________________________________________________________________________________________ test_skyoffset_functional_ra _______________________________________________________________________________________________________
def test_skyoffset_functional_ra():
# we do the 12)[1:-1] business because sometimes machine precision issues
# lead to results that are either ~0 or ~360, which mucks up the final
# comparison and leads to spurious failures. So this just avoids that by
# staying away from the edges
input_ra = np.linspace(0, 360, 12)[1:-1]
input_dec = np.linspace(-90, 90, 12)[1:-1]
icrs_coord = ICRS(ra=input_ra*u.deg,
dec=input_dec*u.deg,
distance=1.*u.kpc)
for ra in np.linspace(0,360,24):
# expected rotation
expected = ICRS(ra=np.linspace(0-ra, 360-ra, 12)[1:-1]*u.deg,
dec=np.linspace(-90, 90, 12)[1:-1]*u.deg,
distance=1.*u.kpc)
expected_xyz = expected.cartesian.xyz
# actual transformation to the frame
> skyoffset_frame = SkyOffsetFrame(origin=ICRS(ra*u.deg, 0*u.deg))
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/tests/test_skyoffset_transformations.py:56:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/builtin_frames/skyoffset.py:199: in __new__
newcls = make_skyoffset_cls(origin_frame.__class__)
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/builtin_frames/skyoffset.py:110: in make_skyoffset_cls
{'__doc__': SkyOffsetFrame.__doc__})
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cls = <class 'astropy.coordinates.builtin_frames.skyoffset.make_skyoffset_cls.<locals>.SkyOffsetMeta'>, name = 'SkyOffsetFrame'
bases = (<class 'astropy.coordinates.builtin_frames.skyoffset.SkyOffsetFrame'>, <class 'astropy.coordinates.builtin_frames.icrs.ICRS'>)
members = {'__doc__': '\n A frame which is relative to some specific position and oriented to match\n its frame.\n\n Sk...at', framename='dec', defaultunit='recommended')]}, 'default_representation': <property object at 0x7f02d19fd1d8>, ...}
def __new__(cls, name, bases, members):
# Only 'origin' is needed here, to set the origin frame properly.
members['origin'] = CoordinateAttribute(frame=framecls, default=None)
# This has to be done because FrameMeta will set these attributes
# to the defaults from BaseCoordinateFrame when it creates the base
# SkyOffsetFrame class initially.
members['_frame_specific_representation_info'] = framecls._frame_specific_representation_info
members['_default_representation'] = framecls._default_representation
newname = name[:-5] if name.endswith('Frame') else name
newname += framecls.__name__
res = super(SkyOffsetMeta, cls).__new__(cls, newname, bases, members)
# now go through all the component names and make any spherical names be "lon" and "lat"
# instead of e.g. "ra" and "dec"
lists_done = []
for nm, component_list in res._frame_specific_representation_info.items():
if nm in ('spherical', 'unitspherical'):
gotlatlon = []
for i, comp in enumerate(component_list):
if component_list in lists_done:
# we need this because sometimes the component_
# list's are the exact *same* object for both
# spherical and unitspherical. So looping then makes
# the change *twice*. This hack bypasses that.
continue
if comp.reprname in ('lon', 'lat'):
dct = namedtuple_asdict(comp)
# this forces the component names to be 'lat' and
# 'lon' regardless of what the actual base frame
# might use
dct['framename'] = comp.reprname
> component_list[i] = type(comp)(**dct)
E TypeError: __new__() missing 1 required positional argument: 'reprname'
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/builtin_frames/skyoffset.py:95: TypeError
______________________________________________________________________________________________________ test_skyoffset_functional_dec _______________________________________________________________________________________________________
def test_skyoffset_functional_dec():
# we do the 12)[1:-1] business because sometimes machine precision issues
# lead to results that are either ~0 or ~360, which mucks up the final
# comparison and leads to spurious failures. So this just avoids that by
# staying away from the edges
input_ra = np.linspace(0, 360, 12)[1:-1]
input_dec = np.linspace(-90, 90, 12)[1:-1]
input_ra_rad = np.deg2rad(input_ra)
input_dec_rad = np.deg2rad(input_dec)
icrs_coord = ICRS(ra=input_ra*u.deg,
dec=input_dec*u.deg,
distance=1.*u.kpc)
#Dec rotations
#Done in xyz space because dec must be [-90,90]
for dec in np.linspace(-90, 90, 13):
# expected rotation
dec_rad = -np.deg2rad(dec)
expected_x = (-np.sin(input_dec_rad) * np.sin(dec_rad) +
np.cos(input_ra_rad) * np.cos(input_dec_rad) * np.cos(dec_rad))
expected_y = (np.sin(input_ra_rad) * np.cos(input_dec_rad))
expected_z = (np.sin(input_dec_rad) * np.cos(dec_rad) +
np.sin(dec_rad) * np.cos(input_ra_rad) * np.cos(input_dec_rad))
expected = SkyCoord(x=expected_x,
y=expected_y,
z=expected_z, unit='kpc', representation='cartesian')
expected_xyz = expected.cartesian.xyz
# actual transformation to the frame
> skyoffset_frame = SkyOffsetFrame(origin=ICRS(0*u.deg, dec*u.deg))
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/tests/test_skyoffset_transformations.py:100:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/builtin_frames/skyoffset.py:199: in __new__
newcls = make_skyoffset_cls(origin_frame.__class__)
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/builtin_frames/skyoffset.py:110: in make_skyoffset_cls
{'__doc__': SkyOffsetFrame.__doc__})
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cls = <class 'astropy.coordinates.builtin_frames.skyoffset.make_skyoffset_cls.<locals>.SkyOffsetMeta'>, name = 'SkyOffsetFrame'
bases = (<class 'astropy.coordinates.builtin_frames.skyoffset.SkyOffsetFrame'>, <class 'astropy.coordinates.builtin_frames.icrs.ICRS'>)
members = {'__doc__': '\n A frame which is relative to some specific position and oriented to match\n its frame.\n\n Sk...at', framename='dec', defaultunit='recommended')]}, 'default_representation': <property object at 0x7f02d19fd958>, ...}
def __new__(cls, name, bases, members):
# Only 'origin' is needed here, to set the origin frame properly.
members['origin'] = CoordinateAttribute(frame=framecls, default=None)
# This has to be done because FrameMeta will set these attributes
# to the defaults from BaseCoordinateFrame when it creates the base
# SkyOffsetFrame class initially.
members['_frame_specific_representation_info'] = framecls._frame_specific_representation_info
members['_default_representation'] = framecls._default_representation
newname = name[:-5] if name.endswith('Frame') else name
newname += framecls.__name__
res = super(SkyOffsetMeta, cls).__new__(cls, newname, bases, members)
# now go through all the component names and make any spherical names be "lon" and "lat"
# instead of e.g. "ra" and "dec"
lists_done = []
for nm, component_list in res._frame_specific_representation_info.items():
if nm in ('spherical', 'unitspherical'):
gotlatlon = []
for i, comp in enumerate(component_list):
if component_list in lists_done:
# we need this because sometimes the component_
# list's are the exact *same* object for both
# spherical and unitspherical. So looping then makes
# the change *twice*. This hack bypasses that.
continue
if comp.reprname in ('lon', 'lat'):
dct = namedtuple_asdict(comp)
# this forces the component names to be 'lat' and
# 'lon' regardless of what the actual base frame
# might use
dct['framename'] = comp.reprname
> component_list[i] = type(comp)(**dct)
E TypeError: __new__() missing 1 required positional argument: 'reprname'
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/builtin_frames/skyoffset.py:95: TypeError
_____________________________________________________________________________________________________ test_skyoffset_functional_ra_dec _____________________________________________________________________________________________________
def test_skyoffset_functional_ra_dec():
# we do the 12)[1:-1] business because sometimes machine precision issues
# lead to results that are either ~0 or ~360, which mucks up the final
# comparison and leads to spurious failures. So this just avoids that by
# staying away from the edges
input_ra = np.linspace(0, 360, 12)[1:-1]
input_dec = np.linspace(-90, 90, 12)[1:-1]
input_ra_rad = np.deg2rad(input_ra)
input_dec_rad = np.deg2rad(input_dec)
icrs_coord = ICRS(ra = input_ra*u.deg,
dec = input_dec*u.deg,
distance=1.*u.kpc)
for ra in np.linspace(0, 360, 10):
for dec in np.linspace(-90, 90, 5):
# expected rotation
dec_rad = -np.deg2rad(dec)
ra_rad = np.deg2rad(ra)
expected_x = (-np.sin(input_dec_rad) * np.sin(dec_rad) +
np.cos(input_ra_rad) * np.cos(input_dec_rad) * np.cos(dec_rad) * np.cos(ra_rad) +
np.sin(input_ra_rad) * np.cos(input_dec_rad) * np.cos(dec_rad) * np.sin(ra_rad))
expected_y = (np.sin(input_ra_rad) * np.cos(input_dec_rad) * np.cos(ra_rad) -
np.cos(input_ra_rad) * np.cos(input_dec_rad) * np.sin(ra_rad))
expected_z = (np.sin(input_dec_rad) * np.cos(dec_rad) +
np.sin(dec_rad) * np.cos(ra_rad) * np.cos(input_ra_rad) * np.cos(input_dec_rad) +
np.sin(dec_rad) * np.sin(ra_rad) * np.sin(input_ra_rad) * np.cos(input_dec_rad))
expected = SkyCoord(x=expected_x,
y=expected_y,
z=expected_z, unit='kpc', representation='cartesian')
expected_xyz = expected.cartesian.xyz
# actual transformation to the frame
> skyoffset_frame = SkyOffsetFrame(origin=ICRS(ra*u.deg, dec*u.deg))
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/tests/test_skyoffset_transformations.py:146:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/builtin_frames/skyoffset.py:199: in __new__
newcls = make_skyoffset_cls(origin_frame.__class__)
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/builtin_frames/skyoffset.py:110: in make_skyoffset_cls
{'__doc__': SkyOffsetFrame.__doc__})
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cls = <class 'astropy.coordinates.builtin_frames.skyoffset.make_skyoffset_cls.<locals>.SkyOffsetMeta'>, name = 'SkyOffsetFrame'
bases = (<class 'astropy.coordinates.builtin_frames.skyoffset.SkyOffsetFrame'>, <class 'astropy.coordinates.builtin_frames.icrs.ICRS'>)
members = {'__doc__': '\n A frame which is relative to some specific position and oriented to match\n its frame.\n\n Sk...at', framename='dec', defaultunit='recommended')]}, 'default_representation': <property object at 0x7f02d1a1b228>, ...}
def __new__(cls, name, bases, members):
# Only 'origin' is needed here, to set the origin frame properly.
members['origin'] = CoordinateAttribute(frame=framecls, default=None)
# This has to be done because FrameMeta will set these attributes
# to the defaults from BaseCoordinateFrame when it creates the base
# SkyOffsetFrame class initially.
members['_frame_specific_representation_info'] = framecls._frame_specific_representation_info
members['_default_representation'] = framecls._default_representation
newname = name[:-5] if name.endswith('Frame') else name
newname += framecls.__name__
res = super(SkyOffsetMeta, cls).__new__(cls, newname, bases, members)
# now go through all the component names and make any spherical names be "lon" and "lat"
# instead of e.g. "ra" and "dec"
lists_done = []
for nm, component_list in res._frame_specific_representation_info.items():
if nm in ('spherical', 'unitspherical'):
gotlatlon = []
for i, comp in enumerate(component_list):
if component_list in lists_done:
# we need this because sometimes the component_
# list's are the exact *same* object for both
# spherical and unitspherical. So looping then makes
# the change *twice*. This hack bypasses that.
continue
if comp.reprname in ('lon', 'lat'):
dct = namedtuple_asdict(comp)
# this forces the component names to be 'lat' and
# 'lon' regardless of what the actual base frame
# might use
dct['framename'] = comp.reprname
> component_list[i] = type(comp)(**dct)
E TypeError: __new__() missing 1 required positional argument: 'reprname'
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/builtin_frames/skyoffset.py:95: TypeError
______________________________________________________________________________________________________ test_skycoord_skyoffset_frame _______________________________________________________________________________________________________
def test_skycoord_skyoffset_frame():
m31 = SkyCoord(10.6847083, 41.26875, frame='icrs', unit=u.deg)
m33 = SkyCoord(23.4621, 30.6599417, frame='icrs', unit=u.deg)
> m31_astro = m31.skyoffset_frame()
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/tests/test_skyoffset_transformations.py:163:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/sky_coordinate.py:1056: in skyoffset_frame
return SkyOffsetFrame(origin=self, rotation=rotation)
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/builtin_frames/skyoffset.py:199: in __new__
newcls = make_skyoffset_cls(origin_frame.__class__)
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/builtin_frames/skyoffset.py:110: in make_skyoffset_cls
{'__doc__': SkyOffsetFrame.__doc__})
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cls = <class 'astropy.coordinates.builtin_frames.skyoffset.make_skyoffset_cls.<locals>.SkyOffsetMeta'>, name = 'SkyOffsetFrame'
bases = (<class 'astropy.coordinates.builtin_frames.skyoffset.SkyOffsetFrame'>, <class 'astropy.coordinates.builtin_frames.icrs.ICRS'>)
members = {'__doc__': '\n A frame which is relative to some specific position and oriented to match\n its frame.\n\n Sk...at', framename='dec', defaultunit='recommended')]}, 'default_representation': <property object at 0x7f02d1a1b9f8>, ...}
def __new__(cls, name, bases, members):
# Only 'origin' is needed here, to set the origin frame properly.
members['origin'] = CoordinateAttribute(frame=framecls, default=None)
# This has to be done because FrameMeta will set these attributes
# to the defaults from BaseCoordinateFrame when it creates the base
# SkyOffsetFrame class initially.
members['_frame_specific_representation_info'] = framecls._frame_specific_representation_info
members['_default_representation'] = framecls._default_representation
newname = name[:-5] if name.endswith('Frame') else name
newname += framecls.__name__
res = super(SkyOffsetMeta, cls).__new__(cls, newname, bases, members)
# now go through all the component names and make any spherical names be "lon" and "lat"
# instead of e.g. "ra" and "dec"
lists_done = []
for nm, component_list in res._frame_specific_representation_info.items():
if nm in ('spherical', 'unitspherical'):
gotlatlon = []
for i, comp in enumerate(component_list):
if component_list in lists_done:
# we need this because sometimes the component_
# list's are the exact *same* object for both
# spherical and unitspherical. So looping then makes
# the change *twice*. This hack bypasses that.
continue
if comp.reprname in ('lon', 'lat'):
dct = namedtuple_asdict(comp)
# this forces the component names to be 'lat' and
# 'lon' regardless of what the actual base frame
# might use
dct['framename'] = comp.reprname
> component_list[i] = type(comp)(**dct)
E TypeError: __new__() missing 1 required positional argument: 'reprname'
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/builtin_frames/skyoffset.py:95: TypeError
___________________________________________________________________________________________ test_m31_coord_transforms[ICRS-FK5-fromcoo0-tocoo0] ____________________________________________________________________________________________
fromsys = <class 'astropy.coordinates.builtin_frames.icrs.ICRS'>, tosys = <class 'astropy.coordinates.builtin_frames.fk5.FK5'>, fromcoo = (10.6847929, 41.269065), tocoo = (10.6847929, 41.269065)
@pytest.mark.parametrize(('fromsys', 'tosys', 'fromcoo', 'tocoo'), m31_params)
def test_m31_coord_transforms(fromsys, tosys, fromcoo, tocoo):
"""
This tests a variety of coordinate conversions for the Chandra point-source
catalog location of M31 from NED, via SkyOffsetFrames
"""
from_origin = fromsys(fromcoo[0]*u.deg, fromcoo[1]*u.deg,
distance=m31_dist)
> from_pos = SkyOffsetFrame(1*u.deg, 1*u.deg, origin=from_origin)
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/tests/test_skyoffset_transformations.py:198:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/builtin_frames/skyoffset.py:199: in __new__
newcls = make_skyoffset_cls(origin_frame.__class__)
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/builtin_frames/skyoffset.py:110: in make_skyoffset_cls
{'__doc__': SkyOffsetFrame.__doc__})
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cls = <class 'astropy.coordinates.builtin_frames.skyoffset.make_skyoffset_cls.<locals>.SkyOffsetMeta'>, name = 'SkyOffsetFrame'
bases = (<class 'astropy.coordinates.builtin_frames.skyoffset.SkyOffsetFrame'>, <class 'astropy.coordinates.builtin_frames.icrs.ICRS'>)
members = {'__doc__': '\n A frame which is relative to some specific position and oriented to match\n its frame.\n\n Sk...at', framename='dec', defaultunit='recommended')]}, 'default_representation': <property object at 0x7f02d19fde58>, ...}
def __new__(cls, name, bases, members):
# Only 'origin' is needed here, to set the origin frame properly.
members['origin'] = CoordinateAttribute(frame=framecls, default=None)
# This has to be done because FrameMeta will set these attributes
# to the defaults from BaseCoordinateFrame when it creates the base
# SkyOffsetFrame class initially.
members['_frame_specific_representation_info'] = framecls._frame_specific_representation_info
members['_default_representation'] = framecls._default_representation
newname = name[:-5] if name.endswith('Frame') else name
newname += framecls.__name__
res = super(SkyOffsetMeta, cls).__new__(cls, newname, bases, members)
# now go through all the component names and make any spherical names be "lon" and "lat"
# instead of e.g. "ra" and "dec"
lists_done = []
for nm, component_list in res._frame_specific_representation_info.items():
if nm in ('spherical', 'unitspherical'):
gotlatlon = []
for i, comp in enumerate(component_list):
if component_list in lists_done:
# we need this because sometimes the component_
# list's are the exact *same* object for both
# spherical and unitspherical. So looping then makes
# the change *twice*. This hack bypasses that.
continue
if comp.reprname in ('lon', 'lat'):
dct = namedtuple_asdict(comp)
# this forces the component names to be 'lat' and
# 'lon' regardless of what the actual base frame
# might use
dct['framename'] = comp.reprname
> component_list[i] = type(comp)(**dct)
E TypeError: __new__() missing 1 required positional argument: 'reprname'
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/builtin_frames/skyoffset.py:95: TypeError
_________________________________________________________________________________________ test_m31_coord_transforms[ICRS-Galactic-fromcoo1-tocoo1] _________________________________________________________________________________________
fromsys = <class 'astropy.coordinates.builtin_frames.icrs.ICRS'>, tosys = <class 'astropy.coordinates.builtin_frames.galactic.Galactic'>, fromcoo = (10.6847929, 41.269065), tocoo = (121.174405, -21.572936)
@pytest.mark.parametrize(('fromsys', 'tosys', 'fromcoo', 'tocoo'), m31_params)
def test_m31_coord_transforms(fromsys, tosys, fromcoo, tocoo):
"""
This tests a variety of coordinate conversions for the Chandra point-source
catalog location of M31 from NED, via SkyOffsetFrames
"""
from_origin = fromsys(fromcoo[0]*u.deg, fromcoo[1]*u.deg,
distance=m31_dist)
> from_pos = SkyOffsetFrame(1*u.deg, 1*u.deg, origin=from_origin)
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/tests/test_skyoffset_transformations.py:198:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/builtin_frames/skyoffset.py:199: in __new__
newcls = make_skyoffset_cls(origin_frame.__class__)
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/builtin_frames/skyoffset.py:110: in make_skyoffset_cls
{'__doc__': SkyOffsetFrame.__doc__})
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cls = <class 'astropy.coordinates.builtin_frames.skyoffset.make_skyoffset_cls.<locals>.SkyOffsetMeta'>, name = 'SkyOffsetFrame'
bases = (<class 'astropy.coordinates.builtin_frames.skyoffset.SkyOffsetFrame'>, <class 'astropy.coordinates.builtin_frames.icrs.ICRS'>)
members = {'__doc__': '\n A frame which is relative to some specific position and oriented to match\n its frame.\n\n Sk...at', framename='dec', defaultunit='recommended')]}, 'default_representation': <property object at 0x7f02d1a1b458>, ...}
def __new__(cls, name, bases, members):
# Only 'origin' is needed here, to set the origin frame properly.
members['origin'] = CoordinateAttribute(frame=framecls, default=None)
# This has to be done because FrameMeta will set these attributes
# to the defaults from BaseCoordinateFrame when it creates the base
# SkyOffsetFrame class initially.
members['_frame_specific_representation_info'] = framecls._frame_specific_representation_info
members['_default_representation'] = framecls._default_representation
newname = name[:-5] if name.endswith('Frame') else name
newname += framecls.__name__
res = super(SkyOffsetMeta, cls).__new__(cls, newname, bases, members)
# now go through all the component names and make any spherical names be "lon" and "lat"
# instead of e.g. "ra" and "dec"
lists_done = []
for nm, component_list in res._frame_specific_representation_info.items():
if nm in ('spherical', 'unitspherical'):
gotlatlon = []
for i, comp in enumerate(component_list):
if component_list in lists_done:
# we need this because sometimes the component_
# list's are the exact *same* object for both
# spherical and unitspherical. So looping then makes
# the change *twice*. This hack bypasses that.
continue
if comp.reprname in ('lon', 'lat'):
dct = namedtuple_asdict(comp)
# this forces the component names to be 'lat' and
# 'lon' regardless of what the actual base frame
# might use
dct['framename'] = comp.reprname
> component_list[i] = type(comp)(**dct)
E TypeError: __new__() missing 1 required positional argument: 'reprname'
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/builtin_frames/skyoffset.py:95: TypeError
_________________________________________________________________________________________ test_m31_coord_transforms[FK5-Galactic-fromcoo2-tocoo2] __________________________________________________________________________________________
fromsys = <class 'astropy.coordinates.builtin_frames.fk5.FK5'>, tosys = <class 'astropy.coordinates.builtin_frames.galactic.Galactic'>, fromcoo = (10.6847929, 41.269065), tocoo = (121.174405, -21.572936)
@pytest.mark.parametrize(('fromsys', 'tosys', 'fromcoo', 'tocoo'), m31_params)
def test_m31_coord_transforms(fromsys, tosys, fromcoo, tocoo):
"""
This tests a variety of coordinate conversions for the Chandra point-source
catalog location of M31 from NED, via SkyOffsetFrames
"""
from_origin = fromsys(fromcoo[0]*u.deg, fromcoo[1]*u.deg,
distance=m31_dist)
> from_pos = SkyOffsetFrame(1*u.deg, 1*u.deg, origin=from_origin)
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/tests/test_skyoffset_transformations.py:198:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/builtin_frames/skyoffset.py:199: in __new__
newcls = make_skyoffset_cls(origin_frame.__class__)
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/builtin_frames/skyoffset.py:110: in make_skyoffset_cls
{'__doc__': SkyOffsetFrame.__doc__})
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cls = <class 'astropy.coordinates.builtin_frames.skyoffset.make_skyoffset_cls.<locals>.SkyOffsetMeta'>, name = 'SkyOffsetFrame'
bases = (<class 'astropy.coordinates.builtin_frames.skyoffset.SkyOffsetFrame'>, <class 'astropy.coordinates.builtin_frames.fk5.FK5'>)
members = {'__doc__': '\n A frame which is relative to some specific position and oriented to match\n its frame.\n\n Sk...at', framename='dec', defaultunit='recommended')]}, 'default_representation': <property object at 0x7f02d1a1b958>, ...}
def __new__(cls, name, bases, members):
# Only 'origin' is needed here, to set the origin frame properly.
members['origin'] = CoordinateAttribute(frame=framecls, default=None)
# This has to be done because FrameMeta will set these attributes
# to the defaults from BaseCoordinateFrame when it creates the base
# SkyOffsetFrame class initially.
members['_frame_specific_representation_info'] = framecls._frame_specific_representation_info
members['_default_representation'] = framecls._default_representation
newname = name[:-5] if name.endswith('Frame') else name
newname += framecls.__name__
res = super(SkyOffsetMeta, cls).__new__(cls, newname, bases, members)
# now go through all the component names and make any spherical names be "lon" and "lat"
# instead of e.g. "ra" and "dec"
lists_done = []
for nm, component_list in res._frame_specific_representation_info.items():
if nm in ('spherical', 'unitspherical'):
gotlatlon = []
for i, comp in enumerate(component_list):
if component_list in lists_done:
# we need this because sometimes the component_
# list's are the exact *same* object for both
# spherical and unitspherical. So looping then makes
# the change *twice*. This hack bypasses that.
continue
if comp.reprname in ('lon', 'lat'):
dct = namedtuple_asdict(comp)
# this forces the component names to be 'lat' and
# 'lon' regardless of what the actual base frame
# might use
dct['framename'] = comp.reprname
> component_list[i] = type(comp)(**dct)
E TypeError: __new__() missing 1 required positional argument: 'reprname'
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/builtin_frames/skyoffset.py:95: TypeError
_____________________________________________________________________________________________________ test_altaz_attribute_transforms ______________________________________________________________________________________________________
def test_altaz_attribute_transforms():
"""Test transforms between AltAz frames with different attributes."""
el1 = EarthLocation(0*u.deg, 0*u.deg, 0*u.m)
origin1 = AltAz(0 * u.deg, 0*u.deg, obstime=Time("2000-01-01T12:00:00"),
location=el1)
> frame1 = SkyOffsetFrame(origin=origin1)
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/tests/test_skyoffset_transformations.py:217:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/builtin_frames/skyoffset.py:199: in __new__
newcls = make_skyoffset_cls(origin_frame.__class__)
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/builtin_frames/skyoffset.py:110: in make_skyoffset_cls
{'__doc__': SkyOffsetFrame.__doc__})
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cls = <class 'astropy.coordinates.builtin_frames.skyoffset.make_skyoffset_cls.<locals>.SkyOffsetMeta'>, name = 'SkyOffsetFrame'
bases = (<class 'astropy.coordinates.builtin_frames.skyoffset.SkyOffsetFrame'>, <class 'astropy.coordinates.builtin_frames.altaz.AltAz'>)
members = {'__doc__': '\n A frame which is relative to some specific position and oriented to match\n its frame.\n\n Sk...at', framename='alt', defaultunit='recommended')]}, 'default_representation': <property object at 0x7f02d1a1b228>, ...}
def __new__(cls, name, bases, members):
# Only 'origin' is needed here, to set the origin frame properly.
members['origin'] = CoordinateAttribute(frame=framecls, default=None)
# This has to be done because FrameMeta will set these attributes
# to the defaults from BaseCoordinateFrame when it creates the base
# SkyOffsetFrame class initially.
members['_frame_specific_representation_info'] = framecls._frame_specific_representation_info
members['_default_representation'] = framecls._default_representation
newname = name[:-5] if name.endswith('Frame') else name
newname += framecls.__name__
res = super(SkyOffsetMeta, cls).__new__(cls, newname, bases, members)
# now go through all the component names and make any spherical names be "lon" and "lat"
# instead of e.g. "ra" and "dec"
lists_done = []
for nm, component_list in res._frame_specific_representation_info.items():
if nm in ('spherical', 'unitspherical'):
gotlatlon = []
for i, comp in enumerate(component_list):
if component_list in lists_done:
# we need this because sometimes the component_
# list's are the exact *same* object for both
# spherical and unitspherical. So looping then makes
# the change *twice*. This hack bypasses that.
continue
if comp.reprname in ('lon', 'lat'):
dct = namedtuple_asdict(comp)
# this forces the component names to be 'lat' and
# 'lon' regardless of what the actual base frame
# might use
dct['framename'] = comp.reprname
> component_list[i] = type(comp)(**dct)
E TypeError: __new__() missing 1 required positional argument: 'reprname'
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/builtin_frames/skyoffset.py:95: TypeError
_________________________________________________________________________________________________ test_rotation[rotation0-expectedlatlon0] _________________________________________________________________________________________________
rotation = <Quantity 0.0 deg>, expectedlatlon = <Quantity [ 0., 1.] deg>
@pytest.mark.parametrize("rotation, expectedlatlon", [
(0*u.deg, [0, 1]*u.deg),
(180*u.deg, [0, -1]*u.deg),
(90*u.deg, [-1, 0]*u.deg),
(-90*u.deg, [1, 0]*u.deg)
])
def test_rotation(rotation, expectedlatlon):
origin = ICRS(45*u.deg, 45*u.deg)
target = ICRS(45*u.deg, 46*u.deg)
> aframe = SkyOffsetFrame(origin=origin, rotation=rotation)
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/tests/test_skyoffset_transformations.py:247:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/builtin_frames/skyoffset.py:199: in __new__
newcls = make_skyoffset_cls(origin_frame.__class__)
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/builtin_frames/skyoffset.py:110: in make_skyoffset_cls
{'__doc__': SkyOffsetFrame.__doc__})
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cls = <class 'astropy.coordinates.builtin_frames.skyoffset.make_skyoffset_cls.<locals>.SkyOffsetMeta'>, name = 'SkyOffsetFrame'
bases = (<class 'astropy.coordinates.builtin_frames.skyoffset.SkyOffsetFrame'>, <class 'astropy.coordinates.builtin_frames.icrs.ICRS'>)
members = {'__doc__': '\n A frame which is relative to some specific position and oriented to match\n its frame.\n\n Sk...at', framename='dec', defaultunit='recommended')]}, 'default_representation': <property object at 0x7f02d1a1bc78>, ...}
def __new__(cls, name, bases, members):
# Only 'origin' is needed here, to set the origin frame properly.
members['origin'] = CoordinateAttribute(frame=framecls, default=None)
# This has to be done because FrameMeta will set these attributes
# to the defaults from BaseCoordinateFrame when it creates the base
# SkyOffsetFrame class initially.
members['_frame_specific_representation_info'] = framecls._frame_specific_representation_info
members['_default_representation'] = framecls._default_representation
newname = name[:-5] if name.endswith('Frame') else name
newname += framecls.__name__
res = super(SkyOffsetMeta, cls).__new__(cls, newname, bases, members)
# now go through all the component names and make any spherical names be "lon" and "lat"
# instead of e.g. "ra" and "dec"
lists_done = []
for nm, component_list in res._frame_specific_representation_info.items():
if nm in ('spherical', 'unitspherical'):
gotlatlon = []
for i, comp in enumerate(component_list):
if component_list in lists_done:
# we need this because sometimes the component_
# list's are the exact *same* object for both
# spherical and unitspherical. So looping then makes
# the change *twice*. This hack bypasses that.
continue
if comp.reprname in ('lon', 'lat'):
dct = namedtuple_asdict(comp)
# this forces the component names to be 'lat' and
# 'lon' regardless of what the actual base frame
# might use
dct['framename'] = comp.reprname
> component_list[i] = type(comp)(**dct)
E TypeError: __new__() missing 1 required positional argument: 'reprname'
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/builtin_frames/skyoffset.py:95: TypeError
_________________________________________________________________________________________________ test_rotation[rotation1-expectedlatlon1] _________________________________________________________________________________________________
rotation = <Quantity 180.0 deg>, expectedlatlon = <Quantity [ 0.,-1.] deg>
@pytest.mark.parametrize("rotation, expectedlatlon", [
(0*u.deg, [0, 1]*u.deg),
(180*u.deg, [0, -1]*u.deg),
(90*u.deg, [-1, 0]*u.deg),
(-90*u.deg, [1, 0]*u.deg)
])
def test_rotation(rotation, expectedlatlon):
origin = ICRS(45*u.deg, 45*u.deg)
target = ICRS(45*u.deg, 46*u.deg)
> aframe = SkyOffsetFrame(origin=origin, rotation=rotation)
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/tests/test_skyoffset_transformations.py:247:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/builtin_frames/skyoffset.py:199: in __new__
newcls = make_skyoffset_cls(origin_frame.__class__)
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/builtin_frames/skyoffset.py:110: in make_skyoffset_cls
{'__doc__': SkyOffsetFrame.__doc__})
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cls = <class 'astropy.coordinates.builtin_frames.skyoffset.make_skyoffset_cls.<locals>.SkyOffsetMeta'>, name = 'SkyOffsetFrame'
bases = (<class 'astropy.coordinates.builtin_frames.skyoffset.SkyOffsetFrame'>, <class 'astropy.coordinates.builtin_frames.icrs.ICRS'>)
members = {'__doc__': '\n A frame which is relative to some specific position and oriented to match\n its frame.\n\n Sk...at', framename='dec', defaultunit='recommended')]}, 'default_representation': <property object at 0x7f02d1a1e6d8>, ...}
def __new__(cls, name, bases, members):
# Only 'origin' is needed here, to set the origin frame properly.
members['origin'] = CoordinateAttribute(frame=framecls, default=None)
# This has to be done because FrameMeta will set these attributes
# to the defaults from BaseCoordinateFrame when it creates the base
# SkyOffsetFrame class initially.
members['_frame_specific_representation_info'] = framecls._frame_specific_representation_info
members['_default_representation'] = framecls._default_representation
newname = name[:-5] if name.endswith('Frame') else name
newname += framecls.__name__
res = super(SkyOffsetMeta, cls).__new__(cls, newname, bases, members)
# now go through all the component names and make any spherical names be "lon" and "lat"
# instead of e.g. "ra" and "dec"
lists_done = []
for nm, component_list in res._frame_specific_representation_info.items():
if nm in ('spherical', 'unitspherical'):
gotlatlon = []
for i, comp in enumerate(component_list):
if component_list in lists_done:
# we need this because sometimes the component_
# list's are the exact *same* object for both
# spherical and unitspherical. So looping then makes
# the change *twice*. This hack bypasses that.
continue
if comp.reprname in ('lon', 'lat'):
dct = namedtuple_asdict(comp)
# this forces the component names to be 'lat' and
# 'lon' regardless of what the actual base frame
# might use
dct['framename'] = comp.reprname
> component_list[i] = type(comp)(**dct)
E TypeError: __new__() missing 1 required positional argument: 'reprname'
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/builtin_frames/skyoffset.py:95: TypeError
_________________________________________________________________________________________________ test_rotation[rotation2-expectedlatlon2] _________________________________________________________________________________________________
rotation = <Quantity 90.0 deg>, expectedlatlon = <Quantity [-1., 0.] deg>
@pytest.mark.parametrize("rotation, expectedlatlon", [
(0*u.deg, [0, 1]*u.deg),
(180*u.deg, [0, -1]*u.deg),
(90*u.deg, [-1, 0]*u.deg),
(-90*u.deg, [1, 0]*u.deg)
])
def test_rotation(rotation, expectedlatlon):
origin = ICRS(45*u.deg, 45*u.deg)
target = ICRS(45*u.deg, 46*u.deg)
> aframe = SkyOffsetFrame(origin=origin, rotation=rotation)
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/tests/test_skyoffset_transformations.py:247:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/builtin_frames/skyoffset.py:199: in __new__
newcls = make_skyoffset_cls(origin_frame.__class__)
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/builtin_frames/skyoffset.py:110: in make_skyoffset_cls
{'__doc__': SkyOffsetFrame.__doc__})
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cls = <class 'astropy.coordinates.builtin_frames.skyoffset.make_skyoffset_cls.<locals>.SkyOffsetMeta'>, name = 'SkyOffsetFrame'
bases = (<class 'astropy.coordinates.builtin_frames.skyoffset.SkyOffsetFrame'>, <class 'astropy.coordinates.builtin_frames.icrs.ICRS'>)
members = {'__doc__': '\n A frame which is relative to some specific position and oriented to match\n its frame.\n\n Sk...at', framename='dec', defaultunit='recommended')]}, 'default_representation': <property object at 0x7f02d1a1ed18>, ...}
def __new__(cls, name, bases, members):
# Only 'origin' is needed here, to set the origin frame properly.
members['origin'] = CoordinateAttribute(frame=framecls, default=None)
# This has to be done because FrameMeta will set these attributes
# to the defaults from BaseCoordinateFrame when it creates the base
# SkyOffsetFrame class initially.
members['_frame_specific_representation_info'] = framecls._frame_specific_representation_info
members['_default_representation'] = framecls._default_representation
newname = name[:-5] if name.endswith('Frame') else name
newname += framecls.__name__
res = super(SkyOffsetMeta, cls).__new__(cls, newname, bases, members)
# now go through all the component names and make any spherical names be "lon" and "lat"
# instead of e.g. "ra" and "dec"
lists_done = []
for nm, component_list in res._frame_specific_representation_info.items():
if nm in ('spherical', 'unitspherical'):
gotlatlon = []
for i, comp in enumerate(component_list):
if component_list in lists_done:
# we need this because sometimes the component_
# list's are the exact *same* object for both
# spherical and unitspherical. So looping then makes
# the change *twice*. This hack bypasses that.
continue
if comp.reprname in ('lon', 'lat'):
dct = namedtuple_asdict(comp)
# this forces the component names to be 'lat' and
# 'lon' regardless of what the actual base frame
# might use
dct['framename'] = comp.reprname
> component_list[i] = type(comp)(**dct)
E TypeError: __new__() missing 1 required positional argument: 'reprname'
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/builtin_frames/skyoffset.py:95: TypeError
_________________________________________________________________________________________________ test_rotation[rotation3-expectedlatlon3] _________________________________________________________________________________________________
rotation = <Quantity -90.0 deg>, expectedlatlon = <Quantity [ 1., 0.] deg>
@pytest.mark.parametrize("rotation, expectedlatlon", [
(0*u.deg, [0, 1]*u.deg),
(180*u.deg, [0, -1]*u.deg),
(90*u.deg, [-1, 0]*u.deg),
(-90*u.deg, [1, 0]*u.deg)
])
def test_rotation(rotation, expectedlatlon):
origin = ICRS(45*u.deg, 45*u.deg)
target = ICRS(45*u.deg, 46*u.deg)
> aframe = SkyOffsetFrame(origin=origin, rotation=rotation)
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/tests/test_skyoffset_transformations.py:247:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/builtin_frames/skyoffset.py:199: in __new__
newcls = make_skyoffset_cls(origin_frame.__class__)
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/builtin_frames/skyoffset.py:110: in make_skyoffset_cls
{'__doc__': SkyOffsetFrame.__doc__})
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cls = <class 'astropy.coordinates.builtin_frames.skyoffset.make_skyoffset_cls.<locals>.SkyOffsetMeta'>, name = 'SkyOffsetFrame'
bases = (<class 'astropy.coordinates.builtin_frames.skyoffset.SkyOffsetFrame'>, <class 'astropy.coordinates.builtin_frames.icrs.ICRS'>)
members = {'__doc__': '\n A frame which is relative to some specific position and oriented to match\n its frame.\n\n Sk...at', framename='dec', defaultunit='recommended')]}, 'default_representation': <property object at 0x7f02d1a1eae8>, ...}
def __new__(cls, name, bases, members):
# Only 'origin' is needed here, to set the origin frame properly.
members['origin'] = CoordinateAttribute(frame=framecls, default=None)
# This has to be done because FrameMeta will set these attributes
# to the defaults from BaseCoordinateFrame when it creates the base
# SkyOffsetFrame class initially.
members['_frame_specific_representation_info'] = framecls._frame_specific_representation_info
members['_default_representation'] = framecls._default_representation
newname = name[:-5] if name.endswith('Frame') else name
newname += framecls.__name__
res = super(SkyOffsetMeta, cls).__new__(cls, newname, bases, members)
# now go through all the component names and make any spherical names be "lon" and "lat"
# instead of e.g. "ra" and "dec"
lists_done = []
for nm, component_list in res._frame_specific_representation_info.items():
if nm in ('spherical', 'unitspherical'):
gotlatlon = []
for i, comp in enumerate(component_list):
if component_list in lists_done:
# we need this because sometimes the component_
# list's are the exact *same* object for both
# spherical and unitspherical. So looping then makes
# the change *twice*. This hack bypasses that.
continue
if comp.reprname in ('lon', 'lat'):
dct = namedtuple_asdict(comp)
# this forces the component names to be 'lat' and
# 'lon' regardless of what the actual base frame
# might use
dct['framename'] = comp.reprname
> component_list[i] = type(comp)(**dct)
E TypeError: __new__() missing 1 required positional argument: 'reprname'
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/builtin_frames/skyoffset.py:95: TypeError
____________________________________________________________________________________ test_skycoord_skyoffset_frame_rotation[rotation0-expectedlatlon0] _____________________________________________________________________________________
rotation = <Quantity 0.0 deg>, expectedlatlon = <Quantity [ 0., 1.] deg>
@pytest.mark.parametrize("rotation, expectedlatlon", [
(0*u.deg, [0, 1]*u.deg),
(180*u.deg, [0, -1]*u.deg),
(90*u.deg, [-1, 0]*u.deg),
(-90*u.deg, [1, 0]*u.deg)
])
def test_skycoord_skyoffset_frame_rotation(rotation, expectedlatlon):
"""Test if passing a rotation argument via SkyCoord works"""
origin = SkyCoord(45*u.deg, 45*u.deg)
target = SkyCoord(45*u.deg, 46*u.deg)
> aframe = origin.skyoffset_frame(rotation=rotation)
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/tests/test_skyoffset_transformations.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/sky_coordinate.py:1056: in skyoffset_frame
return SkyOffsetFrame(origin=self, rotation=rotation)
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/builtin_frames/skyoffset.py:199: in __new__
newcls = make_skyoffset_cls(origin_frame.__class__)
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/builtin_frames/skyoffset.py:110: in make_skyoffset_cls
{'__doc__': SkyOffsetFrame.__doc__})
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cls = <class 'astropy.coordinates.builtin_frames.skyoffset.make_skyoffset_cls.<locals>.SkyOffsetMeta'>, name = 'SkyOffsetFrame'
bases = (<class 'astropy.coordinates.builtin_frames.skyoffset.SkyOffsetFrame'>, <class 'astropy.coordinates.builtin_frames.icrs.ICRS'>)
members = {'__doc__': '\n A frame which is relative to some specific position and oriented to match\n its frame.\n\n Sk...at', framename='dec', defaultunit='recommended')]}, 'default_representation': <property object at 0x7f02d1a1e728>, ...}
def __new__(cls, name, bases, members):
# Only 'origin' is needed here, to set the origin frame properly.
members['origin'] = CoordinateAttribute(frame=framecls, default=None)
# This has to be done because FrameMeta will set these attributes
# to the defaults from BaseCoordinateFrame when it creates the base
# SkyOffsetFrame class initially.
members['_frame_specific_representation_info'] = framecls._frame_specific_representation_info
members['_default_representation'] = framecls._default_representation
newname = name[:-5] if name.endswith('Frame') else name
newname += framecls.__name__
res = super(SkyOffsetMeta, cls).__new__(cls, newname, bases, members)
# now go through all the component names and make any spherical names be "lon" and "lat"
# instead of e.g. "ra" and "dec"
lists_done = []
for nm, component_list in res._frame_specific_representation_info.items():
if nm in ('spherical', 'unitspherical'):
gotlatlon = []
for i, comp in enumerate(component_list):
if component_list in lists_done:
# we need this because sometimes the component_
# list's are the exact *same* object for both
# spherical and unitspherical. So looping then makes
# the change *twice*. This hack bypasses that.
continue
if comp.reprname in ('lon', 'lat'):
dct = namedtuple_asdict(comp)
# this forces the component names to be 'lat' and
# 'lon' regardless of what the actual base frame
# might use
dct['framename'] = comp.reprname
> component_list[i] = type(comp)(**dct)
E TypeError: __new__() missing 1 required positional argument: 'reprname'
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/builtin_frames/skyoffset.py:95: TypeError
____________________________________________________________________________________ test_skycoord_skyoffset_frame_rotation[rotation1-expectedlatlon1] _____________________________________________________________________________________
rotation = <Quantity 180.0 deg>, expectedlatlon = <Quantity [ 0.,-1.] deg>
@pytest.mark.parametrize("rotation, expectedlatlon", [
(0*u.deg, [0, 1]*u.deg),
(180*u.deg, [0, -1]*u.deg),
(90*u.deg, [-1, 0]*u.deg),
(-90*u.deg, [1, 0]*u.deg)
])
def test_skycoord_skyoffset_frame_rotation(rotation, expectedlatlon):
"""Test if passing a rotation argument via SkyCoord works"""
origin = SkyCoord(45*u.deg, 45*u.deg)
target = SkyCoord(45*u.deg, 46*u.deg)
> aframe = origin.skyoffset_frame(rotation=rotation)
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/tests/test_skyoffset_transformations.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/sky_coordinate.py:1056: in skyoffset_frame
return SkyOffsetFrame(origin=self, rotation=rotation)
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/builtin_frames/skyoffset.py:199: in __new__
newcls = make_skyoffset_cls(origin_frame.__class__)
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/builtin_frames/skyoffset.py:110: in make_skyoffset_cls
{'__doc__': SkyOffsetFrame.__doc__})
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cls = <class 'astropy.coordinates.builtin_frames.skyoffset.make_skyoffset_cls.<locals>.SkyOffsetMeta'>, name = 'SkyOffsetFrame'
bases = (<class 'astropy.coordinates.builtin_frames.skyoffset.SkyOffsetFrame'>, <class 'astropy.coordinates.builtin_frames.icrs.ICRS'>)
members = {'__doc__': '\n A frame which is relative to some specific position and oriented to match\n its frame.\n\n Sk...at', framename='dec', defaultunit='recommended')]}, 'default_representation': <property object at 0x7f02d1a1ee58>, ...}
def __new__(cls, name, bases, members):
# Only 'origin' is needed here, to set the origin frame properly.
members['origin'] = CoordinateAttribute(frame=framecls, default=None)
# This has to be done because FrameMeta will set these attributes
# to the defaults from BaseCoordinateFrame when it creates the base
# SkyOffsetFrame class initially.
members['_frame_specific_representation_info'] = framecls._frame_specific_representation_info
members['_default_representation'] = framecls._default_representation
newname = name[:-5] if name.endswith('Frame') else name
newname += framecls.__name__
res = super(SkyOffsetMeta, cls).__new__(cls, newname, bases, members)
# now go through all the component names and make any spherical names be "lon" and "lat"
# instead of e.g. "ra" and "dec"
lists_done = []
for nm, component_list in res._frame_specific_representation_info.items():
if nm in ('spherical', 'unitspherical'):
gotlatlon = []
for i, comp in enumerate(component_list):
if component_list in lists_done:
# we need this because sometimes the component_
# list's are the exact *same* object for both
# spherical and unitspherical. So looping then makes
# the change *twice*. This hack bypasses that.
continue
if comp.reprname in ('lon', 'lat'):
dct = namedtuple_asdict(comp)
# this forces the component names to be 'lat' and
# 'lon' regardless of what the actual base frame
# might use
dct['framename'] = comp.reprname
> component_list[i] = type(comp)(**dct)
E TypeError: __new__() missing 1 required positional argument: 'reprname'
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/builtin_frames/skyoffset.py:95: TypeError
____________________________________________________________________________________ test_skycoord_skyoffset_frame_rotation[rotation2-expectedlatlon2] _____________________________________________________________________________________
rotation = <Quantity 90.0 deg>, expectedlatlon = <Quantity [-1., 0.] deg>
@pytest.mark.parametrize("rotation, expectedlatlon", [
(0*u.deg, [0, 1]*u.deg),
(180*u.deg, [0, -1]*u.deg),
(90*u.deg, [-1, 0]*u.deg),
(-90*u.deg, [1, 0]*u.deg)
])
def test_skycoord_skyoffset_frame_rotation(rotation, expectedlatlon):
"""Test if passing a rotation argument via SkyCoord works"""
origin = SkyCoord(45*u.deg, 45*u.deg)
target = SkyCoord(45*u.deg, 46*u.deg)
> aframe = origin.skyoffset_frame(rotation=rotation)
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/tests/test_skyoffset_transformations.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/sky_coordinate.py:1056: in skyoffset_frame
return SkyOffsetFrame(origin=self, rotation=rotation)
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/builtin_frames/skyoffset.py:199: in __new__
newcls = make_skyoffset_cls(origin_frame.__class__)
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/builtin_frames/skyoffset.py:110: in make_skyoffset_cls
{'__doc__': SkyOffsetFrame.__doc__})
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cls = <class 'astropy.coordinates.builtin_frames.skyoffset.make_skyoffset_cls.<locals>.SkyOffsetMeta'>, name = 'SkyOffsetFrame'
bases = (<class 'astropy.coordinates.builtin_frames.skyoffset.SkyOffsetFrame'>, <class 'astropy.coordinates.builtin_frames.icrs.ICRS'>)
members = {'__doc__': '\n A frame which is relative to some specific position and oriented to match\n its frame.\n\n Sk...at', framename='dec', defaultunit='recommended')]}, 'default_representation': <property object at 0x7f02d10f0638>, ...}
def __new__(cls, name, bases, members):
# Only 'origin' is needed here, to set the origin frame properly.
members['origin'] = CoordinateAttribute(frame=framecls, default=None)
# This has to be done because FrameMeta will set these attributes
# to the defaults from BaseCoordinateFrame when it creates the base
# SkyOffsetFrame class initially.
members['_frame_specific_representation_info'] = framecls._frame_specific_representation_info
members['_default_representation'] = framecls._default_representation
newname = name[:-5] if name.endswith('Frame') else name
newname += framecls.__name__
res = super(SkyOffsetMeta, cls).__new__(cls, newname, bases, members)
# now go through all the component names and make any spherical names be "lon" and "lat"
# instead of e.g. "ra" and "dec"
lists_done = []
for nm, component_list in res._frame_specific_representation_info.items():
if nm in ('spherical', 'unitspherical'):
gotlatlon = []
for i, comp in enumerate(component_list):
if component_list in lists_done:
# we need this because sometimes the component_
# list's are the exact *same* object for both
# spherical and unitspherical. So looping then makes
# the change *twice*. This hack bypasses that.
continue
if comp.reprname in ('lon', 'lat'):
dct = namedtuple_asdict(comp)
# this forces the component names to be 'lat' and
# 'lon' regardless of what the actual base frame
# might use
dct['framename'] = comp.reprname
> component_list[i] = type(comp)(**dct)
E TypeError: __new__() missing 1 required positional argument: 'reprname'
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/builtin_frames/skyoffset.py:95: TypeError
____________________________________________________________________________________ test_skycoord_skyoffset_frame_rotation[rotation3-expectedlatlon3] _____________________________________________________________________________________
rotation = <Quantity -90.0 deg>, expectedlatlon = <Quantity [ 1., 0.] deg>
@pytest.mark.parametrize("rotation, expectedlatlon", [
(0*u.deg, [0, 1]*u.deg),
(180*u.deg, [0, -1]*u.deg),
(90*u.deg, [-1, 0]*u.deg),
(-90*u.deg, [1, 0]*u.deg)
])
def test_skycoord_skyoffset_frame_rotation(rotation, expectedlatlon):
"""Test if passing a rotation argument via SkyCoord works"""
origin = SkyCoord(45*u.deg, 45*u.deg)
target = SkyCoord(45*u.deg, 46*u.deg)
> aframe = origin.skyoffset_frame(rotation=rotation)
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/tests/test_skyoffset_transformations.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/sky_coordinate.py:1056: in skyoffset_frame
return SkyOffsetFrame(origin=self, rotation=rotation)
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/builtin_frames/skyoffset.py:199: in __new__
newcls = make_skyoffset_cls(origin_frame.__class__)
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/builtin_frames/skyoffset.py:110: in make_skyoffset_cls
{'__doc__': SkyOffsetFrame.__doc__})
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cls = <class 'astropy.coordinates.builtin_frames.skyoffset.make_skyoffset_cls.<locals>.SkyOffsetMeta'>, name = 'SkyOffsetFrame'
bases = (<class 'astropy.coordinates.builtin_frames.skyoffset.SkyOffsetFrame'>, <class 'astropy.coordinates.builtin_frames.icrs.ICRS'>)
members = {'__doc__': '\n A frame which is relative to some specific position and oriented to match\n its frame.\n\n Sk...at', framename='dec', defaultunit='recommended')]}, 'default_representation': <property object at 0x7f02d10f0c28>, ...}
def __new__(cls, name, bases, members):
# Only 'origin' is needed here, to set the origin frame properly.
members['origin'] = CoordinateAttribute(frame=framecls, default=None)
# This has to be done because FrameMeta will set these attributes
# to the defaults from BaseCoordinateFrame when it creates the base
# SkyOffsetFrame class initially.
members['_frame_specific_representation_info'] = framecls._frame_specific_representation_info
members['_default_representation'] = framecls._default_representation
newname = name[:-5] if name.endswith('Frame') else name
newname += framecls.__name__
res = super(SkyOffsetMeta, cls).__new__(cls, newname, bases, members)
# now go through all the component names and make any spherical names be "lon" and "lat"
# instead of e.g. "ra" and "dec"
lists_done = []
for nm, component_list in res._frame_specific_representation_info.items():
if nm in ('spherical', 'unitspherical'):
gotlatlon = []
for i, comp in enumerate(component_list):
if component_list in lists_done:
# we need this because sometimes the component_
# list's are the exact *same* object for both
# spherical and unitspherical. So looping then makes
# the change *twice*. This hack bypasses that.
continue
if comp.reprname in ('lon', 'lat'):
dct = namedtuple_asdict(comp)
# this forces the component names to be 'lat' and
# 'lon' regardless of what the actual base frame
# might use
dct['framename'] = comp.reprname
> component_list[i] = type(comp)(**dct)
E TypeError: __new__() missing 1 required positional argument: 'reprname'
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/builtin_frames/skyoffset.py:95: TypeError
___________________________________________________________________________________________________________ test_skyoffset_names ___________________________________________________________________________________________________________
def test_skyoffset_names():
origin1 = ICRS(45*u.deg, 45*u.deg)
> aframe1 = SkyOffsetFrame(origin=origin1)
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/tests/test_skyoffset_transformations.py:274:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/builtin_frames/skyoffset.py:199: in __new__
newcls = make_skyoffset_cls(origin_frame.__class__)
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/builtin_frames/skyoffset.py:110: in make_skyoffset_cls
{'__doc__': SkyOffsetFrame.__doc__})
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cls = <class 'astropy.coordinates.builtin_frames.skyoffset.make_skyoffset_cls.<locals>.SkyOffsetMeta'>, name = 'SkyOffsetFrame'
bases = (<class 'astropy.coordinates.builtin_frames.skyoffset.SkyOffsetFrame'>, <class 'astropy.coordinates.builtin_frames.icrs.ICRS'>)
members = {'__doc__': '\n A frame which is relative to some specific position and oriented to match\n its frame.\n\n Sk...at', framename='dec', defaultunit='recommended')]}, 'default_representation': <property object at 0x7f02d10f0b88>, ...}
def __new__(cls, name, bases, members):
# Only 'origin' is needed here, to set the origin frame properly.
members['origin'] = CoordinateAttribute(frame=framecls, default=None)
# This has to be done because FrameMeta will set these attributes
# to the defaults from BaseCoordinateFrame when it creates the base
# SkyOffsetFrame class initially.
members['_frame_specific_representation_info'] = framecls._frame_specific_representation_info
members['_default_representation'] = framecls._default_representation
newname = name[:-5] if name.endswith('Frame') else name
newname += framecls.__name__
res = super(SkyOffsetMeta, cls).__new__(cls, newname, bases, members)
# now go through all the component names and make any spherical names be "lon" and "lat"
# instead of e.g. "ra" and "dec"
lists_done = []
for nm, component_list in res._frame_specific_representation_info.items():
if nm in ('spherical', 'unitspherical'):
gotlatlon = []
for i, comp in enumerate(component_list):
if component_list in lists_done:
# we need this because sometimes the component_
# list's are the exact *same* object for both
# spherical and unitspherical. So looping then makes
# the change *twice*. This hack bypasses that.
continue
if comp.reprname in ('lon', 'lat'):
dct = namedtuple_asdict(comp)
# this forces the component names to be 'lat' and
# 'lon' regardless of what the actual base frame
# might use
dct['framename'] = comp.reprname
> component_list[i] = type(comp)(**dct)
E TypeError: __new__() missing 1 required positional argument: 'reprname'
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/builtin_frames/skyoffset.py:95: TypeError
________________________________________________________________________________________________________ test_skyoffset_origindata _________________________________________________________________________________________________________
def test_skyoffset_origindata():
origin = ICRS()
with pytest.raises(ValueError):
> SkyOffsetFrame(origin=origin)
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/tests/test_skyoffset_transformations.py:285:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/builtin_frames/skyoffset.py:199: in __new__
newcls = make_skyoffset_cls(origin_frame.__class__)
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/builtin_frames/skyoffset.py:110: in make_skyoffset_cls
{'__doc__': SkyOffsetFrame.__doc__})
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cls = <class 'astropy.coordinates.builtin_frames.skyoffset.make_skyoffset_cls.<locals>.SkyOffsetMeta'>, name = 'SkyOffsetFrame'
bases = (<class 'astropy.coordinates.builtin_frames.skyoffset.SkyOffsetFrame'>, <class 'astropy.coordinates.builtin_frames.icrs.ICRS'>)
members = {'__doc__': '\n A frame which is relative to some specific position and oriented to match\n its frame.\n\n Sk...at', framename='dec', defaultunit='recommended')]}, 'default_representation': <property object at 0x7f02d10f4138>, ...}
def __new__(cls, name, bases, members):
# Only 'origin' is needed here, to set the origin frame properly.
members['origin'] = CoordinateAttribute(frame=framecls, default=None)
# This has to be done because FrameMeta will set these attributes
# to the defaults from BaseCoordinateFrame when it creates the base
# SkyOffsetFrame class initially.
members['_frame_specific_representation_info'] = framecls._frame_specific_representation_info
members['_default_representation'] = framecls._default_representation
newname = name[:-5] if name.endswith('Frame') else name
newname += framecls.__name__
res = super(SkyOffsetMeta, cls).__new__(cls, newname, bases, members)
# now go through all the component names and make any spherical names be "lon" and "lat"
# instead of e.g. "ra" and "dec"
lists_done = []
for nm, component_list in res._frame_specific_representation_info.items():
if nm in ('spherical', 'unitspherical'):
gotlatlon = []
for i, comp in enumerate(component_list):
if component_list in lists_done:
# we need this because sometimes the component_
# list's are the exact *same* object for both
# spherical and unitspherical. So looping then makes
# the change *twice*. This hack bypasses that.
continue
if comp.reprname in ('lon', 'lat'):
dct = namedtuple_asdict(comp)
# this forces the component names to be 'lat' and
# 'lon' regardless of what the actual base frame
# might use
dct['framename'] = comp.reprname
> component_list[i] = type(comp)(**dct)
E TypeError: __new__() missing 1 required positional argument: 'reprname'
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/builtin_frames/skyoffset.py:95: TypeError
__________________________________________________________________________________________________________ test_skyoffset_lonwrap __________________________________________________________________________________________________________
def test_skyoffset_lonwrap():
origin = ICRS(45*u.deg, 45*u.deg)
> sc = SkyCoord(190*u.deg, -45*u.deg, frame=SkyOffsetFrame(origin=origin))
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/tests/test_skyoffset_transformations.py:289:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/builtin_frames/skyoffset.py:199: in __new__
newcls = make_skyoffset_cls(origin_frame.__class__)
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/builtin_frames/skyoffset.py:110: in make_skyoffset_cls
{'__doc__': SkyOffsetFrame.__doc__})
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cls = <class 'astropy.coordinates.builtin_frames.skyoffset.make_skyoffset_cls.<locals>.SkyOffsetMeta'>, name = 'SkyOffsetFrame'
bases = (<class 'astropy.coordinates.builtin_frames.skyoffset.SkyOffsetFrame'>, <class 'astropy.coordinates.builtin_frames.icrs.ICRS'>)
members = {'__doc__': '\n A frame which is relative to some specific position and oriented to match\n its frame.\n\n Sk...at', framename='dec', defaultunit='recommended')]}, 'default_representation': <property object at 0x7f02d10f0c78>, ...}
def __new__(cls, name, bases, members):
# Only 'origin' is needed here, to set the origin frame properly.
members['origin'] = CoordinateAttribute(frame=framecls, default=None)
# This has to be done because FrameMeta will set these attributes
# to the defaults from BaseCoordinateFrame when it creates the base
# SkyOffsetFrame class initially.
members['_frame_specific_representation_info'] = framecls._frame_specific_representation_info
members['_default_representation'] = framecls._default_representation
newname = name[:-5] if name.endswith('Frame') else name
newname += framecls.__name__
res = super(SkyOffsetMeta, cls).__new__(cls, newname, bases, members)
# now go through all the component names and make any spherical names be "lon" and "lat"
# instead of e.g. "ra" and "dec"
lists_done = []
for nm, component_list in res._frame_specific_representation_info.items():
if nm in ('spherical', 'unitspherical'):
gotlatlon = []
for i, comp in enumerate(component_list):
if component_list in lists_done:
# we need this because sometimes the component_
# list's are the exact *same* object for both
# spherical and unitspherical. So looping then makes
# the change *twice*. This hack bypasses that.
continue
if comp.reprname in ('lon', 'lat'):
dct = namedtuple_asdict(comp)
# this forces the component names to be 'lat' and
# 'lon' regardless of what the actual base frame
# might use
dct['framename'] = comp.reprname
> component_list[i] = type(comp)(**dct)
E TypeError: __new__() missing 1 required positional argument: 'reprname'
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/coordinates/builtin_frames/skyoffset.py:95: TypeError
________________________________________________________________________________________________________________ test_alias ________________________________________________________________________________________________________________
def test_alias():
from ...cosmology import core, WMAP9, WMAP7
# REMOVE in astropy 0.5
with catch_warnings() as w:
> x = core.DEFAULT_COSMOLOGY()
E AttributeError: 'module' object has no attribute 'DEFAULT_COSMOLOGY'
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/utils/tests/test_state.py:15: AttributeError
______________________________________________________________________________________________________ TestAliasRead.test_alias_read _______________________________________________________________________________________________________
self = <astropy.utils.tests.test_state.TestAliasRead object at 0x7f02ca6ac160>
def test_alias_read(self):
from ...cosmology import core, WMAP9, WMAP7
with catch_warnings() as w:
> core.DEFAULT_COSMOLOGY.reload()
E AttributeError: 'module' object has no attribute 'DEFAULT_COSMOLOGY'
/home/gkovacs/.local/lib/python3.4/site-packages/astropy/utils/tests/test_state.py:59: AttributeError
==================================================================================== 26 failed, 8127 passed, 141 skipped, 39 xfailed in 284.80 seconds =====================================================================================
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment