Last active
November 24, 2015 23:07
-
-
Save bsipocz/f8a3c2ce2bf7816a8c63 to your computer and use it in GitHub Desktop.
1.1rc1 python3.4 numpy Ubuntu 1.9.2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> astropy.test() | |
======================================================================================================= test session starts ======================================================================================================= | |
platform linux -- Python 3.4.3 -- py-1.4.30 -- pytest-2.7.3 | |
rootdir: /home/gkovacs/.local/lib/python3.4/site-packages/astropy, inifile: | |
Running tests with Astropy version 1.1rc1. | |
Running tests in /home/gkovacs/.local/lib/python3.4/site-packages/astropy. | |
Date: 2015-11-24T22:18:32 | |
Platform: Linux-3.16.0-53-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.8.2 | |
Scipy: not available | |
Matplotlib: 1.3.1 | |
h5py: not available | |
collected 7324 items | |
.local/lib/python3.4/site-packages/astropy/_erfa/tests/test_erfa.py ..... | |
.local/lib/python3.4/site-packages/astropy/analytic_functions/tests/test_blackbody.py s.... | |
.local/lib/python3.4/site-packages/astropy/config/tests/test_configs.py ................. | |
.local/lib/python3.4/site-packages/astropy/constants/tests/test_constant.py ........ | |
.local/lib/python3.4/site-packages/astropy/constants/tests/test_pickle.py xxxxxxxxx | |
.local/lib/python3.4/site-packages/astropy/convolution/tests/test_convolve.py ............................................................................................................... | |
.local/lib/python3.4/site-packages/astropy/convolution/tests/test_convolve_fft.py ................................................................................................................................................................................................................................................................................................................................................... | |
.local/lib/python3.4/site-packages/astropy/convolution/tests/test_convolve_kernels.py .............................................................................. | |
.local/lib/python3.4/site-packages/astropy/convolution/tests/test_discretize.py ...s...........s........ss..... | |
.local/lib/python3.4/site-packages/astropy/convolution/tests/test_kernel_class.py ssssssss................................ssss....................................ssss................................................................................ssss................ | |
.local/lib/python3.4/site-packages/astropy/convolution/tests/test_pickle.py .xx.xx.xx | |
.local/lib/python3.4/site-packages/astropy/coordinates/tests/test_angles.py ........................................ | |
.local/lib/python3.4/site-packages/astropy/coordinates/tests/test_angular_separation.py .... | |
.local/lib/python3.4/site-packages/astropy/coordinates/tests/test_api_ape5.py ....s | |
.local/lib/python3.4/site-packages/astropy/coordinates/tests/test_arrays.py ............. | |
.local/lib/python3.4/site-packages/astropy/coordinates/tests/test_celestial_transformations.py .......... | |
.local/lib/python3.4/site-packages/astropy/coordinates/tests/test_distance.py .s....... | |
.local/lib/python3.4/site-packages/astropy/coordinates/tests/test_earth.py ............. | |
.local/lib/python3.4/site-packages/astropy/coordinates/tests/test_formatting.py .......... | |
.local/lib/python3.4/site-packages/astropy/coordinates/tests/test_frames.py ........................ | |
.local/lib/python3.4/site-packages/astropy/coordinates/tests/test_funcs.py ... | |
.local/lib/python3.4/site-packages/astropy/coordinates/tests/test_iau_fullstack.py .................................................... | |
.local/lib/python3.4/site-packages/astropy/coordinates/tests/test_intermediate_transformations.py ................................................... | |
.local/lib/python3.4/site-packages/astropy/coordinates/tests/test_matching.py ssssss | |
.local/lib/python3.4/site-packages/astropy/coordinates/tests/test_name_resolve.py sss | |
.local/lib/python3.4/site-packages/astropy/coordinates/tests/test_pickle.py ...xxx.x..xxx.x..xxx.x. | |
.local/lib/python3.4/site-packages/astropy/coordinates/tests/test_regression.py ....s.. | |
.local/lib/python3.4/site-packages/astropy/coordinates/tests/test_representation.py ............................................................................. | |
.local/lib/python3.4/site-packages/astropy/coordinates/tests/test_sites.py .ss.s.. | |
.local/lib/python3.4/site-packages/astropy/coordinates/tests/test_sky_coord.py ........................................................................................................................................................................................................................................................................................................................................................................................x.......s.......s. | |
.local/lib/python3.4/site-packages/astropy/coordinates/tests/test_transformations.py ...... | |
.local/lib/python3.4/site-packages/astropy/coordinates/tests/test_unit_representation.py . | |
.local/lib/python3.4/site-packages/astropy/coordinates/tests/accuracy/test_altaz_icrs.py ...x | |
.local/lib/python3.4/site-packages/astropy/coordinates/tests/accuracy/test_ecliptic.py ... | |
.local/lib/python3.4/site-packages/astropy/coordinates/tests/accuracy/test_fk4_no_e_fk4.py . | |
.local/lib/python3.4/site-packages/astropy/coordinates/tests/accuracy/test_fk4_no_e_fk5.py . | |
.local/lib/python3.4/site-packages/astropy/coordinates/tests/accuracy/test_galactic_fk4.py . | |
.local/lib/python3.4/site-packages/astropy/coordinates/tests/accuracy/test_icrs_fk5.py . | |
.local/lib/python3.4/site-packages/astropy/cosmology/tests/test_cosmology.py ..sss..s.ssssssss.ssssss.ssssssssssss | |
.local/lib/python3.4/site-packages/astropy/cosmology/tests/test_pickle.py ... | |
.local/lib/python3.4/site-packages/astropy/io/ascii/tests/test_c_reader.py ...........................x..................x.......x.x................. | |
.local/lib/python3.4/site-packages/astropy/io/ascii/tests/test_cds_header_from_readme.py ... | |
.local/lib/python3.4/site-packages/astropy/io/ascii/tests/test_compressed.py ....... | |
.local/lib/python3.4/site-packages/astropy/io/ascii/tests/test_connect.py .............ss........ | |
.local/lib/python3.4/site-packages/astropy/io/ascii/tests/test_ecsv.py sssssss | |
.local/lib/python3.4/site-packages/astropy/io/ascii/tests/test_fixedwidth.py ............................... | |
.local/lib/python3.4/site-packages/astropy/io/ascii/tests/test_html.py s.ssssss.ssss..s | |
.local/lib/python3.4/site-packages/astropy/io/ascii/tests/test_ipac_definitions.py .................... | |
.local/lib/python3.4/site-packages/astropy/io/ascii/tests/test_read.py ......................................................................................................... | |
.local/lib/python3.4/site-packages/astropy/io/ascii/tests/test_types.py ... | |
.local/lib/python3.4/site-packages/astropy/io/ascii/tests/test_write.py ............... | |
.local/lib/python3.4/site-packages/astropy/io/fits/tests/test_checksum.py ..................... | |
.local/lib/python3.4/site-packages/astropy/io/fits/tests/test_connect.py .......................... | |
.local/lib/python3.4/site-packages/astropy/io/fits/tests/test_core.py .................................................ss.......... | |
.local/lib/python3.4/site-packages/astropy/io/fits/tests/test_diff.py ................................... | |
.local/lib/python3.4/site-packages/astropy/io/fits/tests/test_division.py ..... | |
.local/lib/python3.4/site-packages/astropy/io/fits/tests/test_groups.py ........ | |
.local/lib/python3.4/site-packages/astropy/io/fits/tests/test_hdulist.py ......................................... | |
.local/lib/python3.4/site-packages/astropy/io/fits/tests/test_header.py ................................................................................................................................................ | |
.local/lib/python3.4/site-packages/astropy/io/fits/tests/test_image.py ...................................................... | |
.local/lib/python3.4/site-packages/astropy/io/fits/tests/test_nonstandard.py ... | |
.local/lib/python3.4/site-packages/astropy/io/fits/tests/test_structured.py . | |
.local/lib/python3.4/site-packages/astropy/io/fits/tests/test_table.py ....................................................................... | |
.local/lib/python3.4/site-packages/astropy/io/fits/tests/test_uint.py ........ | |
.local/lib/python3.4/site-packages/astropy/io/fits/tests/test_util.py . | |
.local/lib/python3.4/site-packages/astropy/io/misc/tests/test_hdf5.py sssssssssssssssssssssssssssssssssssssssss | |
.local/lib/python3.4/site-packages/astropy/io/misc/tests/test_pickle_helpers.py .... | |
.local/lib/python3.4/site-packages/astropy/io/tests/test_registry.py .............................. | |
.local/lib/python3.4/site-packages/astropy/io/votable/tests/converter_test.py ...................... | |
.local/lib/python3.4/site-packages/astropy/io/votable/tests/exception_test.py .. | |
.local/lib/python3.4/site-packages/astropy/io/votable/tests/table_test.py ........ | |
.local/lib/python3.4/site-packages/astropy/io/votable/tests/tree_test.py ... | |
.local/lib/python3.4/site-packages/astropy/io/votable/tests/ucd_test.py ..... | |
.local/lib/python3.4/site-packages/astropy/io/votable/tests/util_test.py ........... | |
.local/lib/python3.4/site-packages/astropy/io/votable/tests/vo_test.py ......................................................................................................................................................................... | |
.local/lib/python3.4/site-packages/astropy/modeling/tests/test_compound.py ....................................................s | |
.local/lib/python3.4/site-packages/astropy/modeling/tests/test_constraints.py ssssssss...........ss | |
.local/lib/python3.4/site-packages/astropy/modeling/tests/test_core.py ............. | |
.local/lib/python3.4/site-packages/astropy/modeling/tests/test_fitters.py ..s..sss...ssssssss | |
.local/lib/python3.4/site-packages/astropy/modeling/tests/test_functional_models.py ..........s | |
.local/lib/python3.4/site-packages/astropy/modeling/tests/test_input.py ...............ssss................................... | |
.local/lib/python3.4/site-packages/astropy/modeling/tests/test_mappings.py ...... | |
.local/lib/python3.4/site-packages/astropy/modeling/tests/test_models.py .........s.......s...............s...........ss.ssss..ssssssssssssssssssssssssssssssssssssssss......s...s......s...s..ss.ss.s.ssssssssssssssssssssss.... | |
.local/lib/python3.4/site-packages/astropy/modeling/tests/test_parameters.py .................................................... | |
.local/lib/python3.4/site-packages/astropy/modeling/tests/test_polynomial.py sssssssssssssssssssssssssssss......... | |
.local/lib/python3.4/site-packages/astropy/modeling/tests/test_projections.py ....................................................................................... | |
.local/lib/python3.4/site-packages/astropy/modeling/tests/test_rotations.py ............. | |
.local/lib/python3.4/site-packages/astropy/modeling/tests/test_utils.py ... | |
.local/lib/python3.4/site-packages/astropy/nddata/mixins/tests/test_ndarithmetic.py ........................................................ | |
.local/lib/python3.4/site-packages/astropy/nddata/mixins/tests/test_ndio.py . | |
.local/lib/python3.4/site-packages/astropy/nddata/tests/test_compat.py ................ | |
.local/lib/python3.4/site-packages/astropy/nddata/tests/test_decorators.py .......... | |
.local/lib/python3.4/site-packages/astropy/nddata/tests/test_flag_collection.py .......... | |
.local/lib/python3.4/site-packages/astropy/nddata/tests/test_nddata.py .................................. | |
.local/lib/python3.4/site-packages/astropy/nddata/tests/test_nddata_base.py . | |
.local/lib/python3.4/site-packages/astropy/nddata/tests/test_utils.py ..........................sssssssssssss.............. | |
.local/lib/python3.4/site-packages/astropy/stats/tests/test_bayesian_blocks.py ....... | |
.local/lib/python3.4/site-packages/astropy/stats/tests/test_funcs.py .....ss.......ssss.s..sssssssssss | |
.local/lib/python3.4/site-packages/astropy/stats/tests/test_histogram.py ..ss..s.. | |
.local/lib/python3.4/site-packages/astropy/stats/tests/test_sigma_clipping.py .s... | |
.local/lib/python3.4/site-packages/astropy/table/tests/test_array.py ... | |
.local/lib/python3.4/site-packages/astropy/table/tests/test_bst.py ....... | |
.local/lib/python3.4/site-packages/astropy/table/tests/test_column.py ................................................................................... | |
.local/lib/python3.4/site-packages/astropy/table/tests/test_groups.py ...................................... | |
.local/lib/python3.4/site-packages/astropy/table/tests/test_index.py ................................................................................................................................................................................................................................................................................................................................................................................................................................................ | |
.local/lib/python3.4/site-packages/astropy/table/tests/test_info.py ............ | |
.local/lib/python3.4/site-packages/astropy/table/tests/test_init_table.py ................................................................................................................................................... | |
.local/lib/python3.4/site-packages/astropy/table/tests/test_item_access.py .............................. | |
.local/lib/python3.4/site-packages/astropy/table/tests/test_jsviewer.py ... | |
.local/lib/python3.4/site-packages/astropy/table/tests/test_masked.py .................................. | |
.local/lib/python3.4/site-packages/astropy/table/tests/test_mixin.py ..............................................................x.... | |
.local/lib/python3.4/site-packages/astropy/table/tests/test_np_utils.py . | |
.local/lib/python3.4/site-packages/astropy/table/tests/test_operations.py ...................................... | |
.local/lib/python3.4/site-packages/astropy/table/tests/test_pickle.py ............... | |
.local/lib/python3.4/site-packages/astropy/table/tests/test_pprint.py ........................................................ | |
.local/lib/python3.4/site-packages/astropy/table/tests/test_row.py .................................. | |
.local/lib/python3.4/site-packages/astropy/table/tests/test_subclass.py .. | |
.local/lib/python3.4/site-packages/astropy/table/tests/test_table.py ................................................................................................................................................................................................................................................................................................x...........................ssss......... | |
.local/lib/python3.4/site-packages/astropy/tests/test_logger.py ............................. | |
.local/lib/python3.4/site-packages/astropy/tests/tests/test_imports.py .. | |
.local/lib/python3.4/site-packages/astropy/tests/tests/test_open_file_detection.py . | |
.local/lib/python3.4/site-packages/astropy/tests/tests/test_quantity_helpers.py . | |
.local/lib/python3.4/site-packages/astropy/tests/tests/test_run_tests.py .... | |
.local/lib/python3.4/site-packages/astropy/tests/tests/test_skip_remote_data.py s | |
.local/lib/python3.4/site-packages/astropy/tests/tests/test_socketblocker.py .... | |
.local/lib/python3.4/site-packages/astropy/time/tests/test_basic.py ....................................................... | |
.local/lib/python3.4/site-packages/astropy/time/tests/test_comparisons.py ... | |
.local/lib/python3.4/site-packages/astropy/time/tests/test_delta.py ................................................................................. | |
.local/lib/python3.4/site-packages/astropy/time/tests/test_guess.py .... | |
.local/lib/python3.4/site-packages/astropy/time/tests/test_methods.py ............................................... | |
.local/lib/python3.4/site-packages/astropy/time/tests/test_pickle.py . | |
.local/lib/python3.4/site-packages/astropy/time/tests/test_precision.py .......x.. | |
.local/lib/python3.4/site-packages/astropy/time/tests/test_quantity_interaction.py ............... | |
.local/lib/python3.4/site-packages/astropy/time/tests/test_sidereal.py ................... | |
.local/lib/python3.4/site-packages/astropy/time/tests/test_ut1.py ...s | |
.local/lib/python3.4/site-packages/astropy/units/tests/test_equivalencies.py ..................................................... | |
.local/lib/python3.4/site-packages/astropy/units/tests/test_format.py ................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................. | |
.local/lib/python3.4/site-packages/astropy/units/tests/test_logarithmic.py ............................................................................................................................................................................... | |
.local/lib/python3.4/site-packages/astropy/units/tests/test_physical.py ........... | |
.local/lib/python3.4/site-packages/astropy/units/tests/test_quantity.py ...................................................................... | |
.local/lib/python3.4/site-packages/astropy/units/tests/test_quantity_array_methods.py ..............x..............x............x.x............. | |
.local/lib/python3.4/site-packages/astropy/units/tests/test_quantity_decorator.py ............................ | |
.local/lib/python3.4/site-packages/astropy/units/tests/test_quantity_non_ufuncs.py xx | |
.local/lib/python3.4/site-packages/astropy/units/tests/test_quantity_ufuncs.py ....................................ss.................................................................................................................... | |
.local/lib/python3.4/site-packages/astropy/units/tests/test_units.py ............................................................................................................................................................................................................................................................................................................................................................................................................................................ | |
.local/lib/python3.4/site-packages/astropy/utils/compat/numpy/tests/test_broadcast_arrays.py .... | |
.local/lib/python3.4/site-packages/astropy/utils/iers/tests/test_iers.py ....s | |
.local/lib/python3.4/site-packages/astropy/utils/tests/test_codegen.py . | |
.local/lib/python3.4/site-packages/astropy/utils/tests/test_collections.py ..... | |
.local/lib/python3.4/site-packages/astropy/utils/tests/test_compat.py . | |
.local/lib/python3.4/site-packages/astropy/utils/tests/test_console.py .......s................. | |
.local/lib/python3.4/site-packages/astropy/utils/tests/test_data.py sssss...........s.....s.s. | |
.local/lib/python3.4/site-packages/astropy/utils/tests/test_data_info.py ............. | |
.local/lib/python3.4/site-packages/astropy/utils/tests/test_decorators.py ........s.. | |
.local/lib/python3.4/site-packages/astropy/utils/tests/test_gzip.py .. | |
.local/lib/python3.4/site-packages/astropy/utils/tests/test_introspection.py .... | |
.local/lib/python3.4/site-packages/astropy/utils/tests/test_metadata.py ............... | |
.local/lib/python3.4/site-packages/astropy/utils/tests/test_misc.py .s... | |
.local/lib/python3.4/site-packages/astropy/utils/tests/test_odict.py sssssssssssssssssssssssssssssssssssssssssss | |
.local/lib/python3.4/site-packages/astropy/utils/tests/test_state.py .. | |
.local/lib/python3.4/site-packages/astropy/utils/tests/test_timer.py . | |
.local/lib/python3.4/site-packages/astropy/utils/tests/test_xml.py ........ | |
.local/lib/python3.4/site-packages/astropy/visualization/scripts/tests/test_fits2bitmap.py .. | |
.local/lib/python3.4/site-packages/astropy/visualization/tests/test_histogram.py ..F | |
.local/lib/python3.4/site-packages/astropy/visualization/tests/test_interval.py ................. | |
.local/lib/python3.4/site-packages/astropy/visualization/tests/test_norm.py s...... | |
.local/lib/python3.4/site-packages/astropy/visualization/tests/test_stretch.py ................................................................................................... | |
.local/lib/python3.4/site-packages/astropy/visualization/tests/test_ui.py ...... | |
.local/lib/python3.4/site-packages/astropy/visualization/tests/test_units.py F. | |
.local/lib/python3.4/site-packages/astropy/vo/client/tests/test_conesearch.py ssssssssssssss...x. | |
.local/lib/python3.4/site-packages/astropy/vo/client/tests/test_vos_catalog.py ..............s | |
.local/lib/python3.4/site-packages/astropy/vo/samp/tests/test_client.py .... | |
.local/lib/python3.4/site-packages/astropy/vo/samp/tests/test_errors.py ... | |
.local/lib/python3.4/site-packages/astropy/vo/samp/tests/test_hub.py .. | |
.local/lib/python3.4/site-packages/astropy/vo/samp/tests/test_hub_proxy.py ..... | |
.local/lib/python3.4/site-packages/astropy/vo/samp/tests/test_hub_script.py . | |
.local/lib/python3.4/site-packages/astropy/vo/samp/tests/test_standard_profile.py ... | |
.local/lib/python3.4/site-packages/astropy/vo/samp/tests/test_web_profile.py .. | |
.local/lib/python3.4/site-packages/astropy/vo/validator/tests/test_inpect.py .... | |
.local/lib/python3.4/site-packages/astropy/vo/validator/tests/test_validate.py ssss | |
.local/lib/python3.4/site-packages/astropy/wcs/tests/test_pickle.py ...... | |
.local/lib/python3.4/site-packages/astropy/wcs/tests/test_profiling.py .................................. | |
.local/lib/python3.4/site-packages/astropy/wcs/tests/test_utils.py ......................................... | |
.local/lib/python3.4/site-packages/astropy/wcs/tests/test_wcs.py .......................................................................... | |
.local/lib/python3.4/site-packages/astropy/wcs/tests/test_wcsprm.py ....................................................................................................x......XX.. | |
.local/lib/python3.4/site-packages/astropy/wcs/tests/extension/test_extension.py . | |
============================================================================================================ FAILURES ============================================================================================================= | |
________________________________________________________________________________________________________ test_hist_autobin ________________________________________________________________________________________________________ | |
rseed = 0 | |
@pytest.mark.skipif('not HAS_PLT') | |
def test_hist_autobin(rseed=0): | |
rng = np.random.RandomState(rseed) | |
x = rng.randn(100) | |
for bintype in [10, np.arange(-3, 3, 10), | |
'knuth', 'scott', 'freedman', 'blocks']: | |
for range in [None, (-3, 3)]: | |
> n1, bins1 = histogram(x, bintype, range=range) | |
.local/lib/python3.4/site-packages/astropy/visualization/tests/test_histogram.py:56: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
.local/lib/python3.4/site-packages/astropy/stats/histogram.py:84: in histogram | |
da, bins = knuth_bin_width(a, True) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
data = array([ 1.76405235, 0.40015721, 0.97873798, 2.2408932 , 1.86755799, | |
-0.97727788, 0.95008842, -0.15135721, ...244507, 0.20827498, 0.97663904, 0.3563664 , | |
0.70657317, 0.01050002, 1.78587049, 0.12691209, 0.40198936]) | |
return_bins = True, quiet = True | |
def knuth_bin_width(data, return_bins=False, quiet=True): | |
r"""Return the optimal histogram bin width using Knuth's rule. | |
Knuth's rule is a fixed-width, Bayesian approach to determining | |
the optimal bin width of a histogram. | |
Parameters | |
---------- | |
data : array-like, ndim=1 | |
observed (one-dimensional) data | |
return_bins : bool (optional) | |
if True, then return the bin edges | |
quiet : bool (optional) | |
if True (default) then suppress stdout output from scipy.optimize | |
Returns | |
------- | |
dx : float | |
optimal bin width. Bins are measured starting at the first data point. | |
bins : ndarray | |
bin edges: returned if ``return_bins`` is True | |
Notes | |
----- | |
The optimal number of bins is the value M which maximizes the function | |
.. math:: | |
F(M|x,I) = n\log(M) + \log\Gamma(\frac{M}{2}) | |
- M\log\Gamma(\frac{1}{2}) | |
- \log\Gamma(\frac{2n+M}{2}) | |
+ \sum_{k=1}^M \log\Gamma(n_k + \frac{1}{2}) | |
where :math:`\Gamma` is the Gamma function, :math:`n` is the number of | |
data points, :math:`n_k` is the number of measurements in bin :math:`k` | |
[1]_. | |
References | |
---------- | |
.. [1] Knuth, K.H. "Optimal Data-Based Binning for Histograms". | |
arXiv:0605197, 2006 | |
See Also | |
-------- | |
freedman_bin_width | |
scott_bin_width | |
bayesian_blocks | |
histogram | |
""" | |
# import here because of optional scipy dependency | |
> from scipy import optimize | |
E ImportError: No module named 'scipy' | |
.local/lib/python3.4/site-packages/astropy/stats/histogram.py:270: ImportError | |
___________________________________________________________________________________________________________ test_units ____________________________________________________________________________________________________________ | |
@pytest.mark.skipif('not HAS_PLT') | |
def test_units(): | |
plt.figure() | |
with quantity_support(): | |
buff = io.BytesIO() | |
plt.plot([1, 2, 3] * u.m, [3, 4, 5] * u.kg) | |
plt.plot([105, 210, 315] * u.cm, [3050, 3025, 3010] * u.g) | |
> plt.savefig(buff, format='svg') | |
.local/lib/python3.4/site-packages/astropy/visualization/tests/test_units.py:33: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/lib/python3/dist-packages/matplotlib/pyplot.py:561: in savefig | |
return fig.savefig(*args, **kwargs) | |
/usr/lib/python3/dist-packages/matplotlib/figure.py:1422: in savefig | |
self.canvas.print_figure(*args, **kwargs) | |
/usr/lib/python3/dist-packages/matplotlib/backend_bases.py:2220: in print_figure | |
**kwargs) | |
/usr/lib/python3/dist-packages/matplotlib/backend_bases.py:1978: in print_svg | |
return svg.print_svg(*args, **kwargs) | |
/usr/lib/python3/dist-packages/matplotlib/backends/backend_svg.py:1157: in print_svg | |
return self._print_svg(filename, svgwriter, fh_to_close, **kwargs) | |
/usr/lib/python3/dist-packages/matplotlib/backends/backend_svg.py:1185: in _print_svg | |
self.figure.draw(renderer) | |
/usr/lib/python3/dist-packages/matplotlib/artist.py:56: in draw_wrapper | |
draw(artist, renderer, *args, **kwargs) | |
/usr/lib/python3/dist-packages/matplotlib/figure.py:973: in draw | |
self.patch.draw(renderer) | |
/usr/lib/python3/dist-packages/matplotlib/artist.py:56: in draw_wrapper | |
draw(artist, renderer, *args, **kwargs) | |
/usr/lib/python3/dist-packages/matplotlib/patches.py:430: in draw | |
renderer.draw_path(gc, tpath, affine, rgbFace) | |
/usr/lib/python3/dist-packages/matplotlib/backends/backend_svg.py:545: in draw_path | |
attrib['style'] = self._get_style(gc, rgbFace) | |
/usr/lib/python3/dist-packages/matplotlib/backends/backend_svg.py:433: in _get_style | |
return generate_css(self._get_style_dict(gc, rgbFace)) | |
/usr/lib/python3/dist-packages/matplotlib/backends/backend_svg.py:405: in _get_style_dict | |
attrib['fill'] = rgb2hex(rgbFace) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
rgb = (1.0, 1.0, 1.0, 1.0) | |
def rgb2hex(rgb): | |
'Given an rgb or rgba sequence of 0-1 floats, return the hex string' | |
> return '#%02x%02x%02x' % tuple([np.round(val * 255) for val in rgb[:3]]) | |
E DeprecationWarning: automatic int conversions have been deprecated | |
/usr/lib/python3/dist-packages/matplotlib/colors.py:222: DeprecationWarning | |
=========================================================================== 2 failed, 6885 passed, 391 skipped, 44 xfailed, 2 xpassed in 143.87 seconds =========================================================================== |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment