Skip to content

Instantly share code, notes, and snippets.

@saimn
Created December 13, 2017 14:25
Show Gist options
  • Save saimn/fa76010f83131f525dc747d1dac5840c to your computer and use it in GitHub Desktop.
Save saimn/fa76010f83131f525dc747d1dac5840c to your computer and use it in GitHub Desktop.
Astropy tests with Python 3.7a3 and Numpy 1.14pre
===================================== test session starts =====================================
platform linux -- Python 3.7.0a3, pytest-3.3.1, py-1.5.2, pluggy-0.6.0
Running tests with Astropy version 3.0.dev20889.
Running tests in astropy docs.
Date: 2017-12-13T15:20:29
Platform: Linux-4.14.4-1-ARCH-x86_64-with-arch
Executable: /home/simon/.pyenv/versions/py37/bin/python
Full Python Version:
3.7.0a3 (default, Dec 13 2017, 10:29:48)
[GCC 7.2.1 20171128]
encodings: sys: utf-8, locale: UTF-8, filesystem: utf-8
byteorder: little
float info: dig: 15, mant_dig: 15
Numpy: 1.14.0.dev0+295594a
Scipy: not available
Matplotlib: not available
h5py: not available
Pandas: not available
Cython: 0.27.3
Using Astropy options: remote_data: none.
rootdir: /tmp/simon/astropy-test-2_c99s4q/lib/python3.7/site-packages, inifile: setup.cfg
plugins: arraydiff-0.1, openfiles-0.2.0, doctestplus-0.1.2, remotedata-0.2.0
collected 10156 items / 49 skipped
astropy/_erfa/tests/test_erfa.py ....... [ 0%]
astropy/config/configuration.py . [ 0%]
astropy/config/tests/test_configs.py ......F........ [ 0%]
astropy/constants/__init__.py . [ 0%]
astropy/constants/tests/test_constant.py ........ [ 0%]
astropy/constants/tests/test_pickle.py xxxxxxxxx [ 0%]
astropy/constants/tests/test_prior_version.py ........ [ 0%]
astropy/convolution/kernels.py ... [ 0%]
astropy/convolution/tests/test_convolve.py ............................................ [ 0%]
....................................................................................... [ 1%]
.................................................................s [ 2%]
astropy/convolution/tests/test_convolve_fft.py ........................................ [ 2%]
....................................................................................... [ 3%]
........................................................................ [ 4%]
astropy/convolution/tests/test_convolve_kernels.py .................................... [ 4%]
.......................................... [ 5%]
astropy/convolution/tests/test_convolve_models.py ssssss....ss [ 5%]
astropy/convolution/tests/test_convolve_nddata.py ... [ 5%]
astropy/convolution/tests/test_discretize.py ...s...........s........sss....... [ 5%]
astropy/convolution/tests/test_kernel_class.py ssssssss................................ [ 6%]
ssss....................................ssss........................................... [ 6%]
...................................ssss............... [ 7%]
astropy/convolution/tests/test_pickle.py .xx.xx.xx [ 7%]
astropy/coordinates/angles.py .. [ 7%]
astropy/coordinates/baseframe.py . [ 7%]
astropy/coordinates/representation.py . [ 7%]
astropy/coordinates/sky_coordinate.py .. [ 7%]
astropy/coordinates/solar_system.py ..... [ 7%]
astropy/coordinates/builtin_frames/galactocentric.py . [ 7%]
astropy/coordinates/tests/test_angles.py ........................................ [ 8%]
astropy/coordinates/tests/test_angular_separation.py .... [ 8%]
astropy/coordinates/tests/test_api_ape5.py ....s [ 8%]
astropy/coordinates/tests/test_arrays.py ............. [ 8%]
astropy/coordinates/tests/test_atc_replacements.py .... [ 8%]
astropy/coordinates/tests/test_celestial_transformations.py ............... [ 8%]
astropy/coordinates/tests/test_distance.py .s........ [ 8%]
astropy/coordinates/tests/test_earth.py ..............s. [ 8%]
astropy/coordinates/tests/test_finite_difference_velocities.py .........xx [ 8%]
astropy/coordinates/tests/test_formatting.py .......... [ 8%]
astropy/coordinates/tests/test_frames.py .................................. [ 9%]
astropy/coordinates/tests/test_frames_with_velocity.py ................................ [ 9%]
......... [ 9%]
astropy/coordinates/tests/test_funcs.py ... [ 9%]
astropy/coordinates/tests/test_iau_fullstack.py ....................................... [ 10%]
............. [ 10%]
astropy/coordinates/tests/test_intermediate_transformations.py ........................ [ 10%]
.................................s [ 10%]
astropy/coordinates/tests/test_matching.py ssssssssss [ 10%]
astropy/coordinates/tests/test_matrix_utilities.py .. [ 10%]
astropy/coordinates/tests/test_name_resolve.py sss [ 10%]
astropy/coordinates/tests/test_pickle.py ...xxx.x..xxx.x..xxx.x. [ 11%]
astropy/coordinates/tests/test_regression.py .....s............ss..s.... [ 11%]
astropy/coordinates/tests/test_representation.py ...................................... [ 11%]
....................................................... [ 12%]
astropy/coordinates/tests/test_representation_arithmetic.py ........................... [ 12%]
.............................................................. [ 13%]
astropy/coordinates/tests/test_representation_methods.py ............ [ 13%]
astropy/coordinates/tests/test_shape_manipulation.py ......... [ 13%]
astropy/coordinates/tests/test_sites.py .ss.s.. [ 13%]
astropy/coordinates/tests/test_sky_coord.py ........................................... [ 13%]
....................................................................................... [ 14%]
....................................................................................... [ 15%]
....................................................................................... [ 16%]
..........................................................................x........s... [ 17%]
....s...... [ 17%]
astropy/coordinates/tests/test_skyoffset_transformations.py ........................ [ 17%]
astropy/coordinates/tests/test_solar_system.py s....ssss..ssssssss....sss [ 17%]
astropy/coordinates/tests/test_transformations.py ............................ [ 18%]
astropy/coordinates/tests/test_unit_representation.py . [ 18%]
astropy/coordinates/tests/test_velocity_corrs.py ...... [ 18%]
astropy/coordinates/tests/accuracy/test_altaz_icrs.py ...x [ 18%]
astropy/coordinates/tests/accuracy/test_ecliptic.py ..... [ 18%]
astropy/coordinates/tests/accuracy/test_fk4_no_e_fk4.py . [ 18%]
astropy/coordinates/tests/accuracy/test_fk4_no_e_fk5.py . [ 18%]
astropy/coordinates/tests/accuracy/test_galactic_fk4.py . [ 18%]
astropy/coordinates/tests/accuracy/test_icrs_fk5.py . [ 18%]
astropy/cosmology/tests/test_cosmology.py ..sss..s.ssssssss.ssssss.ssssssssssssss [ 18%]
astropy/cosmology/tests/test_pickle.py ... [ 18%]
astropy/io/ascii/core.py . [ 18%]
astropy/io/ascii/daophot.py . [ 18%]
astropy/io/ascii/ipac.py . [ 18%]
astropy/io/ascii/tests/test_c_reader.py ...........................x................... [ 19%]
...........x.......x.x.................sss.ss.xx.... [ 19%]
astropy/io/ascii/tests/test_cds_header_from_readme.py .... [ 19%]
astropy/io/ascii/tests/test_compressed.py ....... [ 19%]
astropy/io/ascii/tests/test_connect.py .............ss.......Fs [ 20%]
astropy/io/ascii/tests/test_ecsv.py ssssssssssssssssssssssssssssssssssssss [ 20%]
astropy/io/ascii/tests/test_fixedwidth.py ............................... [ 20%]
astropy/io/ascii/tests/test_html.py s.ssssss.ssss.s.sss.....s [ 21%]
astropy/io/ascii/tests/test_ipac_definitions.py .................... [ 21%]
astropy/io/ascii/tests/test_read.py ................................................... [ 21%]
............................................................s........FF.. [ 22%]
astropy/io/ascii/tests/test_rst.py ......... [ 22%]
astropy/io/ascii/tests/test_types.py ... [ 22%]
astropy/io/ascii/tests/test_write.py F...F................F....................F....... [ 23%]
....F...........F................ [ 23%]
astropy/io/fits/diff.py . [ 23%]
astropy/io/fits/util.py ... [ 23%]
astropy/io/fits/tests/test_checksum.py ..................... [ 23%]
astropy/io/fits/tests/test_compression_failures.py .................................... [ 24%]
. [ 24%]
astropy/io/fits/tests/test_connect.py ................................. [ 24%]
astropy/io/fits/tests/test_convenience.py ....... [ 24%]
astropy/io/fits/tests/test_core.py ................................s................... [ 24%]
.................... [ 25%]
astropy/io/fits/tests/test_diff.py .......................................... [ 25%]
astropy/io/fits/tests/test_division.py ..... [ 25%]
astropy/io/fits/tests/test_fitscheck.py ...... [ 25%]
astropy/io/fits/tests/test_fitsdiff.py ............. [ 25%]
astropy/io/fits/tests/test_fitsheader.py ..... [ 25%]
astropy/io/fits/tests/test_fitsinfo.py .. [ 25%]
astropy/io/fits/tests/test_fitstime.py ................... [ 26%]
astropy/io/fits/tests/test_groups.py ........ [ 26%]
astropy/io/fits/tests/test_hdulist.py ................................................ [ 26%]
astropy/io/fits/tests/test_header.py .................................................. [ 27%]
....................................................................................... [ 27%]
......... [ 28%]
astropy/io/fits/tests/test_image.py ...............................................s... [ 28%]
............................... [ 28%]
astropy/io/fits/tests/test_nonstandard.py ... [ 28%]
astropy/io/fits/tests/test_structured.py . [ 28%]
astropy/io/fits/tests/test_table.py ................................................... [ 29%]
..........ss....................... [ 29%]
astropy/io/fits/tests/test_uint.py ...
..... [ 29%]
astropy/io/fits/tests/test_util.py ...s.... [ 29%]
astropy/io/misc/tests/test_hdf5.py ssssssssssssssssssssssssssssssssssssssssssss [ 30%]
astropy/io/misc/tests/test_pickle_helpers.py .... [ 30%]
astropy/io/misc/tests/test_yaml.py ssssssssssssssssssssssssssssss [ 30%]
astropy/io/tests/test_registry.py .................................. [ 30%]
astropy/io/votable/tests/converter_test.py ....................... [ 31%]
astropy/io/votable/tests/exception_test.py .. [ 31%]
astropy/io/votable/tests/table_test.py ......... [ 31%]
astropy/io/votable/tests/tree_test.py ... [ 31%]
astropy/io/votable/tests/ucd_test.py ..... [ 31%]
astropy/io/votable/tests/util_test.py ........... [ 31%]
astropy/io/votable/tests/vo_test.py ................................................... [ 32%]
....................................................................................... [ 32%]
........................ [ 33%]
astropy/modeling/blackbody.py .. [ 33%]
astropy/modeling/core.py ..s.. [ 33%]
astropy/modeling/functional_models.py . [ 33%]
astropy/modeling/mappings.py .. [ 33%]
astropy/modeling/parameters.py . [ 33%]
astropy/modeling/tabular.py .. [ 33%]
astropy/modeling/utils.py .. [ 33%]
astropy/modeling/tests/test_blackbody.py ..ss.... [ 33%]
astropy/modeling/tests/test_compound.py ............................................... [ 33%]
.............. [ 33%]
astropy/modeling/tests/test_constraints.py ssssssss...........sss [ 34%]
astropy/modeling/tests/test_core.py ............... [ 34%]
astropy/modeling/tests/test_fitters.py ..s..ssss......sssssssss....ssss [ 34%]
astropy/modeling/tests/test_functional_models.py ...........s...ss [ 34%]
astropy/modeling/tests/test_input.py ...............ssss............................... [ 35%]
.... [ 35%]
astropy/modeling/tests/test_mappings.py ......s [ 35%]
astropy/modeling/tests/test_models.py s..........s................s..........s.s..sss.s [ 35%]
sssssssssssssssssssssssssssssssssssssssss........s..s........s..s.s..sss.s.ssssssssssss [ 36%]
sssssssssssss....sss. [ 36%]
astropy/modeling/tests/test_models_quantities.py .s.................s.s......s......... [ 37%]
........s.s......s.................s.s......s.................s.s......s............... [ 38%]
..s.s.....sssssssssssssssssssssssssss [ 38%]
astropy/modeling/tests/test_parameters.py ............................................. [ 38%]
........ [ 39%]
astropy/modeling/tests/test_polynomial.py sssssssssssssssssssssssssssssssssssss........ [ 39%]
.s [ 39%]
astropy/modeling/tests/test_projections.py ............................................ [ 39%]
....................................................................................... [ 40%]
......... [ 40%]
astropy/modeling/tests/test_quantities_evaluation.py ......... [ 40%]
astropy/modeling/tests/test_quantities_fitting.py sssss [ 41%]
astropy/modeling/tests/test_quantities_model.py .. [ 41%]
astropy/modeling/tests/test_quantities_parameters.py ............. [ 41%]
astropy/modeling/tests/test_quantities_rotations.py ............... [ 41%]
astropy/modeling/tests/test_rotations.py ................... [ 41%]
astropy/modeling/tests/test_utils.py ... [ 41%]
astropy/nddata/ccddata.py . [ 41%]
astropy/nddata/nddata.py . [ 41%]
astropy/nddata/nddata_withmixins.py . [ 41%]
astropy/nddata/nduncertainty.py . [ 41%]
astropy/nddata/utils.py ...... [ 41%]
astropy/nddata/mixins/ndarithmetic.py . [ 41%]
astropy/nddata/mixins/ndslicing.py . [ 41%]
astropy/nddata/mixins/tests/test_ndarithmetic.py ...................................... [ 42%]
........................................................... [ 42%]
astropy/nddata/mixins/tests/test_ndio.py . [ 42%]
astropy/nddata/mixins/tests/test_ndslicing.py ........... [ 42%]
astropy/nddata/tests/test_ccddata.py .................................................. [ 43%]
................................... [ 43%]
astropy/nddata/tests/test_compat.py ................. [ 43%]
astropy/nddata/tests/test_decorators.py ............................ [ 44%]
astropy/nddata/tests/test_flag_collection.py .......... [ 44%]
astropy/nddata/tests/test_nddata.py .................................... [ 44%]
astropy/nddata/tests/test_nddata_base.py . [ 44%]
astropy/nddata/tests/test_nduncertainty.py .................... [ 44%]
astropy/nddata/tests/test_utils.py ..........................sssssssssssss............. [ 45%]
. [ 45%]
astropy/samp/tests/test_client.py .... [ 45%]
astropy/samp/tests/test_errors.py ... [ 45%]
astropy/samp/tests/test_hub.py ... [ 45%]
astropy/samp/tests/test_hub_proxy.py ..... [ 45%]
astropy/samp/tests/test_hub_script.py . [ 45%]
astropy/samp/tests/test_standard_profile.py . [ 45%]
astropy/samp/tests/test_web_profile.py .. [ 45%]
astropy/stats/bayesian_blocks.py . [ 45%]
astropy/stats/biweight.py ..... [ 45%]
astropy/stats/circstats.py ...... [ 45%]
astropy/stats/funcs.py ... [ 45%]
astropy/stats/info_theory.py .. [ 45%]
astropy/stats/sigma_clipping.py .. [ 45%]
astropy/stats/spatial.py . [ 45%]
astropy/stats/lombscargle/core.py . [ 45%]
astropy/stats/lombscargle/implementations/utils.py . [ 45%]
astropy/stats/lombscargle/implementations/tests/test_mle.py ........................ [ 45%]
astropy/stats/lombscargle/implementations/tests/test_utils.py ......................... [ 46%]
.................... [ 46%]
astropy/stats/lombscargle/tests/test_lombscargle.py ................................... [ 46%]
....................................................................................... [ 47%]
....................................................................................... [ 48%]
....................................................................................... [ 49%]
....................................................................................... [ 50%]
....................................................................................... [ 50%]
....................................................................................... [ 51%]
....................................................................................... [ 52%]
....................................................................................... [ 53%]
........................................................................... [ 54%]
astropy/stats/lombscargle/tests/test_statistics.py ............................ss..ss.. [ 54%]
ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss. [ 55%]
.s.s..s.s..s.s..s.s..s.s..s.s..s.s..s.s..s.s..s.s.. [ 55%]
astropy/stats/lombscargle/tests/test_utils.py ................ [ 56%]
astropy/stats/tests/test_bayesian_blocks.py ....... [ 56%]
astropy/stats/tests/test_biweight.py ................... [ 56%]
astropy/stats/tests/test_circstats.py ..s....s. [ 56%]
astropy/stats/tests/test_funcs.py .....ss..s.x.........ssss.s..sssssssssssssss.ssssssss [ 56%]
ssssssssssssssssssssssss [ 57%]
astropy/stats/tests/test_histogram.py ..ss..s.. [ 57%]
astropy/stats/tests/test_info_theory.py .... [ 57%]
astropy/stats/tests/test_jackknife.py .ss [ 57%]
astropy/stats/tests/test_sigma_clipping.py .s......... [ 57%]
astropy/stats/tests/test_spatial.py ............ [ 57%]
astropy/table/info.py .. [ 57%]
astropy/table/meta.py s. [ 57%]
astropy/table/operations.py .... [ 57%]
astropy/table/row.py . [ 57%]
astropy/table/table.py .............. [ 57%]
astropy/table/table_helpers.py . [ 57%]
astropy/table/tests/test_array.py ... [ 57%]
astropy/table/tests/test_bst.py ....... [ 57%]
astropy/table/tests/test_column.py .................................................... [ 58%]
....................................................... [ 58%]
astropy/table/tests/test_groups.py ...................................... [ 59%]
astropy/table/tests/test_index.py ..................................................... [ 59%]
....................................................................................... [ 60%]
....................................................................................... [ 61%]
................................................................ [ 62%]
astropy/table/tests/test_info.py ............. [ 62%]
astropy/table/tests/test_init_table.py ................................................ [ 62%]
....................................................................................... [ 63%]
.................... [ 63%]
astropy/table/tests/test_item_access.py ...................................... [ 64%]
astropy/table/tests/test_jsviewer.py .s.s [ 64%]
astropy/table/tests/test_masked.py .................................. [ 64%]
astropy/table/tests/test_mixin.py .....................................sss.s.s......... [ 65%]
....................................................... [ 65%]
astropy/table/tests/test_np_utils.py . [ 65%]
astropy/table/tests/test_operations.py .......x...x.x.x...........x.....x.............. [ 66%]
.........x...x...x.........................x............. [ 66%]
astropy/table/tests/test_pickle.py .............................. [ 67%]
astropy/table/tests/test_pprint.py .................................................... [ 67%]
...... [ 67%]
astropy/table/tests/test_row.py .................................. [ 67%]
astropy/table/tests/test_showtable.py ............ [ 68%]
astropy/table/tests/test_subclass.py .. [ 68%]
astropy/table/tests/test_table.py ..................................................... [ 68%]
....................................................................................... [ 69%]
....................................................................................... [ 70%]
....................................................................................... [ 71%]
.............x........................ssss...................... [ 71%]
astropy/tests/test_logger.py ............x................ [ 72%]
astropy/tests/tests/test_imports.py s. [ 72%]
astropy/tests/tests/test_quantity_helpers.py . [ 72%]
astropy/tests/tests/test_run_tests.py .... [ 72%]
astropy/tests/tests/test_runner.py ...... [ 72%]
astropy/time/core.py .... [ 72%]
astropy/time/formats.py .. [ 72%]
astropy/time/tests/test_basic.py ............................................s......... [ 72%]
.s..... [ 72%]
astropy/time/tests/test_comparisons.py ... [ 72%]
astropy/time/tests/test_corrs.py ...s [ 72%]
astropy/time/tests/test_delta.py ...................................................... [ 73%]
............................ [ 73%]
astropy/time/tests/test_guess.py .... [ 73%]
astropy/time/tests/test_methods.py ................................................. [ 74%]
astropy/time/tests/test_pickle.py . [ 74%]
astropy/time/tests/test_precision.py .......x.. [ 74%]
astropy/time/tests/test_quantity_interaction.py ............... [ 74%]
astropy/time/tests/test_sidereal.py ................... [ 74%]
astropy/time/tests/test_ut1.py s..ss [ 74%]
astropy/units/cds.py . [ 74%]
astropy/units/core.py .... [ 74%]
astropy/units/deprecated.py . [ 74%]
astropy/units/equivalencies.py .... [ 74%]
astropy/units/imperial.py . [ 74%]
astropy/units/format/console.py . [ 74%]
astropy/units/format/unicode_format.py . [ 74%]
astropy/units/function/logarithmic.py . [ 74%]
astropy/units/function/magnitude_zero_points.py . [ 74%]
astropy/units/tests/test_deprecated.py .. [ 74%]
astropy/units/tests/test_equivalencies.py ............................................. [ 75%]
............ [ 75%]
astropy/units/tests/test_format.py .................................................... [ 75%]
....................................................................................... [ 76%]
....................................................................................... [ 77%]
....................................................................................... [ 78%]
....................................................................................... [ 79%]
....................................................................................... [ 80%]
....................................................................................... [ 81%]
................................................ [ 81%]
astropy/units/tests/test_logarithmic.py ............................................... [ 82%]
....................................................................................... [ 82%]
....................................................................... [ 83%]
astropy/units/tests/test_physical.py ........... [ 83%]
astropy/units/tests/test_quantity.py ..........................x....................... [ 84%]
............................ss. [ 84%]
astropy/units/tests/test_quantity_array_methods.py .................................... [ 84%]
......x................ [ 85%]
astropy/units/tests/test_quantity_decorator.py ........................................ [ 85%]
....................................................................................... [ 86%]
....................................................................................... [ 87%]
....................................................................................... [ 88%]
...................................... [ 88%]
astropy/units/tests/test_quantity_non_ufuncs.py xxxx [ 88%]
astropy/units/tests/test_quantity_ufuncs.py ........................................... [ 88%]
....................................................................................... [ 89%]
...................................... [ 90%]
astropy/units/tests/test_units.py ..................................................... [ 90%]
....................................................................................... [ 91%]
....................................................................................... [ 92%]
.............. [ 92%]
astropy/utils/data.py .... [ 92%]
astropy/utils/data_info.py .. [ 92%]
astropy/utils/decorators.py ..... [ 92%]
astropy/utils/introspection.py ... [ 92%]
astropy/utils/metadata.py .. [ 92%]
astropy/utils/misc.py ... [ 92%]
astropy/utils/timer.py . [ 92%]
astropy/utils/iers/tests/test_iers.py ....sss [ 92%]
astropy/utils/tests/test_codegen.py . [ 92%]
astropy/utils/tests/test_collections.py ......... [ 92%]
astropy/utils/tests/test_console.py ........................... [ 93%]
astropy/utils/tests/test_data.py sssssss...........s.....s.s..s [ 93%]
astropy/utils/tests/test_data_info.py ............ [ 93%]
astropy/utils/tests/test_decorators.py .......................... [ 93%]
astropy/utils/tests/test_introspection.py .... [ 93%]
astropy/utils/tests/test_metadata.py ................... [ 94%]
astropy/utils/tests/test_misc.py ..s...s.. [ 94%]
astropy/utils/tests/test_timer.py . [ 94%]
astropy/utils/tests/test_xml.py .........s [ 94%]
astropy/utils/xml/writer.py s [ 94%]
astropy/utils/xml/tests/test_iterparse.py . [ 94%]
astropy/visualization/scripts/tests/test_fits2bitmap.py sssssss [ 94%]
astropy/visualization/tests/test_histogram.py sss [ 94%]
astropy/visualization/tests/test_interval.py ........................... [ 94%]
astropy/visualization/tests/test_lupton_rgb.py .........ss..s. [ 94%]
astropy/visualization/tests/test_norm.py .ssssssssssssssss [ 94%]
astropy/visualization/tests/test_stretch.py ........................................... [ 95%]
........................................................ [ 95%]
astropy/visualization/tests/test_units.py ss [ 95%]
astropy/wcs/tests/test_pickle.py ...... [ 95%]
astropy/wcs/tests/test_profiling.py .................................... [ 96%]
astropy/wcs/tests/test_utils.py ........................................... [ 96%]
astropy/wcs/tests/test_wcs.py ....................................................... [ 97%]
astropy/wcs/tests/test_wcsprm.py ...................................................... [ 97%]
......................................................... [ 98%]
astropy/wcs/tests/extension/test_extension.py . [ 98%]
docs/changelog.rst . [ 98%]
docs/credits.rst . [ 98%]
docs/getting_started.rst . [ 98%]
docs/importing_astropy.rst . [ 98%]
docs/index.rst . [ 98%]
docs/install.rst . [ 98%]
docs/known_issues.rst . [ 98%]
docs/license.rst . [ 98%]
docs/logging.rst . [ 98%]
docs/overview.rst . [ 98%]
docs/stability.rst . [ 98%]
docs/testhelpers.rst . [ 98%]
docs/warnings.rst . [ 98%]
docs/config/config_0_4_transition.rst . [ 98%]
docs/config/index.rst . [ 98%]
docs/constants/index.rst . [ 98%]
docs/convolution/index.rst . [ 98%]
docs/convolution/kernels.rst . [ 98%]
docs/convolution/non_normalized_kernels.rst . [ 98%]
docs/convolution/using.rst . [ 98%]
docs/coordinates/angles.rst . [ 98%]
docs/coordinates/definitions.rst . [ 98%]
docs/coordinates/formatting.rst . [ 98%]
docs/coordinates/frames.rst . [ 98%]
docs/coordinates/galactocentric.rst . [ 98%]
docs/coordinates/index.rst . [ 98%]
docs/coordinates/inplace.rst . [ 98%]
docs/coordinates/matchsep.rst . [ 98%]
docs/coordinates/remote_methods.rst . [ 98%]
docs/coordinates/representations.rst . [ 98%]
docs/coordinates/skycoord.rst . [ 98%]
docs/coordinates/solarsystem.rst . [ 98%]
docs/coordinates/transforming.rst . [ 98%]
docs/coordinates/velocities.rst . [ 98%]
docs/cosmology/index.rst . [ 98%]
docs/development/astropy-package-template.rst . [ 98%]
docs/development/building.rst . [ 98%]
docs/development/ccython.rst . [ 98%]
docs/development/codeguide.rst . [ 98%]
docs/development/codeguide_emacs.rst . [ 98%]
docs/development/docguide.rst . [ 98%]
docs/development/docrules.rst . [ 98%]
docs/development/releasing.rst . [ 98%]
docs/development/scripts.rst . [ 98%]
docs/development/testguide.rst . [ 98%]
docs/development/vision.rst . [ 98%]
docs/development/workflow/additional_git_topics.rst . [ 98%]
docs/development/workflow/command_history.rst . [ 98%]
docs/development/workflow/development_workflow.rst . [ 98%]
docs/development/workflow/get_devel_version.rst . [ 98%]
docs/development/workflow/git_edit_workflow_examples.rst . [ 98%]
docs/development/workflow/git_install.rst . [ 98%]
docs/development/workflow/git_resources.rst . [ 98%]
docs/development/workflow/maintainer_workflow.rst . [ 98%]
docs/development/workflow/patches.rst . [ 98%]
docs/development/workflow/terminal_cast.rst . [ 98%]
docs/development/workflow/virtual_pythons.rst . [ 98%]
docs/development/workflow/virtualenv_detail.rst . [ 98%]
docs/io/misc.rst . [ 98%]
docs/io/registry.rst . [ 98%]
docs/io/unified.rst . [ 98%]
docs/io/ascii/base_classes.rst . [ 99%]
docs/io/ascii/extension_classes.rst . [ 99%]
docs/io/ascii/fast_ascii_io.rst . [ 99%]
docs/io/ascii/fixed_width_gallery.rst . [ 99%]
docs/io/ascii/index.rst . [ 99%]
docs/io/ascii/read.rst . [ 99%]
docs/io/ascii/write.rst F [ 99%]
docs/io/fits/index.rst . [ 99%]
docs/io/fits/appendix/faq.rst . [ 99%]
docs/io/fits/appendix/header_transition.rst . [ 99%]
docs/io/fits/appendix/history.rst . [ 99%]
docs/io/fits/usage/headers.rst . [ 99%]
docs/io/fits/usage/image.rst . [ 99%]
docs/io/fits/usage/misc.rst . [ 99%]
docs/io/fits/usage/scripts.rst . [ 99%]
docs/io/fits/usage/table.rst . [ 99%]
docs/io/fits/usage/unfamiliar.rst . [ 99%]
docs/io/fits/usage/verification.rst . [ 99%]
docs/io/votable/api_exceptions.rst . [ 99%]
docs/io/votable/index.rst . [ 99%]
docs/modeling/algorithms.rst . [ 99%]
docs/modeling/bounding-boxes.rst . [ 99%]
docs/modeling/compound-models.rst . [ 99%]
docs/modeling/fitting.rst . [ 99%]
docs/modeling/index.rst . [ 99%]
docs/modeling/models.rst . [ 99%]
docs/modeling/new.rst . [ 99%]
docs/modeling/parameters.rst . [ 99%]
docs/modeling/units.rst . [ 99%]
docs/nddata/ccddata.rst . [ 99%]
docs/nddata/decorator.rst . [ 99%]
docs/nddata/index.rst . [ 99%]
docs/nddata/nddata.rst . [ 99%]
docs/nddata/subclassing.rst . [ 99%]
docs/nddata/utils.rst . [ 99%]
docs/nddata/mixins/index.rst . [ 99%]
docs/nddata/mixins/ndarithmetic.rst . [ 99%]
docs/nddata/mixins/ndio.rst . [ 99%]
docs/nddata/mixins/ndslicing.rst . [ 99%]
docs/samp/advanced_embed_samp_hub.rst . [ 99%]
docs/samp/example_clients.rst . [ 99%]
docs/samp/example_hub.rst . [ 99%]
docs/samp/example_table_image.rst . [ 99%]
docs/samp/index.rst . [ 99%]
docs/stats/circ.rst . [ 99%]
docs/stats/index.rst . [ 99%]
docs/stats/lombscargle.rst . [ 99%]
docs/stats/ripley.rst . [ 99%]
docs/stats/robust.rst . [ 99%]
docs/table/access_table.rst . [ 99%]
docs/table/construct_table.rst . [ 99%]
docs/table/implementation_details.rst . [ 99%]
docs/table/index.rst . [ 99%]
docs/table/indexing.rst . [ 99%]
docs/table/io.rst . [ 99%]
docs/table/masking.rst . [ 99%]
docs/table/mixin_columns.rst . [ 99%]
docs/table/modify_table.rst . [ 99%]
docs/table/operations.rst . [ 99%]
docs/table/pandas.rst . [ 99%]
docs/time/index.rst . [ 99%]
docs/units/combining_and_defining.rst . [ 99%]
docs/units/conversion.rst . [ 99%]
docs/units/decomposing_and_composing.rst . [ 99%]
docs/units/equivalencies.rst . [ 99%]
docs/units/format.rst . [ 99%]
docs/units/index.rst . [ 99%]
docs/units/logarithmic_units.rst . [ 99%]
docs/units/quantity.rst . [ 99%]
docs/units/standard_units.rst . [ 99%]
docs/utils/iers.rst . [ 99%]
docs/utils/index.rst . [ 99%]
docs/utils/numpy.rst . [ 99%]
docs/visualization/histogram.rst . [ 99%]
docs/visualization/index.rst . [ 99%]
docs/visualization/lupton_rgb.rst . [ 99%]
docs/visualization/normalization.rst . [ 99%]
docs/visualization/wcsaxes/controlling_axes.rst . [ 99%]
docs/visualization/wcsaxes/custom_frames.rst . [ 99%]
docs/visualization/wcsaxes/images_contours.rst . [ 99%]
docs/visualization/wcsaxes/index.rst . [ 99%]
docs/visualization/wcsaxes/initializing_axes.rst . [ 99%]
docs/visualization/wcsaxes/overlaying_coordinate_systems.rst . [ 99%]
docs/visualization/wcsaxes/overlays.rst . [ 99%]
docs/visualization/wcsaxes/slicing_datacubes.rst . [ 99%]
docs/visualization/wcsaxes/ticks_labels_grid.rst . [ 99%]
docs/wcs/history.rst . [ 99%]
docs/wcs/index.rst . [ 99%]
docs/wcs/note_sip.rst . [ 99%]
docs/wcs/references.rst . [ 99%]
docs/wcs/relax.rst . [ 99%]
docs/whatsnew/0.1.rst . [ 99%]
docs/whatsnew/0.2.rst . [ 99%]
docs/whatsnew/0.3.rst . [ 99%]
docs/whatsnew/0.4.rst . [ 99%]
docs/whatsnew/1.0.rst . [ 99%]
docs/whatsnew/1.1.rst . [ 99%]
docs/whatsnew/1.2.rst . [ 99%]
docs/whatsnew/1.3.rst . [ 99%]
docs/whatsnew/2.0.rst . [ 99%]
docs/whatsnew/3.0.rst . [ 99%]
docs/whatsnew/index.rst . [100%]
========================================== FAILURES ===========================================
___________________________________ test_configitem_options ___________________________________
tmpdir = local('/tmp/simon/pytest-of-simon/pytest-1/test_configitem_options0')
def test_configitem_options(tmpdir):
from ..configuration import ConfigNamespace, ConfigItem, get_config
cio = ConfigItem(['op1', 'op2', 'op3'])
class Conf(ConfigNamespace):
tstnmo = cio
conf = Conf()
sec = get_config(cio.module)
assert isinstance(cio(), str)
assert cio() == 'op1'
assert sec['tstnmo'] == 'op1'
cio.set('op2')
with pytest.raises(TypeError):
cio.set('op5')
assert sec['tstnmo'] == 'op2'
# now try saving
apycfg = sec
while apycfg.parent is not apycfg:
apycfg = apycfg.parent
f = tmpdir.join('astropy.cfg')
with io.open(f.strpath, 'wb') as fd:
apycfg.write(fd)
> with io.open(f.strpath, 'rU', encoding='utf-8') as fd:
E DeprecationWarning: 'U' mode is deprecated
astropy/config/tests/test_configs.py:177: DeprecationWarning
_______________________________________ test_write_csv ________________________________________
tmpdir = local('/tmp/simon/pytest-of-simon/pytest-1/test_write_csv0')
def test_write_csv(tmpdir):
'''If properly registered, filename should be sufficient to specify format
#3189
'''
t = Table()
t.add_column(Column(name='a', data=[1, 2, 3]))
t.add_column(Column(name='b', data=['a', 'b', 'c']))
path = str(tmpdir.join("data.csv"))
> t.write(path)
astropy/io/ascii/tests/test_connect.py:150:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
astropy/table/table.py:2536: in write
io_registry.write(self, *args, **kwargs)
astropy/io/registry.py:564: in write
writer(data, *args, **kwargs)
astropy/io/ascii/connect.py:86: in write_csv
return write(table, filename, **kwargs)
astropy/io/ascii/ui.py:880: in write
writer.write(table, output)
astropy/io/ascii/fastbasic.py:194: in write
self._write(table, output, {'fill_values': [(core.masked, '')]})
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <astropy.io.ascii.fastbasic.FastCsv object at 0x7f7b687a1208>
table = <Table length=3>
a b
int64 str1
----- ----
1 a
2 b
3 c
output = '/tmp/simon/pytest-of-simon/pytest-1/test_write_csv0/data.csv'
default_kwargs = {'fill_values': [(<astropy.io.ascii.core.MaskedConstant object at 0x7f7b742c0d68>, '')]}
header_output = True, output_types = False
def _write(self, table, output, default_kwargs,
header_output=True, output_types=False):
write_kwargs = {'delimiter': self.delimiter,
'quotechar': self.quotechar,
'strip_whitespace': self.strip_whitespace_fields,
'comment': self.write_comment
}
write_kwargs.update(default_kwargs)
# user kwargs take precedence over default kwargs
write_kwargs.update(self.kwargs)
> writer = cparser.FastWriter(table, **write_kwargs)
E SystemError: <class 'astropy.io.ascii.cparser.FastWriter'> returned NULL without setting an error
astropy/io/ascii/fastbasic.py:170: SystemError
_______________________________ test_read_chunks_formats[True] ________________________________
masked = True
@pytest.mark.parametrize('masked', [True, False])
def test_read_chunks_formats(masked):
"""
Test different supported formats for chunked reading.
"""
t1 = simple_table(size=102, cols=10, kinds='fS', masked=masked)
for i, name in enumerate(t1.colnames):
t1.rename_column(name, 'col{}'.format(i + 1))
# TO DO commented_header does not currently work due to the special-cased
# implementation of header parsing.
for format in 'tab', 'csv', 'no_header', 'rdb', 'basic':
out = StringIO()
> ascii.write(t1, out, format=format)
test_read.py:1343:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../ui.py:880: in write
writer.write(table, output)
../fastbasic.py:194: in write
self._write(table, output, {'fill_values': [(core.masked, '')]})
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <astropy.io.ascii.fastbasic.FastCsv object at 0x7f7b69b3e0b8>
table = <Table masked=True length=102>
col1 col2 col3 col4 col5 col6 col7 col8 col9 col10
float64 str1 float64 ... -- Z 104.0 -- 106.0 d -- f
101.0 -- 103.0 a -- c 107.0 -- 109.0 g
output = <_io.StringIO object at 0x7f7b6c4b4828>
default_kwargs = {'fill_values': [(<astropy.io.ascii.core.MaskedConstant object at 0x7f7b742c0d68>, '')]}
header_output = True, output_types = False
def _write(self, table, output, default_kwargs,
header_output=True, output_types=False):
write_kwargs = {'delimiter': self.delimiter,
'quotechar': self.quotechar,
'strip_whitespace': self.strip_whitespace_fields,
'comment': self.write_comment
}
write_kwargs.update(default_kwargs)
# user kwargs take precedence over default kwargs
write_kwargs.update(self.kwargs)
> writer = cparser.FastWriter(table, **write_kwargs)
E SystemError: <class 'astropy.io.ascii.cparser.FastWriter'> returned NULL without setting an error
../fastbasic.py:170: SystemError
_______________________________ test_read_chunks_formats[False] _______________________________
masked = False
@pytest.mark.parametrize('masked', [True, False])
def test_read_chunks_formats(masked):
"""
Test different supported formats for chunked reading.
"""
t1 = simple_table(size=102, cols=10, kinds='fS', masked=masked)
for i, name in enumerate(t1.colnames):
t1.rename_column(name, 'col{}'.format(i + 1))
# TO DO commented_header does not currently work due to the special-cased
# implementation of header parsing.
for format in 'tab', 'csv', 'no_header', 'rdb', 'basic':
out = StringIO()
> ascii.write(t1, out, format=format)
test_read.py:1343:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../ui.py:880: in write
writer.write(table, output)
../fastbasic.py:194: in write
self._write(table, output, {'fill_values': [(core.masked, '')]})
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <astropy.io.ascii.fastbasic.FastCsv object at 0x7f7b71ac42e8>
table = <Table length=102>
col1 col2 col3 col4 col5 col6 col7 col8 col9 col10
float64 str1 float64 str1 float64... 102.0 Z 104.0 b 106.0 d 108.0 f
101.0 Y 103.0 a 105.0 c 107.0 e 109.0 g
output = <_io.StringIO object at 0x7f7b6c4b4dc8>
default_kwargs = {'fill_values': [(<astropy.io.ascii.core.MaskedConstant object at 0x7f7b742c0d68>, '')]}
header_output = True, output_types = False
def _write(self, table, output, default_kwargs,
header_output=True, output_types=False):
write_kwargs = {'delimiter': self.delimiter,
'quotechar': self.quotechar,
'strip_whitespace': self.strip_whitespace_fields,
'comment': self.write_comment
}
write_kwargs.update(default_kwargs)
# user kwargs take precedence over default kwargs
write_kwargs.update(self.kwargs)
> writer = cparser.FastWriter(table, **write_kwargs)
E SystemError: <class 'astropy.io.ascii.cparser.FastWriter'> returned NULL without setting an error
../fastbasic.py:170: SystemError
___________________________________ test_write_table[True] ____________________________________
fast_writer = True
@pytest.mark.parametrize("fast_writer", [True, False])
def test_write_table(fast_writer):
table = ascii.get_reader(Reader=ascii.Daophot)
data = table.read('t/daophot.dat')
for test_def in test_defs:
> check_write_table(test_def, data, fast_writer)
test_write.py:439:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test_write.py:400: in check_write_table
ascii.write(table, out, fast_writer=fast_writer, **test_def['kwargs'])
../ui.py:880: in write
writer.write(table, output)
../fastbasic.py:194: in write
self._write(table, output, {'fill_values': [(core.masked, '')]})
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <astropy.io.ascii.fastbasic.FastCsv object at 0x7f7b6cedd908>
table = <Table length=2>
ID XCENTER YCENTER MAG ... CHI PIER PERROR
pixels..... 0.802 0 No_error
18 18.114 280.170 22.329 ... 1.104 0 No_error
output = <_io.StringIO object at 0x7f7b6c7e1d38>
default_kwargs = {'fill_values': [(<astropy.io.ascii.core.MaskedConstant object at 0x7f7b742c0d68>, '')]}
header_output = True, output_types = False
def _write(self, table, output, default_kwargs,
header_output=True, output_types=False):
write_kwargs = {'delimiter': self.delimiter,
'quotechar': self.quotechar,
'strip_whitespace': self.strip_whitespace_fields,
'comment': self.write_comment
}
write_kwargs.update(default_kwargs)
# user kwargs take precedence over default kwargs
write_kwargs.update(self.kwargs)
> writer = cparser.FastWriter(table, **write_kwargs)
E SystemError: <class 'astropy.io.ascii.cparser.FastWriter'> returned NULL without setting an error
../fastbasic.py:170: SystemError
------------------------------------ Captured stdout call -------------------------------------
Expected:
ID XCENTER YCENTER MAG MERR MSKY NITER SHARPNESS CHI PIER PERROR
14 138.538 256.405 15.461 0.003 34.85955 4 -0.032 0.802 0 No_error
18 18.114 280.170 22.329 0.206 30.12784 4 -2.544 1.104 0 No_error
Actual:
ID XCENTER YCENTER MAG MERR MSKY NITER SHARPNESS CHI PIER PERROR
14 138.538 256.405 15.461 0.003 34.85955 4 -0.032 0.802 0 No_error
18 18.114 280.170 22.329 0.206 30.12784 4 -2.544 1.104 0 No_error
Expected:
ID XCENTER YCENTER MAG MERR MSKY NITER SHARPNESS CHI PIER PERROR
14 138.538 256.405 15.461 0.003 34.85955 4 -0.032 0.802 0 No_error
18 18.114 280.170 22.329 0.206 30.12784 4 -2.544 1.104 0 No_error
Actual:
ID XCENTER YCENTER MAG MERR MSKY NITER SHARPNESS CHI PIER PERROR
14 138.538 256.405 15.461 0.003 34.85955 4 -0.032 0.802 0 No_error
18 18.114 280.170 22.329 0.206 30.12784 4 -2.544 1.104 0 No_error
Expected:
ID XCENTER YCENTER MAG MERR MSKY NITER SHARPNESS CHI PIER PERROR
14 138.538 256.405 15.461 0.003 34.85955 4 -0.032 0.802 0 No_error
18 18.114 280.170 22.329 0.206 30.12784 4 -2.544 1.104 0 No_error
Actual:
ID XCENTER YCENTER MAG MERR MSKY NITER SHARPNESS CHI PIER PERROR
14 138.538 256.405 15.461 0.003 34.85955 4 -0.032 0.802 0 No_error
18 18.114 280.170 22.329 0.206 30.12784 4 -2.544 1.104 0 No_error
Expected:
ID XCENTER YCENTER MAG MERR MSKY NITER SHARPNESS CHI PIER PERROR
14 138.538 256.405 15.461 0.003 34.85955 4 -0.032 0.802 0 No_error
18 18.114 280.170 22.329 0.206 30.12784 4 -2.544 1.104 0 No_error
Actual:
ID XCENTER YCENTER MAG MERR MSKY NITER SHARPNESS CHI PIER PERROR
14 138.538 256.405 15.461 0.003 34.85955 4 -0.032 0.802 0 No_error
18 18.114 280.170 22.329 0.206 30.12784 4 -2.544 1.104 0 No_error
Expected:
XCENTER YCENTER
" 138.5" 256.4
" 18.1" 280.2
Actual:
XCENTER YCENTER
" 138.5" 256.4
" 18.1" 280.2
Expected:
XCENTER YCENTER
" 138.5" 256.4
" 18.1" 280.2
Actual:
XCENTER YCENTER
" 138.5" 256.4
" 18.1" 280.2
Expected:
ID XCENTER YCENTER MAG MERR MSKY NITER SHARPNESS PIER PERROR
N N N N N N N N N S
14 138.538 256.405 15.461 0.003 34.85955 4 -0.032 0 No_error
18 18.114 280.170 22.329 0.206 30.12784 4 -2.544 0 No_error
Actual:
ID XCENTER YCENTER MAG MERR MSKY NITER SHARPNESS PIER PERROR
N N N N N N N N N S
14 138.538 256.405 15.461 0.003 34.85955 4 -0.032 0 No_error
18 18.114 280.170 22.329 0.206 30.12784 4 -2.544 0 No_error
Expected:
ID XCENTER YCENTER MAG MERR MSKY NITER SHARPNESS PIER PERROR
N N N N N N N N N S
14 138.538 256.405 15.461 0.003 34.85955 4 -0.032 0 No_error
18 18.114 280.170 22.329 0.206 30.12784 4 -2.544 0 No_error
Actual:
ID XCENTER YCENTER MAG MERR MSKY NITER SHARPNESS PIER PERROR
N N N N N N N N N S
14 138.538 256.405 15.461 0.003 34.85955 4 -0.032 0 No_error
18 18.114 280.170 22.329 0.206 30.12784 4 -2.544 0 No_error
Expected:
ID XCENTER YCENTER MAG MERR MSKY NITER SHARPNESS CHI PIER PERROR
14 138.538 256.405 15.461 0.003 34.85955 4 -0.032 0.802 0 No_error
18 18.114 280.170 22.329 0.206 30.12784 4 -2.544 1.104 0 No_error
Actual:
ID XCENTER YCENTER MAG MERR MSKY NITER SHARPNESS CHI PIER PERROR
14 138.538 256.405 15.461 0.003 34.85955 4 -0.032 0.802 0 No_error
18 18.114 280.170 22.329 0.206 30.12784 4 -2.544 1.104 0 No_error
Expected:
ID XCENTER YCENTER MAG MERR MSKY NITER SHARPNESS CHI PIER PERROR
14 138.538 256.405 15.461 0.003 34.85955 4 -0.032 0.802 0 No_error
18 18.114 280.170 22.329 0.206 30.12784 4 -2.544 1.104 0 No_error
Actual:
ID XCENTER YCENTER MAG MERR MSKY NITER SHARPNESS CHI PIER PERROR
14 138.538 256.405 15.461 0.003 34.85955 4 -0.032 0.802 0 No_error
18 18.114 280.170 22.329 0.206 30.12784 4 -2.544 1.104 0 No_error
___________________________ test_write_fill_masked_different[True] ____________________________
fast_writer = True
@pytest.mark.parametrize("fast_writer", [True, False])
def test_write_fill_masked_different(fast_writer):
'''see discussion in #2255'''
data = ascii.read(tab_to_fill)
data = table.Table(data, masked=True)
data['a'].mask = [True, False]
data['c'].mask = [False, True]
for test_def in test_def_masked_fill_value:
> check_write_table(test_def, data, fast_writer)
test_write.py:460:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test_write.py:400: in check_write_table
ascii.write(table, out, fast_writer=fast_writer, **test_def['kwargs'])
../ui.py:880: in write
writer.write(table, output)
../fastbasic.py:157: in write
self._write(table, output, {})
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <astropy.io.ascii.fastbasic.FastBasic object at 0x7f7b69c5c630>
table = <Table masked=True length=2>
a b c
int64 int64 int64
----- ----- -----
-- 2 3
1 1 --
output = <_io.StringIO object at 0x7f7b720a80d8>, default_kwargs = {}, header_output = True
output_types = False
def _write(self, table, output, default_kwargs,
header_output=True, output_types=False):
write_kwargs = {'delimiter': self.delimiter,
'quotechar': self.quotechar,
'strip_whitespace': self.strip_whitespace_fields,
'comment': self.write_comment
}
write_kwargs.update(default_kwargs)
# user kwargs take precedence over default kwargs
write_kwargs.update(self.kwargs)
> writer = cparser.FastWriter(table, **write_kwargs)
E SystemError: <class 'astropy.io.ascii.cparser.FastWriter'> returned NULL without setting an error
../fastbasic.py:170: SystemError
------------------------------------ Captured stdout call -------------------------------------
Expected:
a b c
"" 2 3
1 1 ""
Actual:
a b c
"" 2 3
1 1 ""
___________________________________ test_strip_names[True] ____________________________________
fast_writer = True
@pytest.mark.parametrize("fast_writer", [True, False])
def test_strip_names(fast_writer):
"""Names should be stripped of whitespace by default."""
data = table.Table([[1], [2], [3]], names=(' A', 'B ', ' C '))
out = StringIO()
> ascii.write(data, out, format='csv', fast_writer=fast_writer)
test_write.py:557:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../ui.py:880: in write
writer.write(table, output)
../fastbasic.py:194: in write
self._write(table, output, {'fill_values': [(core.masked, '')]})
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <astropy.io.ascii.fastbasic.FastCsv object at 0x7f7b6859ef98>
table = <Table length=1>
A B C
int64 int64 int64
----- ----- -----
1 2 3
output = <_io.StringIO object at 0x7f7b6df1aaf8>
default_kwargs = {'fill_values': [(<astropy.io.ascii.core.MaskedConstant object at 0x7f7b742c0d68>, '')]}
header_output = True, output_types = False
def _write(self, table, output, default_kwargs,
header_output=True, output_types=False):
write_kwargs = {'delimiter': self.delimiter,
'quotechar': self.quotechar,
'strip_whitespace': self.strip_whitespace_fields,
'comment': self.write_comment
}
write_kwargs.update(default_kwargs)
# user kwargs take precedence over default kwargs
write_kwargs.update(self.kwargs)
> writer = cparser.FastWriter(table, **write_kwargs)
E SystemError: <class 'astropy.io.ascii.cparser.FastWriter'> returned NULL without setting an error
../fastbasic.py:170: SystemError
____________________________ test_write_overwrite_ascii[True-csv] _____________________________
format = 'csv', fast_writer = True
tmpdir = local('/tmp/simon/pytest-of-simon/pytest-1/test_write_overwrite_ascii_Tru1')
@pytest.mark.parametrize("format", ['ascii', 'csv', 'html', 'latex',
'ascii.fixed_width', 'html'])
@pytest.mark.parametrize("fast_writer", [True, False])
def test_write_overwrite_ascii(format, fast_writer, tmpdir):
"""Test overwrite argument for various ASCII writers"""
filename = tmpdir.join("table-tmp.dat").strpath
open(filename, 'w').close()
t = table.Table([['Hello', ''], ['', '']], dtype=['S10', 'S10'])
with pytest.raises(OSError) as err:
t.write(filename, overwrite=False, format=format,
fast_writer=fast_writer)
assert str(err.value).endswith('already exists')
with catch_warnings(AstropyDeprecationWarning) as warning:
> t.write(filename, format=format, fast_writer=fast_writer)
test_write.py:685:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../../../table/table.py:2536: in write
io_registry.write(self, *args, **kwargs)
../../registry.py:564: in write
writer(data, *args, **kwargs)
../connect.py:86: in write_csv
return write(table, filename, **kwargs)
../ui.py:880: in write
writer.write(table, output)
../fastbasic.py:194: in write
self._write(table, output, {'fill_values': [(core.masked, '')]})
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <astropy.io.ascii.fastbasic.FastCsv object at 0x7f7b6b1219e8>
table = <Table length=2>
col0 col1
bytes10 bytes10
------- -------
Hello
output = '/tmp/simon/pytest-of-simon/pytest-1/test_write_overwrite_ascii_Tru1/table-tmp.dat'
default_kwargs = {'fill_values': [(<astropy.io.ascii.core.MaskedConstant object at 0x7f7b742c0d68>, '')]}
header_output = True, output_types = False
def _write(self, table, output, default_kwargs,
header_output=True, output_types=False):
write_kwargs = {'delimiter': self.delimiter,
'quotechar': self.quotechar,
'strip_whitespace': self.strip_whitespace_fields,
'comment': self.write_comment
}
write_kwargs.update(default_kwargs)
# user kwargs take precedence over default kwargs
write_kwargs.update(self.kwargs)
> writer = cparser.FastWriter(table, **write_kwargs)
E SystemError: <class 'astropy.io.ascii.cparser.FastWriter'> returned NULL without setting an error
../fastbasic.py:170: SystemError
___________________________ test_roundtrip_masked[fmt_name_class1] ____________________________
fmt_name_class = ('fast_csv', <class 'astropy.io.ascii.fastbasic.FastCsv'>)
@pytest.mark.parametrize("fmt_name_class", fmt_name_classes)
def test_roundtrip_masked(fmt_name_class):
"""
Round trip a simple masked table through every writable format and confirm
that reading back gives the same result.
"""
fmt_name, fmt_cls = fmt_name_class
if not getattr(fmt_cls, '_io_registry_can_write', True):
return
# Skip tests for fixed_width or HTML without bs4
if ((fmt_name == 'html' and not HAS_BEAUTIFUL_SOUP)
or fmt_name == 'fixed_width'):
return
t = simple_table(masked=True)
out = StringIO()
fast = fmt_name in ascii.core.FAST_CLASSES
try:
> ascii.write(t, out, format=fmt_name, fast_writer=fast)
test_write.py:729:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../ui.py:880: in write
writer.write(table, output)
../fastbasic.py:194: in write
self._write(table, output, {'fill_values': [(core.masked, '')]})
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <astropy.io.ascii.fastbasic.FastCsv object at 0x7f7b686ccbe0>
table = <Table masked=True length=3>
a b c
int64 float64 str1
----- ------- ----
-- 1.0 c
2 2.0 --
3 -- e
output = <_io.StringIO object at 0x7f7b6c43f3a8>
default_kwargs = {'fill_values': [(<astropy.io.ascii.core.MaskedConstant object at 0x7f7b742c0d68>, '')]}
header_output = True, output_types = False
def _write(self, table, output, default_kwargs,
header_output=True, output_types=False):
write_kwargs = {'delimiter': self.delimiter,
'quotechar': self.quotechar,
'strip_whitespace': self.strip_whitespace_fields,
'comment': self.write_comment
}
write_kwargs.update(default_kwargs)
# user kwargs take precedence over default kwargs
write_kwargs.update(self.kwargs)
> writer = cparser.FastWriter(table, **write_kwargs)
E SystemError: <class 'astropy.io.ascii.cparser.FastWriter'> returned NULL without setting an error
../fastbasic.py:170: SystemError
___________________________ test_roundtrip_masked[fmt_name_class13] ___________________________
fmt_name_class = ('fast_csv', <class 'astropy.io.ascii.fastbasic.FastCsv'>)
@pytest.mark.parametrize("fmt_name_class", fmt_name_classes)
def test_roundtrip_masked(fmt_name_class):
"""
Round trip a simple masked table through every writable format and confirm
that reading back gives the same result.
"""
fmt_name, fmt_cls = fmt_name_class
if not getattr(fmt_cls, '_io_registry_can_write', True):
return
# Skip tests for fixed_width or HTML without bs4
if ((fmt_name == 'html' and not HAS_BEAUTIFUL_SOUP)
or fmt_name == 'fixed_width'):
return
t = simple_table(masked=True)
out = StringIO()
fast = fmt_name in ascii.core.FAST_CLASSES
try:
> ascii.write(t, out, format=fmt_name, fast_writer=fast)
test_write.py:729:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../ui.py:880: in write
writer.write(table, output)
../fastbasic.py:194: in write
self._write(table, output, {'fill_values': [(core.masked, '')]})
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <astropy.io.ascii.fastbasic.FastCsv object at 0x7f7b6b11a208>
table = <Table masked=True length=3>
a b c
int64 float64 str1
----- ------- ----
-- 1.0 c
2 2.0 --
3 -- e
output = <_io.StringIO object at 0x7f7b6c94e558>
default_kwargs = {'fill_values': [(<astropy.io.ascii.core.MaskedConstant object at 0x7f7b742c0d68>, '')]}
header_output = True, output_types = False
def _write(self, table, output, default_kwargs,
header_output=True, output_types=False):
write_kwargs = {'delimiter': self.delimiter,
'quotechar': self.quotechar,
'strip_whitespace': self.strip_whitespace_fields,
'comment': self.write_comment
}
write_kwargs.update(default_kwargs)
# user kwargs take precedence over default kwargs
write_kwargs.update(self.kwargs)
> writer = cparser.FastWriter(table, **write_kwargs)
E SystemError: <class 'astropy.io.ascii.cparser.FastWriter'> returned NULL without setting an error
../fastbasic.py:170: SystemError
______________________________ [doctest] docs/io/ascii/write.rst ______________________________
220 >>> import sys
221 >>> from astropy.table import Table, Column, MaskedColumn
222 >>> from astropy.io import ascii
223 >>> t = Table([(1, 2), (3, 4)], names=('a', 'b'), masked=True)
224 >>> t['a'].mask = [True, False]
225 >>> ascii.write(t, sys.stdout)
226 a b
227 "" 3
228 2 4
229 >>> ascii.write(t, sys.stdout, fill_values=[(ascii.masked, 'N/A')])
UNEXPECTED EXCEPTION: SystemError("<class 'astropy.io.ascii.cparser.FastWriter'> returned NULL without setting an error")
Traceback (most recent call last):
File "/home/simon/.pyenv/versions/3.7.0a3/lib/python3.7/doctest.py", line 1329, in __run
compileflags, 1), test.globs)
File "<doctest write.rst[29]>", line 1, in <module>
File "/tmp/simon/astropy-test-2_c99s4q/lib/python3.7/site-packages/astropy/io/ascii/ui.py", line 880, in write
writer.write(table, output)
File "/tmp/simon/astropy-test-2_c99s4q/lib/python3.7/site-packages/astropy/io/ascii/fastbasic.py", line 157, in write
self._write(table, output, {})
File "/tmp/simon/astropy-test-2_c99s4q/lib/python3.7/site-packages/astropy/io/ascii/fastbasic.py", line 170, in _write
writer = cparser.FastWriter(table, **write_kwargs)
SystemError: <class 'astropy.io.ascii.cparser.FastWriter'> returned NULL without setting an error
/tmp/simon/astropy-test-2_c99s4q/lib/python3.7/site-packages/docs/io/ascii/write.rst:229: UnexpectedException
============== 11 failed, 9412 passed, 725 skipped, 57 xfailed in 162.92 seconds ==============
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment