repo
stringclasses
10 values
instance_id
stringlengths
18
32
html_url
stringlengths
41
55
feature_patch
stringlengths
805
8.42M
test_patch
stringlengths
548
207k
doc_changes
listlengths
0
92
version
stringclasses
57 values
base_commit
stringlengths
40
40
PASS2PASS
listlengths
0
3.51k
FAIL2PASS
listlengths
0
5.17k
augmentations
dict
mask_doc_diff
listlengths
0
92
problem_statement
stringlengths
0
54.8k
astropy/astropy
astropy__astropy-11984
https://github.com/astropy/astropy/pull/11984
diff --git a/astropy/modeling/core.py b/astropy/modeling/core.py index 5466f0d1f3d5..5107d01b57c0 100644 --- a/astropy/modeling/core.py +++ b/astropy/modeling/core.py @@ -710,6 +710,7 @@ def __init__(self, *args, meta=None, name=None, **kwargs): self.__dict__[parname] = newpar self._...
diff --git a/astropy/modeling/tests/test_core.py b/astropy/modeling/tests/test_core.py index d0525e636490..6282cd449d6c 100644 --- a/astropy/modeling/tests/test_core.py +++ b/astropy/modeling/tests/test_core.py @@ -11,6 +11,7 @@ import astropy from astropy.modeling.core import Model, custom_model, SPECIAL_OPERATORS...
[ { "path": "docs/changes/modeling/11984.feature.rst", "old_path": "/dev/null", "new_path": "b/docs/changes/modeling/11984.feature.rst", "metadata": "diff --git a/docs/changes/modeling/11984.feature.rst b/docs/changes/modeling/11984.feature.rst\nnew file mode 100644\nindex 000000000000..da7ba7c8d7f6\n...
5.0
ace7db5e9bacc9ce98fb74ab6c7190f46ab4b241
[ "astropy/modeling/tests/test_core.py::test_inputless_model", "astropy/modeling/tests/test_core.py::test_custom_model_signature", "astropy/modeling/tests/test_core.py::test_custom_model_parametrized_decorator", "astropy/modeling/tests/test_core.py::test_custom_inverse_reset", "astropy/modeling/tests/test_cor...
[ "astropy/modeling/tests/test_core.py::test_custom_model_regected_parameters", "astropy/modeling/tests/test_core.py::test_custom_model_settable_parameters", "astropy/modeling/tests/test_core.py::test_custom_model_n_outputs" ]
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "docs/changes/modeling/<PRID>.feature.rst", "old_path": "/dev/null", "new_path": "b/docs/changes/modeling/<PRID>.feature.rst", "metadata": "diff --git a/docs/changes/modeling/<PRID>.feature.rst b/docs/changes/modeling/<PRID>.feature.rst\nnew file mode 100644\nindex 000000000000..da7ba7c8d7...
diff --git a/docs/changes/modeling/<PRID>.feature.rst b/docs/changes/modeling/<PRID>.feature.rst new file mode 100644 index 000000000000..da7ba7c8d7f6 --- /dev/null +++ b/docs/changes/modeling/<PRID>.feature.rst @@ -0,0 +1,1 @@ +Improved parameter support for ``astropy.modeling.core.custom_model`` created models. diff...
astropy/astropy
astropy__astropy-11930
https://github.com/astropy/astropy/pull/11930
diff --git a/astropy/io/misc/asdf/tags/transform/basic.py b/astropy/io/misc/asdf/tags/transform/basic.py index 17ad9ecc4e9b..2f464706f4e6 100644 --- a/astropy/io/misc/asdf/tags/transform/basic.py +++ b/astropy/io/misc/asdf/tags/transform/basic.py @@ -3,9 +3,10 @@ from asdf.versioning import AsdfVersion +from astro...
diff --git a/astropy/modeling/tests/test_bounding_box.py b/astropy/modeling/tests/test_bounding_box.py new file mode 100644 index 000000000000..2ffea1dfc445 --- /dev/null +++ b/astropy/modeling/tests/test_bounding_box.py @@ -0,0 +1,1120 @@ +# Licensed under a 3-clause BSD style license - see LICENSE.rst + +import pytes...
[ { "path": "docs/changes/modeling/11930.feature.rst", "old_path": "/dev/null", "new_path": "b/docs/changes/modeling/11930.feature.rst", "metadata": "diff --git a/docs/changes/modeling/11930.feature.rst b/docs/changes/modeling/11930.feature.rst\nnew file mode 100644\nindex 000000000000..4b23c633dd5d\n...
5.0
b7bc02e54cf3a99c83d636877ae8d83bdd1f5e8a
[ "astropy/modeling/tests/test_quantities_model.py::test_read_only[m44]", "astropy/modeling/tests/test_quantities_model.py::test_read_only[m39]", "astropy/modeling/tests/test_quantities_model.py::test_read_only[m49]", "astropy/modeling/tests/test_quantities_model.py::test_read_only[m133]", "astropy/modeling/t...
[ "astropy/modeling/tests/test_models_quantities.py::test_models_evaluate_with_units_x_array[model32]", "astropy/modeling/tests/test_bounding_box.py::TestBoundingBox::test__validate_iterable", "astropy/modeling/tests/test_models.py::TestFittable1DModels::test_input1D[Voigt1D-test_parameters18]", "astropy/modeli...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [ { "type": "field", "name": "_intervals" }, { "type": "function", "name": "_get_order" }, { ...
[ { "path": "docs/changes/modeling/<PRID>.feature.rst", "old_path": "/dev/null", "new_path": "b/docs/changes/modeling/<PRID>.feature.rst", "metadata": "diff --git a/docs/changes/modeling/<PRID>.feature.rst b/docs/changes/modeling/<PRID>.feature.rst\nnew file mode 100644\nindex 000000000000..4b23c633dd...
diff --git a/docs/changes/modeling/<PRID>.feature.rst b/docs/changes/modeling/<PRID>.feature.rst new file mode 100644 index 000000000000..4b23c633dd5d --- /dev/null +++ b/docs/changes/modeling/<PRID>.feature.rst @@ -0,0 +1,1 @@ +Extensive refactor of ``BoundingBox`` for better usability and maintainability. diff --git...
astropy/astropy
astropy__astropy-12321
https://github.com/astropy/astropy/pull/12321
diff --git a/astropy/cosmology/io/__init__.py b/astropy/cosmology/io/__init__.py index d07c7b44d53a..9a1ba0a3c727 100644 --- a/astropy/cosmology/io/__init__.py +++ b/astropy/cosmology/io/__init__.py @@ -5,5 +5,5 @@ Read/Write/Interchange methods for `astropy.cosmology`. **NOT public API**. """ -# Import the interch...
diff --git a/astropy/cosmology/io/tests/base.py b/astropy/cosmology/io/tests/base.py index ef352f630a65..dc9bd5a917a2 100644 --- a/astropy/cosmology/io/tests/base.py +++ b/astropy/cosmology/io/tests/base.py @@ -22,27 +22,35 @@ class IOTestMixinBase: not begin with ``Test``. To activate the contained tests this cla...
[ { "path": "docs/changes/cosmology/12321.feature.rst", "old_path": "/dev/null", "new_path": "b/docs/changes/cosmology/12321.feature.rst", "metadata": "diff --git a/docs/changes/cosmology/12321.feature.rst b/docs/changes/cosmology/12321.feature.rst\nnew file mode 100644\nindex 000000000000..c1f87de8f7...
5.0
001ce91f10ba1b2911d9a6a989c7b0ae62a942e3
[ "astropy/cosmology/io/tests/test_table.py::TestToFromTable::test_tofrom_table_mutlirow[cosmo7-False]", "astropy/cosmology/io/tests/test_model.py::TestToFromModel::test_toformat_model_not_method[cosmo4]", "astropy/cosmology/io/tests/test_table.py::TestToFromTable::test_to_table_in_meta[cosmo4-False]", "astropy...
[ "astropy/cosmology/tests/test_connect.py::TestCosmologyToFromFormat::test_to_ecsv_bad_index[Planck18_arXiv_v2]", "astropy/cosmology/io/tests/test_ecsv.py::TestReadWriteECSV::test_tofrom_ecsv_mutlirow[cosmo4]", "astropy/cosmology/tests/test_connect.py::TestCosmologyToFromFormat::test_to_table_cls[WMAP5-Table]", ...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [ { "type": "field", "name": "read_ecsv" }, { "type": "field", "name": "fileobj" }, { "type":...
[ { "path": "docs/changes/cosmology/<PRID>.feature.rst", "old_path": "/dev/null", "new_path": "b/docs/changes/cosmology/<PRID>.feature.rst", "metadata": "diff --git a/docs/changes/cosmology/<PRID>.feature.rst b/docs/changes/cosmology/<PRID>.feature.rst\nnew file mode 100644\nindex 000000000000..c1f87d...
diff --git a/docs/changes/cosmology/<PRID>.feature.rst b/docs/changes/cosmology/<PRID>.feature.rst new file mode 100644 index 000000000000..c1f87de8f79d --- /dev/null +++ b/docs/changes/cosmology/<PRID>.feature.rst @@ -0,0 +1,2 @@ +Register an ECSV reader and writer into Cosmology's I/O, allowing a Cosmology +instance ...
astropy/astropy
astropy__astropy-11904
https://github.com/astropy/astropy/pull/11904
diff --git a/astropy/table/operations.py b/astropy/table/operations.py index 74a7fd5d6c0f..9ef574d66aae 100644 --- a/astropy/table/operations.py +++ b/astropy/table/operations.py @@ -684,6 +684,10 @@ def hstack(tables, join_type='outer', stacked_table : `~astropy.table.Table` object New table containing t...
diff --git a/astropy/table/tests/test_table.py b/astropy/table/tests/test_table.py index f1008c2de8fd..048867cdb7b0 100644 --- a/astropy/table/tests/test_table.py +++ b/astropy/table/tests/test_table.py @@ -2192,6 +2192,100 @@ def test_kwargs_exception(self): assert '__init__() got unexpected keyword argument'...
[ { "path": "docs/changes/table/11904.feature.rst", "old_path": "/dev/null", "new_path": "b/docs/changes/table/11904.feature.rst", "metadata": "diff --git a/docs/changes/table/11904.feature.rst b/docs/changes/table/11904.feature.rst\nnew file mode 100644\nindex 000000000000..f32da56148a0\n--- /dev/nul...
5.0
a97b8331c30d2c1b08b3302a0d7b4b0bcdd113ae
[ "astropy/table/tests/test_table.py::TestAddPosition::test_1[subclass]", "astropy/table/tests/test_table.py::TestRemove::test_delitem_row_fail[subclass]", "astropy/table/tests/test_table.py::TestAddRow::test_add_row_failures[subclass]", "astropy/table/tests/test_table.py::test_set_descriptions", "astropy/tab...
[ "astropy/table/tests/test_table.py::TestUpdate::test_update", "astropy/table/tests/test_table.py::TestUpdate::test_invalid_inputs", "astropy/table/tests/test_table.py::TestUpdate::test_update_without_copy", "astropy/table/tests/test_table.py::TestUpdate::test_different_lengths", "astropy/table/tests/test_ta...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "docs/changes/table/<PRID>.feature.rst", "old_path": "/dev/null", "new_path": "b/docs/changes/table/<PRID>.feature.rst", "metadata": "diff --git a/docs/changes/table/<PRID>.feature.rst b/docs/changes/table/<PRID>.feature.rst\nnew file mode 100644\nindex 000000000000..f32da56148a0\n--- /dev...
diff --git a/docs/changes/table/<PRID>.feature.rst b/docs/changes/table/<PRID>.feature.rst new file mode 100644 index 000000000000..f32da56148a0 --- /dev/null +++ b/docs/changes/table/<PRID>.feature.rst @@ -0,0 +1,2 @@ +Added a new method ``Table.update()`` which does a dictionary-style update of a +``Table`` by adding...
astropy/astropy
astropy__astropy-12185
https://github.com/astropy/astropy/pull/12185
diff --git a/astropy/modeling/functional_models.py b/astropy/modeling/functional_models.py index 0de54e9f1988..a0e64137880b 100644 --- a/astropy/modeling/functional_models.py +++ b/astropy/modeling/functional_models.py @@ -16,9 +16,11 @@ 'Const2D', 'Ellipse2D', 'Disk2D', 'Gaussian1D', 'Gaussian2D', ...
diff --git a/astropy/modeling/tests/example_models.py b/astropy/modeling/tests/example_models.py index 7ea18023fca2..72196da5c163 100644 --- a/astropy/modeling/tests/example_models.py +++ b/astropy/modeling/tests/example_models.py @@ -51,7 +51,9 @@ from astropy.modeling.functional_models import ( - Gaussian1D, ...
[ { "path": "docs/changes/modeling/12185.feature.rst", "old_path": "/dev/null", "new_path": "b/docs/changes/modeling/12185.feature.rst", "metadata": "diff --git a/docs/changes/modeling/12185.feature.rst b/docs/changes/modeling/12185.feature.rst\nnew file mode 100644\nindex 000000000000..dc76feff98eb\n...
5.0
3860279a963e66aae21a2d18a1c473cc32639542
[]
[ "astropy/modeling/tests/test_models_quantities.py::test_models_evaluate_with_units_x_array[model32]", "astropy/modeling/tests/test_models.py::TestFittable1DModels::test_input1D[Voigt1D-test_parameters18]", "astropy/modeling/tests/test_models_quantities.py::test_models_fitting[model7]", "astropy/modeling/tests...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "docs/changes/modeling/<PRID>.feature.rst", "old_path": "/dev/null", "new_path": "b/docs/changes/modeling/<PRID>.feature.rst", "metadata": "diff --git a/docs/changes/modeling/<PRID>.feature.rst b/docs/changes/modeling/<PRID>.feature.rst\nnew file mode 100644\nindex 000000000000..dc76feff98...
diff --git a/docs/changes/modeling/<PRID>.feature.rst b/docs/changes/modeling/<PRID>.feature.rst new file mode 100644 index 000000000000..dc76feff98eb --- /dev/null +++ b/docs/changes/modeling/<PRID>.feature.rst @@ -0,0 +1,5 @@ +Added the following trigonometric models and linked them to their appropriate inverse model...
astropy/astropy
astropy__astropy-11914
https://github.com/astropy/astropy/pull/11914
diff --git a/astropy/table/table.py b/astropy/table/table.py index 82d302753a15..db442b43a549 100644 --- a/astropy/table/table.py +++ b/astropy/table/table.py @@ -19,6 +19,7 @@ from astropy.utils import isiterable, ShapedLikeNDArray from astropy.utils.console import color_print from astropy.utils.exceptions import A...
diff --git a/astropy/table/tests/test_masked.py b/astropy/table/tests/test_masked.py index 4804e94777cf..bc715496e028 100644 --- a/astropy/table/tests/test_masked.py +++ b/astropy/table/tests/test_masked.py @@ -8,6 +8,7 @@ from astropy.table import Column, MaskedColumn, Table, QTable from astropy.table.column import ...
[ { "path": "docs/changes/table/11914.feature.rst", "old_path": "/dev/null", "new_path": "b/docs/changes/table/11914.feature.rst", "metadata": "diff --git a/docs/changes/table/11914.feature.rst b/docs/changes/table/11914.feature.rst\nnew file mode 100644\nindex 000000000000..88d94b409ec0\n--- /dev/nul...
5.0
2865905fa520c540a025e34fd52ee5a3b28d75d9
[ "astropy/table/tests/test_masked.py::TestTableInit::test_init_from_sequence_data_numeric_untyped[shape2-O]", "astropy/table/tests/test_masked.py::TestTableInit::test_initialization_with_all_columns", "astropy/table/tests/test_masked.py::TestTableInit::test_init_from_sequence_data_numeric_typed[shape2-O]", "as...
[ "astropy/table/tests/test_masked.py::test_masked_column_with_unit_in_qtable", "astropy/table/tests/test_masked.py::test_masked_quantity_in_table" ]
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "docs/changes/table/<PRID>.feature.rst", "old_path": "/dev/null", "new_path": "b/docs/changes/table/<PRID>.feature.rst", "metadata": "diff --git a/docs/changes/table/<PRID>.feature.rst b/docs/changes/table/<PRID>.feature.rst\nnew file mode 100644\nindex 000000000000..88d94b409ec0\n--- /dev...
diff --git a/docs/changes/table/<PRID>.feature.rst b/docs/changes/table/<PRID>.feature.rst new file mode 100644 index 000000000000..88d94b409ec0 --- /dev/null +++ b/docs/changes/table/<PRID>.feature.rst @@ -0,0 +1,3 @@ +Masked quantities are now fully supported in tables. This includes ``QTable`` +automatically conver...
astropy/astropy
astropy__astropy-11954
https://github.com/astropy/astropy/pull/11954
diff --git a/astropy/table/operations.py b/astropy/table/operations.py index 9ef574d66aae..0850f646012a 100644 --- a/astropy/table/operations.py +++ b/astropy/table/operations.py @@ -336,7 +336,8 @@ def join_func(col1, col2): return join_func -def join(left, right, keys=None, join_type='inner', +def join(left,...
diff --git a/astropy/table/tests/test_operations.py b/astropy/table/tests/test_operations.py index 2b9488393af2..8b2fcd93bd39 100644 --- a/astropy/table/tests/test_operations.py +++ b/astropy/table/tests/test_operations.py @@ -721,6 +721,73 @@ def test_join_with_join_distance_2d(self): ' 5 -- .. -...
[ { "path": "docs/changes/table/11954.api.rst", "old_path": "/dev/null", "new_path": "b/docs/changes/table/11954.api.rst", "metadata": "diff --git a/docs/changes/table/11954.api.rst b/docs/changes/table/11954.api.rst\nnew file mode 100644\nindex 000000000000..4f43558ec025\n--- /dev/null\n+++ b/docs/ch...
5.0
cda344a7cb707a0500c2b3d59f871d37562bdea6
[ "astropy/table/tests/test_operations.py::TestSetdiff::test_keys[QTable]", "astropy/table/tests/test_operations.py::TestHStack::test_bad_input_type[QTable]", "astropy/table/tests/test_operations.py::TestJoin::test_no_common_keys[Table]", "astropy/table/tests/test_operations.py::TestHStack::test_stack_columns[Q...
[ "astropy/table/tests/test_operations.py::TestJoin::test_keys_left_right_basic", "astropy/table/tests/test_operations.py::TestJoin::test_keys_left_right_exceptions" ]
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "docs/changes/table/<PRID>.api.rst", "old_path": "/dev/null", "new_path": "b/docs/changes/table/<PRID>.api.rst", "metadata": "diff --git a/docs/changes/table/<PRID>.api.rst b/docs/changes/table/<PRID>.api.rst\nnew file mode 100644\nindex 000000000000..4f43558ec025\n--- /dev/null\n+++ b/doc...
diff --git a/docs/changes/table/<PRID>.api.rst b/docs/changes/table/<PRID>.api.rst new file mode 100644 index 000000000000..4f43558ec025 --- /dev/null +++ b/docs/changes/table/<PRID>.api.rst @@ -0,0 +1,3 @@ +The table ``join`` function now accepts only the first four arguments ``left``, +``right``, ``keys``, and ``join...
astropy/astropy
astropy__astropy-12022
https://github.com/astropy/astropy/pull/12022
diff --git a/astropy/table/info.py b/astropy/table/info.py index f9c591e5f28c..9b8b8439669b 100644 --- a/astropy/table/info.py +++ b/astropy/table/info.py @@ -49,7 +49,7 @@ def table_info(tbl, option='attributes', out=''): name mean std min max ---- ---- --- --- --- a 1.5 0.5 1 2 - b 1.5 0...
diff --git a/astropy/table/tests/test_info.py b/astropy/table/tests/test_info.py index 7a55fc25a305..53f296017788 100644 --- a/astropy/table/tests/test_info.py +++ b/astropy/table/tests/test_info.py @@ -82,7 +82,7 @@ def test_table_info_stats(table_types): 'name mean std min max', '---- ---- ---...
[ { "path": "docs/changes/table/12022.feature.rst", "old_path": "/dev/null", "new_path": "b/docs/changes/table/12022.feature.rst", "metadata": "diff --git a/docs/changes/table/12022.feature.rst b/docs/changes/table/12022.feature.rst\nnew file mode 100644\nindex 000000000000..49ef2abe81aa\n--- /dev/nul...
5.0
46ca59e9a0bfa3b6687411ea7a6364fdebf91914
[ "astropy/table/tests/test_showtable.py::test_fits_hdu", "astropy/table/tests/test_info.py::test_ignore_warnings", "astropy/table/tests/test_info.py::test_empty_table", "astropy/table/tests/test_info.py::test_table_info_attributes[masked]", "astropy/table/tests/test_showtable.py::test_show_dtype", "astropy...
[ "astropy/table/tests/test_info.py::test_table_info_stats[masked]", "astropy/table/tests/test_showtable.py::test_stats", "astropy/table/tests/test_info.py::test_table_info_stats[unmasked]", "astropy/table/tests/test_info.py::test_table_info_stats[subclass]", "astropy/table/tests/test_info.py::test_data_info"...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "docs/changes/table/<PRID>.feature.rst", "old_path": "/dev/null", "new_path": "b/docs/changes/table/<PRID>.feature.rst", "metadata": "diff --git a/docs/changes/table/<PRID>.feature.rst b/docs/changes/table/<PRID>.feature.rst\nnew file mode 100644\nindex 000000000000..49ef2abe81aa\n--- /dev...
diff --git a/docs/changes/table/<PRID>.feature.rst b/docs/changes/table/<PRID>.feature.rst new file mode 100644 index 000000000000..49ef2abe81aa --- /dev/null +++ b/docs/changes/table/<PRID>.feature.rst @@ -0,0 +1,2 @@ +Formatting of any numerical values in the output of ``Table.info()`` and +``Column.info()`` has been...
astropy/astropy
astropy__astropy-11680
https://github.com/astropy/astropy/pull/11680
diff --git a/astropy/time/core.py b/astropy/time/core.py index dc1765444179..508278a68425 100644 --- a/astropy/time/core.py +++ b/astropy/time/core.py @@ -90,12 +90,14 @@ 'mean': { 'IAU2006': {'function': erfa.gmst06, 'scales': ('ut1', 'tt')}, 'IAU2000': {'function': erfa.gmst00, 'scales': ('ut1'...
diff --git a/astropy/time/tests/test_sidereal.py b/astropy/time/tests/test_sidereal.py index dd5537a8a0a7..23ec66fb33dc 100644 --- a/astropy/time/tests/test_sidereal.py +++ b/astropy/time/tests/test_sidereal.py @@ -4,7 +4,9 @@ import pytest import numpy as np +import erfa +from astropy import units as u from ast...
[ { "path": "docs/changes/time/11680.api.rst", "old_path": "/dev/null", "new_path": "b/docs/changes/time/11680.api.rst", "metadata": "diff --git a/docs/changes/time/11680.api.rst b/docs/changes/time/11680.api.rst\nnew file mode 100644\nindex 000000000000..82482a09422f\n--- /dev/null\n+++ b/docs/change...
5.0
3f30432d079e6fc07cbcb0d29437f76e33027a1b
[ "astropy/time/tests/test_sidereal.py::TestST::test_lst_string_longitude", "astropy/time/tests/test_sidereal.py::TestERFATestCases::test_iau_models[erfa_test_input1]", "astropy/time/tests/test_sidereal.py::TestERFATestCases::test_iau_models[erfa_test_input3]", "astropy/time/tests/test_sidereal.py::TestST::test...
[ "astropy/time/tests/test_sidereal.py::TestST::test_gmst_era_close", "astropy/time/tests/test_sidereal.py::TestERFATestCases::test_era", "astropy/time/tests/test_sidereal.py::TestST::test_lera", "astropy/time/tests/test_sidereal.py::TestST::test_gmst_vs_lmst", "astropy/time/tests/test_sidereal.py::TestST::te...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [ { "type": "field", "name": "arctan2" }, { "type": "field", "name": "xp" }, { "type": "field...
[ { "path": "docs/changes/time/<PRID>.api.rst", "old_path": "/dev/null", "new_path": "b/docs/changes/time/<PRID>.api.rst", "metadata": "diff --git a/docs/changes/time/<PRID>.api.rst b/docs/changes/time/<PRID>.api.rst\nnew file mode 100644\nindex 000000000000..82482a09422f\n--- /dev/null\n+++ b/docs/ch...
diff --git a/docs/changes/time/<PRID>.api.rst b/docs/changes/time/<PRID>.api.rst new file mode 100644 index 000000000000..82482a09422f --- /dev/null +++ b/docs/changes/time/<PRID>.api.rst @@ -0,0 +1,2 @@ +Along with the new method ``earth_rotation_angle``, ``sidereal_time`` now accepts +an ``EarthLocation`` as the ``lo...
astropy/astropy
astropy__astropy-11266
https://github.com/astropy/astropy/pull/11266
diff --git a/astropy/timeseries/downsample.py b/astropy/timeseries/downsample.py index f583e9122e9b..666000248daf 100644 --- a/astropy/timeseries/downsample.py +++ b/astropy/timeseries/downsample.py @@ -4,6 +4,7 @@ import numpy as np from astropy import units as u +from astropy.time import Time, TimeDelta from ast...
diff --git a/astropy/timeseries/tests/test_downsample.py b/astropy/timeseries/tests/test_downsample.py index 36b5e644f3cf..ddf282d72e23 100644 --- a/astropy/timeseries/tests/test_downsample.py +++ b/astropy/timeseries/tests/test_downsample.py @@ -1,17 +1,22 @@ # Licensed under a 3-clause BSD style license - see LICENS...
[ { "path": "docs/changes/timeseries/11266.feature.rst", "old_path": "/dev/null", "new_path": "b/docs/changes/timeseries/11266.feature.rst", "metadata": "diff --git a/docs/changes/timeseries/11266.feature.rst b/docs/changes/timeseries/11266.feature.rst\nnew file mode 100644\nindex 000000000000..21f452...
5.0
ce72415c1821f93a0a857fbe8f8b2a8ea101cf47
[ "astropy/timeseries/tests/test_downsample.py::test_reduceat", "astropy/timeseries/tests/test_downsample.py::test_timeseries_invalid" ]
[ "astropy/timeseries/tests/test_downsample.py::test_time_bin_end_auto", "astropy/timeseries/tests/test_downsample.py::test_downsample", "astropy/timeseries/tests/test_downsample.py::test_time_bin_conversion", "astropy/timeseries/tests/test_downsample.py::test_nbins", "astropy/timeseries/tests/test_downsample...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [ { "type": "error_msg", "name": "'time_bin_size' or time_bin_end' must be provided" }, { "type": "error_msg", ...
[ { "path": "docs/changes/timeseries/<PRID>.feature.rst", "old_path": "/dev/null", "new_path": "b/docs/changes/timeseries/<PRID>.feature.rst", "metadata": "diff --git a/docs/changes/timeseries/<PRID>.feature.rst b/docs/changes/timeseries/<PRID>.feature.rst\nnew file mode 100644\nindex 000000000000..21...
diff --git a/docs/changes/timeseries/<PRID>.feature.rst b/docs/changes/timeseries/<PRID>.feature.rst new file mode 100644 index 000000000000..21f452c2e075 --- /dev/null +++ b/docs/changes/timeseries/<PRID>.feature.rst @@ -0,0 +1,4 @@ +A custom binning scheme is now available in ``aggregate_downsample``. +It allows ``ti...
astropy/astropy
astropy__astropy-11691
https://github.com/astropy/astropy/pull/11691
diff --git a/astropy/units/physical.py b/astropy/units/physical.py index c19c6e8f2b01..5c13020da786 100644 --- a/astropy/units/physical.py +++ b/astropy/units/physical.py @@ -3,6 +3,7 @@ """Defines the physical types that correspond to different units.""" import numbers +import sys import warnings from . import...
diff --git a/astropy/units/tests/test_physical.py b/astropy/units/tests/test_physical.py index ce285464ccc9..506fc573988e 100644 --- a/astropy/units/tests/test_physical.py +++ b/astropy/units/tests/test_physical.py @@ -153,7 +153,9 @@ def test_physical_type_names(unit, physical_type): (u.m, "length"), ...
[ { "path": "docs/changes/units/11691.feature.rst", "old_path": "/dev/null", "new_path": "b/docs/changes/units/11691.feature.rst", "metadata": "diff --git a/docs/changes/units/11691.feature.rst b/docs/changes/units/11691.feature.rst\nnew file mode 100644\nindex 000000000000..fd8a04efed7b\n--- /dev/nul...
5.0
77607ae8846038f8244e244ac90e9b2976044e9d
[ "astropy/units/tests/test_physical.py::test_physical_type_str[physical_type0-length]", "astropy/units/tests/test_physical.py::test_physical_type_in", "astropy/units/tests/test_physical.py::test_physical_type_names[unit10-data quantity]", "astropy/units/tests/test_physical.py::test_physical_type_names[unit55-e...
[ "astropy/units/tests/test_physical.py::test_getting_physical_type[energy_density-energy_density]", "astropy/units/tests/test_physical.py::TestDefPhysType::test_expanding_names_for_physical_type", "astropy/units/tests/test_physical.py::test_physical_types_module_access" ]
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [ { "type": "field", "name": "_attrname_physical_mapping" } ] }
[ { "path": "docs/changes/units/<PRID>.feature.rst", "old_path": "/dev/null", "new_path": "b/docs/changes/units/<PRID>.feature.rst", "metadata": "diff --git a/docs/changes/units/<PRID>.feature.rst b/docs/changes/units/<PRID>.feature.rst\nnew file mode 100644\nindex 000000000000..fd8a04efed7b\n--- /dev...
diff --git a/docs/changes/units/<PRID>.feature.rst b/docs/changes/units/<PRID>.feature.rst new file mode 100644 index 000000000000..fd8a04efed7b --- /dev/null +++ b/docs/changes/units/<PRID>.feature.rst @@ -0,0 +1,4 @@ +Each physical type is added to ``astropy.units.physical`` +(e.g., ``physical.length`` or ``physical....
astropy/astropy
astropy__astropy-10662
https://github.com/astropy/astropy/pull/10662
diff --git a/astropy/units/_typing.py b/astropy/units/_typing.py new file mode 100644 index 000000000000..765d44bde83e --- /dev/null +++ b/astropy/units/_typing.py @@ -0,0 +1,15 @@ +# Licensed under a 3-clause BSD style license - see LICENSE.rst +""" +Support for ``typing`` py3.9+ features while min version is py3.8. +...
diff --git a/astropy/units/tests/test_quantity_annotations.py b/astropy/units/tests/test_quantity_annotations.py index dca18c85e50c..11a3dde5266d 100644 --- a/astropy/units/tests/test_quantity_annotations.py +++ b/astropy/units/tests/test_quantity_annotations.py @@ -1,9 +1,121 @@ # -*- coding: utf-8 -*- # Licensed un...
[ { "path": "docs/changes/units/10662.feature.rst", "old_path": "/dev/null", "new_path": "b/docs/changes/units/10662.feature.rst", "metadata": "diff --git a/docs/changes/units/10662.feature.rst b/docs/changes/units/10662.feature.rst\nnew file mode 100644\nindex 000000000000..9c7f75bfd6e2\n--- /dev/nul...
5.0
300565fa5ed1c0e5f0cabf2f6a779d6a09b74632
[]
[ "astropy/units/tests/test_quantity_annotations.py::TestQuantityUnitAnnotations::test_not_unit_or_ptype", "astropy/units/tests/test_quantity_annotations.py::test_kwarg_not_quantity3[angle-angle]", "astropy/units/tests/test_quantity_annotations.py::test_kwarg_default3[solarx_unit0-solary_unit0]", "astropy/units...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [ { "type": "field", "name": "get_origin" }, { "type": "field", "name": "_typing" }, { "type"...
[ { "path": "docs/changes/units/<PRID>.feature.rst", "old_path": "/dev/null", "new_path": "b/docs/changes/units/<PRID>.feature.rst", "metadata": "diff --git a/docs/changes/units/<PRID>.feature.rst b/docs/changes/units/<PRID>.feature.rst\nnew file mode 100644\nindex 000000000000..9c7f75bfd6e2\n--- /dev...
diff --git a/docs/changes/units/<PRID>.feature.rst b/docs/changes/units/<PRID>.feature.rst new file mode 100644 index 000000000000..9c7f75bfd6e2 --- /dev/null +++ b/docs/changes/units/<PRID>.feature.rst @@ -0,0 +1,4 @@ +``Quantity`` gains a ``__class_getitem__`` to create unit-aware annotations + with the syntax ``Quan...
astropy/astropy
astropy__astropy-11775
https://github.com/astropy/astropy/pull/11775
diff --git a/astropy/units/__init__.py b/astropy/units/__init__.py index 390dcac68af9..57105ea188f8 100644 --- a/astropy/units/__init__.py +++ b/astropy/units/__init__.py @@ -36,6 +36,7 @@ from .function.core import * from .function.logarithmic import * +from .structured import * from .decorators import * del b...
diff --git a/astropy/units/tests/test_structured.py b/astropy/units/tests/test_structured.py new file mode 100644 index 000000000000..ede8b7ff329c --- /dev/null +++ b/astropy/units/tests/test_structured.py @@ -0,0 +1,674 @@ +# coding: utf-8 +# Licensed under a 3-clause BSD style license - see LICENSE.rst +""" +Test Str...
[ { "path": "docs/changes/units/11775.feature.rst", "old_path": "/dev/null", "new_path": "b/docs/changes/units/11775.feature.rst", "metadata": "diff --git a/docs/changes/units/11775.feature.rst b/docs/changes/units/11775.feature.rst\nnew file mode 100644\nindex 000000000000..afc655f23c1d\n--- /dev/nul...
5.0
cda344a7cb707a0500c2b3d59f871d37562bdea6
[]
[ "astropy/units/tests/test_structured_erfa_ufuncs.py::TestPVUfuncs::test_trxpv[r2]", "astropy/units/tests/test_structured.py::TestStructuredUnitBasics::test_str", "astropy/units/tests/test_structured_erfa_ufuncs.py::TestPVUfuncs::test_pvmpv", "astropy/units/tests/test_structured_erfa_ufuncs.py::TestEraStructUf...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [ { "type": "field", "name": "isinstance" }, { "type": "field", "name": "empty_like" }, { "ty...
[ { "path": "docs/changes/units/<PRID>.feature.rst", "old_path": "/dev/null", "new_path": "b/docs/changes/units/<PRID>.feature.rst", "metadata": "diff --git a/docs/changes/units/<PRID>.feature.rst b/docs/changes/units/<PRID>.feature.rst\nnew file mode 100644\nindex 000000000000..afc655f23c1d\n--- /dev...
diff --git a/docs/changes/units/<PRID>.feature.rst b/docs/changes/units/<PRID>.feature.rst new file mode 100644 index 000000000000..afc655f23c1d --- /dev/null +++ b/docs/changes/units/<PRID>.feature.rst @@ -0,0 +1,3 @@ +It is now possible to have quantities based on structured arrays in +which the unit has matching str...
astropy/astropy
astropy__astropy-12128
https://github.com/astropy/astropy/pull/12128
diff --git a/astropy/units/astrophys.py b/astropy/units/astrophys.py index ef9f99ae5ce2..b012d9fac36c 100644 --- a/astropy/units/astrophys.py +++ b/astropy/units/astrophys.py @@ -43,6 +43,8 @@ def_unit(['lyr', 'lightyear'], (_si.c * si.yr).to(si.m), namespace=_ns, prefixes=True, doc="Light year") +def_unit...
diff --git a/astropy/units/tests/test_equivalencies.py b/astropy/units/tests/test_equivalencies.py index ca167a084c5c..09584b9b9361 100644 --- a/astropy/units/tests/test_equivalencies.py +++ b/astropy/units/tests/test_equivalencies.py @@ -527,7 +527,7 @@ def test_equivalent_units(): def test_equivalent_units2(): ...
[ { "path": "docs/changes/units/12128.feature.rst", "old_path": "/dev/null", "new_path": "b/docs/changes/units/12128.feature.rst", "metadata": "diff --git a/docs/changes/units/12128.feature.rst b/docs/changes/units/12128.feature.rst\nnew file mode 100644\nindex 000000000000..76006b3a3c81\n--- /dev/nul...
5.0
6ef2ea529068cda73393f2c87e17ea88b187fd77
[ "astropy/units/tests/test_equivalencies.py::test_spectraldensity2[wav2]", "astropy/units/tests/test_equivalencies.py::test_doppler_wavelength_0[doppler_relativistic]", "astropy/units/tests/test_equivalencies.py::test_spectral2", "astropy/units/tests/test_equivalencies.py::test_brightness_temperature", "astr...
[ "astropy/units/tests/test_equivalencies.py::test_equivalent_units2" ]
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "docs/changes/units/<PRID>.feature.rst", "old_path": "/dev/null", "new_path": "b/docs/changes/units/<PRID>.feature.rst", "metadata": "diff --git a/docs/changes/units/<PRID>.feature.rst b/docs/changes/units/<PRID>.feature.rst\nnew file mode 100644\nindex 000000000000..76006b3a3c81\n--- /dev...
diff --git a/docs/changes/units/<PRID>.feature.rst b/docs/changes/units/<PRID>.feature.rst new file mode 100644 index 000000000000..76006b3a3c81 --- /dev/null +++ b/docs/changes/units/<PRID>.feature.rst @@ -0,0 +1,1 @@ +Add light-second to units of length diff --git a/docs/units/equivalencies.rst b/docs/units/equivale...
astropy/astropy
astropy__astropy-11796
https://github.com/astropy/astropy/pull/11796
diff --git a/astropy/units/quantity.py b/astropy/units/quantity.py index fe820df7b1f1..e2f3158db442 100644 --- a/astropy/units/quantity.py +++ b/astropy/units/quantity.py @@ -110,6 +110,27 @@ def __next__(self): next = __next__ + #### properties and methods to match `numpy.ndarray.flatiter` #### + + @pro...
diff --git a/astropy/units/tests/test_quantity_array_methods.py b/astropy/units/tests/test_quantity_array_methods.py index 944b8388669d..b6e83461cb01 100644 --- a/astropy/units/tests/test_quantity_array_methods.py +++ b/astropy/units/tests/test_quantity_array_methods.py @@ -122,6 +122,28 @@ def test_swapaxes(self): ...
[ { "path": "docs/changes/units/11796.feature.rst", "old_path": "/dev/null", "new_path": "b/docs/changes/units/11796.feature.rst", "metadata": "diff --git a/docs/changes/units/11796.feature.rst b/docs/changes/units/11796.feature.rst\nnew file mode 100644\nindex 000000000000..58d78edbc764\n--- /dev/nul...
5.0
4fa77e2fb45d2b53c43dd0aa42da003bfc99e933
[ "astropy/units/tests/test_quantity_array_methods.py::TestQuantityArrayCopy::test_getitem_is_view", "astropy/units/tests/test_quantity_array_methods.py::TestQuantityStatsFuncs::test_mean_inplace", "astropy/units/tests/test_quantity_array_methods.py::TestQuantityReshapeFuncs::test_reshape", "astropy/units/tests...
[ "astropy/units/tests/test_quantity_array_methods.py::TestQuantityReshapeFuncs::test_flat_attributes" ]
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "docs/changes/units/<PRID>.feature.rst", "old_path": "/dev/null", "new_path": "b/docs/changes/units/<PRID>.feature.rst", "metadata": "diff --git a/docs/changes/units/<PRID>.feature.rst b/docs/changes/units/<PRID>.feature.rst\nnew file mode 100644\nindex 000000000000..58d78edbc764\n--- /dev...
diff --git a/docs/changes/units/<PRID>.feature.rst b/docs/changes/units/<PRID>.feature.rst new file mode 100644 index 000000000000..58d78edbc764 --- /dev/null +++ b/docs/changes/units/<PRID>.feature.rst @@ -0,0 +1,2 @@ +Added attributes ``base``, ``coords``, and ``index`` and method ``copy()`` to +``QuantityIterator`` ...
astropy/astropy
astropy__astropy-11788
https://github.com/astropy/astropy/pull/11788
diff --git a/astropy/units/si.py b/astropy/units/si.py index f2bebef5a60f..1e8f96e8365d 100644 --- a/astropy/units/si.py +++ b/astropy/units/si.py @@ -34,6 +34,7 @@ def_unit(['Angstrom', 'AA', 'angstrom'], 0.1 * nm, namespace=_ns, doc="ångström: 10 ** -10 m", + prefixes=[(['m', 'milli'], ['milli', ...
diff --git a/astropy/units/tests/test_format.py b/astropy/units/tests/test_format.py index bae51be43848..7c2816360c29 100644 --- a/astropy/units/tests/test_format.py +++ b/astropy/units/tests/test_format.py @@ -606,6 +606,7 @@ def test_powers(power, expected): ('\N{ANGSTROM SIGN} \N{OHM SIGN}', u.Angstrom * u.Ohm)...
[ { "path": "docs/changes/units/11788.feature.rst", "old_path": "/dev/null", "new_path": "b/docs/changes/units/11788.feature.rst", "metadata": "diff --git a/docs/changes/units/11788.feature.rst b/docs/changes/units/11788.feature.rst\nnew file mode 100644\nindex 000000000000..8431c639a324\n--- /dev/nul...
5.0
99ab72daf324c481e4b1a241c091d9c6faca3c5c
[ "astropy/units/tests/test_units.py::test_compose_roundtrip[%]", "astropy/units/tests/test_units.py::test_compose_roundtrip[W]", "astropy/units/tests/test_units.py::test_compose_si_to_cgs[t]", "astropy/units/tests/test_units.py::test_compose_roundtrip[Bq]", "astropy/units/tests/test_units.py::test_compose_si...
[ "astropy/units/tests/test_format.py::test_ogip_grammar[strings1-unit1]", "astropy/units/tests/test_format.py::test_scaled_dimensionless", "astropy/units/tests/test_format.py::test_fits_scale_factor[10(+2)-100-10**2]", "astropy/units/tests/test_format.py::test_unicode[g\\u22121-unit2]", "astropy/units/tests/...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "docs/changes/units/<PRID>.feature.rst", "old_path": "/dev/null", "new_path": "b/docs/changes/units/<PRID>.feature.rst", "metadata": "diff --git a/docs/changes/units/<PRID>.feature.rst b/docs/changes/units/<PRID>.feature.rst\nnew file mode 100644\nindex 000000000000..8431c639a324\n--- /dev...
diff --git a/docs/changes/units/<PRID>.feature.rst b/docs/changes/units/<PRID>.feature.rst new file mode 100644 index 000000000000..8431c639a324 --- /dev/null +++ b/docs/changes/units/<PRID>.feature.rst @@ -0,0 +1,1 @@ +The milli- prefix has been added to ``astropy.units.Angstrom``. diff --git a/docs/units/format.rst ...
astropy/astropy
astropy__astropy-11716
https://github.com/astropy/astropy/pull/11716
diff --git a/astropy/wcs/utils.py b/astropy/wcs/utils.py index b9fee59466ae..bba9f9f799f5 100644 --- a/astropy/wcs/utils.py +++ b/astropy/wcs/utils.py @@ -1,22 +1,25 @@ # Licensed under a 3-clause BSD style license - see LICENSE.rst +import copy + import numpy as np -from astropy import units as u +import astropy...
diff --git a/astropy/wcs/tests/test_utils.py b/astropy/wcs/tests/test_utils.py index 0784ba771f39..bd9a1ba0c744 100644 --- a/astropy/wcs/tests/test_utils.py +++ b/astropy/wcs/tests/test_utils.py @@ -14,7 +14,7 @@ from astropy.time import Time from astropy import units as u from astropy.utils import unbroadcast -from...
[ { "path": "docs/changes/wcs/11716.feature.rst", "old_path": "/dev/null", "new_path": "b/docs/changes/wcs/11716.feature.rst", "metadata": "diff --git a/docs/changes/wcs/11716.feature.rst b/docs/changes/wcs/11716.feature.rst\nnew file mode 100644\nindex 000000000000..8b0ace8ea849\n--- /dev/null\n+++ b...
5.0
94bea3078d57d77758ce8db527e3a26f839b0d02
[]
[ "astropy/wcs/tests/test_utils.py::test_pixel_to_world_correlation_matrix_celestial", "astropy/wcs/tests/test_utils.py::test_obsgeo_invalid[obsgeo3]", "astropy/wcs/tests/test_utils.py::test_pixscale_cd", "astropy/wcs/tests/test_utils.py::test_pixel_scale_matrix[cdelt2-pc2-pccd2]", "astropy/wcs/tests/test_uti...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "docs/changes/wcs/<PRID>.feature.rst", "old_path": "/dev/null", "new_path": "b/docs/changes/wcs/<PRID>.feature.rst", "metadata": "diff --git a/docs/changes/wcs/<PRID>.feature.rst b/docs/changes/wcs/<PRID>.feature.rst\nnew file mode 100644\nindex 000000000000..8b0ace8ea849\n--- /dev/null\n+...
diff --git a/docs/changes/wcs/<PRID>.feature.rst b/docs/changes/wcs/<PRID>.feature.rst new file mode 100644 index 000000000000..8b0ace8ea849 --- /dev/null +++ b/docs/changes/wcs/<PRID>.feature.rst @@ -0,0 +1,1 @@ +``astropy.wcs.utils.obsgeo_to_frame`` has been added to convert the obsgeo coordinate array on ``astropy.w...
astropy/astropy
astropy__astropy-12454
https://github.com/astropy/astropy/pull/12454
diff --git a/astropy/utils/masked/core.py b/astropy/utils/masked/core.py index 7144d3f02b32..27149ece41f2 100644 --- a/astropy/utils/masked/core.py +++ b/astropy/utils/masked/core.py @@ -895,11 +895,11 @@ def trace(self, offset=0, axis1=0, axis2=1, dtype=None, out=None): def min(self, axis=None, out=None, **kwar...
diff --git a/astropy/utils/masked/tests/test_function_helpers.py b/astropy/utils/masked/tests/test_function_helpers.py index 6462d951b95a..f14586b2069b 100644 --- a/astropy/utils/masked/tests/test_function_helpers.py +++ b/astropy/utils/masked/tests/test_function_helpers.py @@ -1225,6 +1225,108 @@ def test_datetime_as_...
[ { "path": "docs/changes/utils/12454.bugfix.rst", "old_path": "/dev/null", "new_path": "b/docs/changes/utils/12454.bugfix.rst", "metadata": "diff --git a/docs/changes/utils/12454.bugfix.rst b/docs/changes/utils/12454.bugfix.rst\nnew file mode 100644\nindex 000000000000..72deee6e79a5\n--- /dev/null\n+...
5.0
f4aa0432fe0595fac2b031a762040d5609777125
[ "astropy/utils/masked/tests/test_masked.py::TestMaskedArrayMethods::test_structured_argsort[0-order2]", "astropy/utils/masked/tests/test_masked.py::TestMaskedLongitudeItems::test_setitem[None-item2]", "astropy/utils/masked/tests/test_masked.py::TestMaskedArrayItems::test_setitem_structured[False-a]", "astropy...
[ "astropy/utils/masked/tests/test_function_helpers.py::TestNaNFunctions::test_nanargmax", "astropy/utils/masked/tests/test_function_helpers.py::TestNaNFunctions::test_nancumprod", "astropy/utils/masked/tests/test_function_helpers.py::TestNaNFunctions::test_nanmedian", "astropy/utils/masked/tests/test_function_...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [ { "type": "field", "name": "nanmax" }, { "type": "field", "name": "nanmin" } ] }
[ { "path": "docs/changes/utils/<PRID>.bugfix.rst", "old_path": "/dev/null", "new_path": "b/docs/changes/utils/<PRID>.bugfix.rst", "metadata": "diff --git a/docs/changes/utils/<PRID>.bugfix.rst b/docs/changes/utils/<PRID>.bugfix.rst\nnew file mode 100644\nindex 000000000000..72deee6e79a5\n--- /dev/nul...
diff --git a/docs/changes/utils/<PRID>.bugfix.rst b/docs/changes/utils/<PRID>.bugfix.rst new file mode 100644 index 000000000000..72deee6e79a5 --- /dev/null +++ b/docs/changes/utils/<PRID>.bugfix.rst @@ -0,0 +1,2 @@ +Ensure that when taking the minimum or maximum of a ``Masked`` array, +any masked NaN values are ignore...
astropy/astropy
astropy__astropy-12305
https://github.com/astropy/astropy/pull/12305
diff --git a/astropy/utils/decorators.py b/astropy/utils/decorators.py index 320012a4bc1a..46319e99809f 100644 --- a/astropy/utils/decorators.py +++ b/astropy/utils/decorators.py @@ -282,7 +282,7 @@ def deprecated_renamed_argument(old_name, new_name, since, arg_in_kwargs=False, relax=Fa...
diff --git a/astropy/utils/tests/test_decorators.py b/astropy/utils/tests/test_decorators.py index 70600ae33ecf..45b480982625 100644 --- a/astropy/utils/tests/test_decorators.py +++ b/astropy/utils/tests/test_decorators.py @@ -317,6 +317,14 @@ def test1(overwrite): method(1, clobber=2) +def test_deprec...
[ { "path": "docs/changes/utils/12305.feature.rst", "old_path": "/dev/null", "new_path": "b/docs/changes/utils/12305.feature.rst", "metadata": "diff --git a/docs/changes/utils/12305.feature.rst b/docs/changes/utils/12305.feature.rst\nnew file mode 100644\nindex 000000000000..c945865533da\n--- /dev/nul...
5.0
afc558aa0ad8da384a56a0101a461326bcf7cbdb
[ "astropy/utils/tests/test_decorators.py::test_deprecated_argument_not_allowed_use", "astropy/utils/tests/test_decorators.py::test_deprecated_argument_in_kwargs", "astropy/utils/tests/test_decorators.py::test_format_doc_objectInput_format", "astropy/utils/tests/test_decorators.py::test_wraps", "astropy/utils...
[ "astropy/utils/tests/test_decorators.py::test_deprecated_argument_custom_message" ]
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "docs/changes/utils/<PRID>.feature.rst", "old_path": "/dev/null", "new_path": "b/docs/changes/utils/<PRID>.feature.rst", "metadata": "diff --git a/docs/changes/utils/<PRID>.feature.rst b/docs/changes/utils/<PRID>.feature.rst\nnew file mode 100644\nindex 000000000000..c945865533da\n--- /dev...
diff --git a/docs/changes/utils/<PRID>.feature.rst b/docs/changes/utils/<PRID>.feature.rst new file mode 100644 index 000000000000..c945865533da --- /dev/null +++ b/docs/changes/utils/<PRID>.feature.rst @@ -0,0 +1,2 @@ +The ``astropy.utils.deprecated_renamed_argument()`` decorator now supports +custom warning messages....
astropy/astropy
astropy__astropy-11533
https://github.com/astropy/astropy/pull/11533
diff --git a/astropy/convolution/convolve.py b/astropy/convolution/convolve.py index f317bd116aeb..97e8cf6de030 100644 --- a/astropy/convolution/convolve.py +++ b/astropy/convolution/convolve.py @@ -47,6 +47,25 @@ ctypes.c_bool, # embed_result_within_padded_region ...
diff --git a/astropy/convolution/tests/test_convolve_fft.py b/astropy/convolution/tests/test_convolve_fft.py index 70feb3ff6cc4..1364c616b6fb 100644 --- a/astropy/convolution/tests/test_convolve_fft.py +++ b/astropy/convolution/tests/test_convolve_fft.py @@ -4,7 +4,7 @@ import pytest import numpy as np -from numpy....
[ { "path": "docs/changes/convolution/11533.feature.rst", "old_path": "/dev/null", "new_path": "b/docs/changes/convolution/11533.feature.rst", "metadata": "diff --git a/docs/changes/convolution/11533.feature.rst b/docs/changes/convolution/11533.feature.rst\nnew file mode 100644\nindex 000000000000..fc...
4.3
c86202e7f8aaac97f0526bdfbab3e0dfa8c64f05
[ "astropy/convolution/tests/test_convolve_fft.py::TestConvolve1D::test_uniform_3_withnan[None-fill-False-True]", "astropy/convolution/tests/test_convolve_fft.py::TestConvolve1D::test_unity_1_none[wrap-interpolate-False]", "astropy/convolution/tests/test_convolve_fft.py::TestConvolve2D::test_uniform_3x3_withnan[f...
[ "astropy/convolution/tests/test_convolve_fft.py::TestConvolve2D::test_padding" ]
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "docs/changes/convolution/<PRID>.feature.rst", "old_path": "/dev/null", "new_path": "b/docs/changes/convolution/<PRID>.feature.rst", "metadata": "diff --git a/docs/changes/convolution/<PRID>.feature.rst b/docs/changes/convolution/<PRID>.feature.rst\nnew file mode 100644\nindex 000000000000...
diff --git a/docs/changes/convolution/<PRID>.feature.rst b/docs/changes/convolution/<PRID>.feature.rst new file mode 100644 index 000000000000..fca2b078095c --- /dev/null +++ b/docs/changes/convolution/<PRID>.feature.rst @@ -0,0 +1,4 @@ +Change padding sizes for ``fft_pad`` in ``convolve_fft`` from powers of +2 only to...
astropy/astropy
astropy__astropy-11444
https://github.com/astropy/astropy/pull/11444
diff --git a/astropy/coordinates/matrix_utilities.py b/astropy/coordinates/matrix_utilities.py index 2cdb647e0260..19ac2fb61d6b 100644 --- a/astropy/coordinates/matrix_utilities.py +++ b/astropy/coordinates/matrix_utilities.py @@ -2,7 +2,7 @@ # Licensed under a 3-clause BSD style license - see LICENSE.rst """ -This...
diff --git a/astropy/coordinates/tests/test_matrix_utilities.py b/astropy/coordinates/tests/test_matrix_utilities.py index b883c98ede71..5e355dbc7f96 100644 --- a/astropy/coordinates/tests/test_matrix_utilities.py +++ b/astropy/coordinates/tests/test_matrix_utilities.py @@ -4,7 +4,8 @@ from numpy.testing import assert...
[ { "path": "docs/changes/coordinates/11444.feature.rst", "old_path": "/dev/null", "new_path": "b/docs/changes/coordinates/11444.feature.rst", "metadata": "diff --git a/docs/changes/coordinates/11444.feature.rst b/docs/changes/coordinates/11444.feature.rst\nnew file mode 100644\nindex 000000000000..56...
4.3
3fa911b8f7b7ef4ba2f4d6abf5f7015b2ef3b47b
[ "astropy/coordinates/tests/test_representation.py::test_unit_spherical_roundtrip", "astropy/coordinates/tests/test_representation.py::TestSphericalRepresentation::test_init_subclass", "astropy/coordinates/tests/test_representation.py::TestCartesianRepresentationWithDifferential::test_init_array_broadcasting", ...
[ "astropy/coordinates/tests/test_matrix_utilities.py::test_is_rotation", "astropy/coordinates/tests/test_representation.py::TestSphericalRepresentation::test_transform", "astropy/coordinates/tests/test_representation.py::TestPhysicsSphericalRepresentation::test_transform_with_NaN", "astropy/coordinates/tests/t...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [ { "type": "field", "name": "allow_improper" }, { "type": "field", "name": "matrix_utilities" }, {...
[ { "path": "docs/changes/coordinates/<PRID>.feature.rst", "old_path": "/dev/null", "new_path": "b/docs/changes/coordinates/<PRID>.feature.rst", "metadata": "diff --git a/docs/changes/coordinates/<PRID>.feature.rst b/docs/changes/coordinates/<PRID>.feature.rst\nnew file mode 100644\nindex 000000000000...
diff --git a/docs/changes/coordinates/<PRID>.feature.rst b/docs/changes/coordinates/<PRID>.feature.rst new file mode 100644 index 000000000000..56efa47c41fb --- /dev/null +++ b/docs/changes/coordinates/<PRID>.feature.rst @@ -0,0 +1,8 @@ +All representations now have a ``transform`` method, which allows them to be +tran...
astropy/astropy
astropy__astropy-11417
https://github.com/astropy/astropy/pull/11417
diff --git a/astropy/coordinates/sky_coordinate.py b/astropy/coordinates/sky_coordinate.py index a1ae014de7c6..97c06508f2f6 100644 --- a/astropy/coordinates/sky_coordinate.py +++ b/astropy/coordinates/sky_coordinate.py @@ -1842,10 +1842,10 @@ def guess_from_table(cls, table, **coord_kwargs): in an astropy Tabl...
diff --git a/astropy/coordinates/tests/test_sky_coord.py b/astropy/coordinates/tests/test_sky_coord.py index 9f08dba7e027..6700afaea8ec 100644 --- a/astropy/coordinates/tests/test_sky_coord.py +++ b/astropy/coordinates/tests/test_sky_coord.py @@ -1270,8 +1270,8 @@ def test_guess_from_table(): tab = Table() ...
[ { "path": "docs/changes/coordinates/11417.feature.rst", "old_path": "/dev/null", "new_path": "b/docs/changes/coordinates/11417.feature.rst", "metadata": "diff --git a/docs/changes/coordinates/11417.feature.rst b/docs/changes/coordinates/11417.feature.rst\nnew file mode 100644\nindex 000000000000..fe...
4.3
0cb614144825d25fcbdcc5b17c5ca72d60fb60b9
[ "astropy/coordinates/tests/test_sky_coord.py::test_round_tripping[FK5-FK5-None-None-J1980.0-J1980.0]", "astropy/coordinates/tests/test_sky_coord.py::test_contained_by", "astropy/coordinates/tests/test_sky_coord.py::test_skycoord_three_components[cartesian-unit117-unit217-unit317-Quantity-u-v-w-cartesian-c117-c2...
[ "astropy/coordinates/tests/test_sky_coord.py::test_guess_from_table" ]
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "docs/changes/coordinates/<PRID>.feature.rst", "old_path": "/dev/null", "new_path": "b/docs/changes/coordinates/<PRID>.feature.rst", "metadata": "diff --git a/docs/changes/coordinates/<PRID>.feature.rst b/docs/changes/coordinates/<PRID>.feature.rst\nnew file mode 100644\nindex 000000000000...
diff --git a/docs/changes/coordinates/<PRID>.feature.rst b/docs/changes/coordinates/<PRID>.feature.rst new file mode 100644 index 000000000000..fe5489b23e45 --- /dev/null +++ b/docs/changes/coordinates/<PRID>.feature.rst @@ -0,0 +1,4 @@ +``SkyCoord.guess_from_table`` now also searches for differentials in the table. +I...
astropy/astropy
astropy__astropy-11635
https://github.com/astropy/astropy/pull/11635
diff --git a/astropy/coordinates/sky_coordinate.py b/astropy/coordinates/sky_coordinate.py index 67375b675ea8..99558cbd476a 100644 --- a/astropy/coordinates/sky_coordinate.py +++ b/astropy/coordinates/sky_coordinate.py @@ -1127,10 +1127,12 @@ def spherical_offsets_to(self, tocoord): Returns ------- ...
diff --git a/astropy/coordinates/tests/test_sky_coord.py b/astropy/coordinates/tests/test_sky_coord.py index f4fadf06aff1..550b11d963f6 100644 --- a/astropy/coordinates/tests/test_sky_coord.py +++ b/astropy/coordinates/tests/test_sky_coord.py @@ -1501,31 +1501,10 @@ def test_getitem_representation(): assert sc[0]....
[ { "path": "docs/changes/coordinates/11635.feature.rst", "old_path": "/dev/null", "new_path": "b/docs/changes/coordinates/11635.feature.rst", "metadata": "diff --git a/docs/changes/coordinates/11635.feature.rst b/docs/changes/coordinates/11635.feature.rst\nnew file mode 100644\nindex 000000000000..04...
4.3
32019d734d1874dc836f47e2a35c6c57123eb6b8
[ "astropy/coordinates/tests/test_sky_coord.py::test_round_tripping[FK5-FK5-None-None-J1980.0-J1980.0]", "astropy/coordinates/tests/test_sky_coord.py::test_contained_by", "astropy/coordinates/tests/test_sky_coord.py::test_skycoord_three_components[cartesian-unit117-unit217-unit317-Quantity-u-v-w-cartesian-c117-c2...
[ "astropy/coordinates/tests/test_sky_coord.py::test_spherical_offsets_roundtrip[comparison_data2-icrs]", "astropy/coordinates/tests/test_sky_coord.py::test_spherical_offsets_roundtrip[comparison_data1-icrs]", "astropy/coordinates/tests/test_sky_coord.py::test_spherical_offsets_roundtrip[comparison_data1-galactic...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "docs/changes/coordinates/<PRID>.feature.rst", "old_path": "/dev/null", "new_path": "b/docs/changes/coordinates/<PRID>.feature.rst", "metadata": "diff --git a/docs/changes/coordinates/<PRID>.feature.rst b/docs/changes/coordinates/<PRID>.feature.rst\nnew file mode 100644\nindex 000000000000...
diff --git a/docs/changes/coordinates/<PRID>.feature.rst b/docs/changes/coordinates/<PRID>.feature.rst new file mode 100644 index 000000000000..0459c5f7a689 --- /dev/null +++ b/docs/changes/coordinates/<PRID>.feature.rst @@ -0,0 +1,4 @@ +Added a new method to ``SkyCoord``, ``spherical_offsets_by()``, which is the +conc...
astropy/astropy
astropy__astropy-11256
https://github.com/astropy/astropy/pull/11256
diff --git a/astropy/io/ascii/__init__.py b/astropy/io/ascii/__init__.py index e10998ac1222..9e1b79a196e0 100644 --- a/astropy/io/ascii/__init__.py +++ b/astropy/io/ascii/__init__.py @@ -35,6 +35,7 @@ from .html import HTML from .ipac import Ipac from .daophot import Daophot +from .qdp import QDP from .sextractor i...
diff --git a/astropy/io/ascii/tests/test_qdp.py b/astropy/io/ascii/tests/test_qdp.py new file mode 100644 index 000000000000..8e6b559dfb5a --- /dev/null +++ b/astropy/io/ascii/tests/test_qdp.py @@ -0,0 +1,235 @@ +import numpy as np +import pytest +from astropy.io import ascii +from astropy.io.ascii.qdp import _read_tab...
[ { "path": "docs/changes/io.ascii/11256.feature.rst", "old_path": "/dev/null", "new_path": "b/docs/changes/io.ascii/11256.feature.rst", "metadata": "diff --git a/docs/changes/io.ascii/11256.feature.rst b/docs/changes/io.ascii/11256.feature.rst\nnew file mode 100644\nindex 000000000000..3e22b9190ceb\n...
4.3
80171baf575d86ae2a7e117842030707c336956b
[ "astropy/io/ascii/tests/test_write.py::test_names_with_formats[names2-include_names2-exclude_names2-formats2-True]", "astropy/io/ascii/tests/test_write.py::test_strip_names[True]", "astropy/io/ascii/tests/test_write.py::test_write_overwrite_ascii[False-ascii]", "astropy/io/ascii/tests/test_write.py::test_roun...
[ "astropy/io/ascii/tests/test_qdp.py::test_roundtrip", "astropy/io/ascii/tests/test_qdp.py::test_read_example", "astropy/io/ascii/tests/test_write.py::test_roundtrip_masked[fmt_name_class30]", "astropy/io/ascii/tests/test_qdp.py::test_get_tables_from_qdp_file", "astropy/io/ascii/tests/test_qdp.py::test_read_...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [ { "type": "function", "name": "_get_lines_from_file" }, { "type": "field", "name": "val" }, { ...
[ { "path": "docs/changes/io.ascii/<PRID>.feature.rst", "old_path": "/dev/null", "new_path": "b/docs/changes/io.ascii/<PRID>.feature.rst", "metadata": "diff --git a/docs/changes/io.ascii/<PRID>.feature.rst b/docs/changes/io.ascii/<PRID>.feature.rst\nnew file mode 100644\nindex 000000000000..3e22b9190c...
diff --git a/docs/changes/io.ascii/<PRID>.feature.rst b/docs/changes/io.ascii/<PRID>.feature.rst new file mode 100644 index 000000000000..3e22b9190ceb --- /dev/null +++ b/docs/changes/io.ascii/<PRID>.feature.rst @@ -0,0 +1,2 @@ +Added support for reading and writing ASCII tables in QDP (Quick and Dandy Plotter) format....
astropy/astropy
astropy__astropy-11643
https://github.com/astropy/astropy/pull/11643
diff --git a/astropy/io/votable/connect.py b/astropy/io/votable/connect.py index 7aa99f765d3e..0e93b381f95d 100644 --- a/astropy/io/votable/connect.py +++ b/astropy/io/votable/connect.py @@ -44,7 +44,8 @@ def is_votable(origin, filepath, fileobj, *args, **kwargs): return False -def read_table_votable(input...
diff --git a/astropy/io/votable/tests/table_test.py b/astropy/io/votable/tests/table_test.py index d3d1c41b95c5..262b0717deee 100644 --- a/astropy/io/votable/tests/table_test.py +++ b/astropy/io/votable/tests/table_test.py @@ -14,6 +14,8 @@ from astropy.io.votable.table import parse, writeto from astropy.io.votable i...
[ { "path": "docs/changes/io.votable/11643.feature.rst", "old_path": "/dev/null", "new_path": "b/docs/changes/io.votable/11643.feature.rst", "metadata": "diff --git a/docs/changes/io.votable/11643.feature.rst b/docs/changes/io.votable/11643.feature.rst\nnew file mode 100644\nindex 000000000000..0a4ffc...
4.3
8df6dcfbfe9081074c418b6955e060d37e87ee9b
[ "astropy/io/votable/tests/table_test.py::TestVerifyOptions::test_verify_exception", "astropy/io/votable/tests/table_test.py::test_write_with_format", "astropy/io/votable/tests/table_test.py::TestVerifyOptions::test_conf_pedantic_true", "astropy/io/votable/tests/table_test.py::TestVerifyOptions::test_conf_peda...
[ "astropy/io/votable/tests/table_test.py::test_pass_kwargs_through_table_interface" ]
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "docs/changes/io.votable/<PRID>.feature.rst", "old_path": "/dev/null", "new_path": "b/docs/changes/io.votable/<PRID>.feature.rst", "metadata": "diff --git a/docs/changes/io.votable/<PRID>.feature.rst b/docs/changes/io.votable/<PRID>.feature.rst\nnew file mode 100644\nindex 000000000000..0a...
diff --git a/docs/changes/io.votable/<PRID>.feature.rst b/docs/changes/io.votable/<PRID>.feature.rst new file mode 100644 index 000000000000..0a4ffc6283bb --- /dev/null +++ b/docs/changes/io.votable/<PRID>.feature.rst @@ -0,0 +1,4 @@ +When reading VOTables using the Unified File Read/Write Interface (i.e. using +the ``...
astropy/astropy
astropy__astropy-11456
https://github.com/astropy/astropy/pull/11456
diff --git a/astropy/convolution/__init__.py b/astropy/convolution/__init__.py index 51719f219a61..5bc70e661a64 100644 --- a/astropy/convolution/__init__.py +++ b/astropy/convolution/__init__.py @@ -5,7 +5,7 @@ from .kernels import * # noqa from .utils import discretize_model # noqa -from .convolve import convolv...
diff --git a/astropy/modeling/tests/test_convolution.py b/astropy/modeling/tests/test_convolution.py new file mode 100644 index 000000000000..71ea7e5e5551 --- /dev/null +++ b/astropy/modeling/tests/test_convolution.py @@ -0,0 +1,70 @@ +# Licensed under a 3-clause BSD style license - see LICENSE.rst +# pylint: disable=i...
[ { "path": "docs/changes/modeling/11456.feature.rst", "old_path": "/dev/null", "new_path": "b/docs/changes/modeling/11456.feature.rst", "metadata": "diff --git a/docs/changes/modeling/11456.feature.rst b/docs/changes/modeling/11456.feature.rst\nnew file mode 100644\nindex 000000000000..82e9306befd5\n...
4.3
80171baf575d86ae2a7e117842030707c336956b
[]
[ "astropy/modeling/tests/test_convolution.py::test_input_shape_1d", "astropy/modeling/tests/test_convolution.py::test_input_shape_2d", "astropy/modeling/tests/test_convolution.py::test_clear_cache" ]
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [ { "type": "function", "name": "clear_cache" }, { "type": "file", "name": "astropy/modeling/convolution.py...
[ { "path": "docs/changes/modeling/<PRID>.feature.rst", "old_path": "/dev/null", "new_path": "b/docs/changes/modeling/<PRID>.feature.rst", "metadata": "diff --git a/docs/changes/modeling/<PRID>.feature.rst b/docs/changes/modeling/<PRID>.feature.rst\nnew file mode 100644\nindex 000000000000..82e9306bef...
diff --git a/docs/changes/modeling/<PRID>.feature.rst b/docs/changes/modeling/<PRID>.feature.rst new file mode 100644 index 000000000000..82e9306befd5 --- /dev/null +++ b/docs/changes/modeling/<PRID>.feature.rst @@ -0,0 +1,1 @@ +The ``convolve_models_fft`` function implements model convolution so that one insures that ...
astropy/astropy
astropy__astropy-11553
https://github.com/astropy/astropy/pull/11553
diff --git a/astropy/nddata/nddata.py b/astropy/nddata/nddata.py index 2b5b74e09fc8..b8bb5a6f8bde 100644 --- a/astropy/nddata/nddata.py +++ b/astropy/nddata/nddata.py @@ -234,12 +234,17 @@ def __init__(self, data, uncertainty=None, mask=None, wcs=None, self.uncertainty = uncertainty def __str__(self): -...
diff --git a/astropy/nddata/tests/test_nddata.py b/astropy/nddata/tests/test_nddata.py index 954317e211f7..2bb468b4b96a 100644 --- a/astropy/nddata/tests/test_nddata.py +++ b/astropy/nddata/tests/test_nddata.py @@ -422,23 +422,53 @@ def test_nddata_str(): [[5 6] [7 8]]]"""[1:]) + # let's add u...
[ { "path": "docs/changes/nddata/11553.other.rst", "old_path": "/dev/null", "new_path": "b/docs/changes/nddata/11553.other.rst", "metadata": "diff --git a/docs/changes/nddata/11553.other.rst b/docs/changes/nddata/11553.other.rst\nnew file mode 100644\nindex 000000000000..333903057d30\n--- /dev/null\n+...
4.3
567727bb2063aa52f2aa5d4e5e3527a90822a8db
[ "astropy/nddata/tests/test_nddata.py::test_nddata_init_data_ndarray", "astropy/nddata/tests/test_nddata.py::test_nddata_init_data_fail", "astropy/nddata/tests/test_nddata.py::TestMetaNDData::test_non_mapping_set[ceci n'est pas un meta]", "astropy/nddata/tests/test_nddata.py::TestMetaNDData::test_mapping_init[...
[ "astropy/nddata/tests/test_nddata.py::test_nddata_str", "astropy/nddata/tests/test_nddata.py::test_nddata_repr" ]
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "docs/changes/nddata/<PRID>.other.rst", "old_path": "/dev/null", "new_path": "b/docs/changes/nddata/<PRID>.other.rst", "metadata": "diff --git a/docs/changes/nddata/<PRID>.other.rst b/docs/changes/nddata/<PRID>.other.rst\nnew file mode 100644\nindex 000000000000..333903057d30\n--- /dev/nul...
diff --git a/docs/changes/nddata/<PRID>.other.rst b/docs/changes/nddata/<PRID>.other.rst new file mode 100644 index 000000000000..333903057d30 --- /dev/null +++ b/docs/changes/nddata/<PRID>.other.rst @@ -0,0 +1,1 @@ +NDData str representations now show units, if present. diff --git a/docs/nddata/index.rst b/docs/nddat...
astropy/astropy
astropy__astropy-11219
https://github.com/astropy/astropy/pull/11219
diff --git a/astropy/stats/setup_package.py b/astropy/stats/setup_package.py new file mode 100644 index 000000000000..b15dd1836b31 --- /dev/null +++ b/astropy/stats/setup_package.py @@ -0,0 +1,20 @@ +# Licensed under a 3-clause BSD style license - see LICENSE.rst + +import os +from setuptools import Extension + +import...
diff --git a/astropy/stats/tests/test_sigma_clipping.py b/astropy/stats/tests/test_sigma_clipping.py index ce707384ee8f..af2b8deb3e53 100644 --- a/astropy/stats/tests/test_sigma_clipping.py +++ b/astropy/stats/tests/test_sigma_clipping.py @@ -266,16 +266,14 @@ def test_sigma_clip_axis_tuple_3D(): def test_sigmaclip_re...
[ { "path": "docs/changes/stats/11219.bugfix.rst", "old_path": "/dev/null", "new_path": "b/docs/changes/stats/11219.bugfix.rst", "metadata": "diff --git a/docs/changes/stats/11219.bugfix.rst b/docs/changes/stats/11219.bugfix.rst\nnew file mode 100644\nindex 000000000000..b9932d701041\n--- /dev/null\n+...
4.3
071d341f3ec4070c612f11099b8327d63156e9f9
[ "astropy/stats/tests/test_sigma_clipping.py::test_sigma_clip_dtypes[>f4]", "astropy/stats/tests/test_sigma_clipping.py::test_sigma_clip", "astropy/stats/tests/test_sigma_clipping.py::test_sigma_clippped_stats_all_masked", "astropy/stats/tests/test_sigma_clipping.py::test_sigmaclip_fully_masked", "astropy/st...
[ "astropy/stats/tests/test_sigma_clipping.py::test_sigma_clip_axis_shapes[axis6-bounds_shape6]", "astropy/stats/tests/test_sigma_clipping.py::test_sigma_clip_dtypes[<f2]", "astropy/stats/tests/test_sigma_clipping.py::test_sigma_clip_axis_shapes[1-bounds_shape2]", "astropy/stats/tests/test_sigma_clipping.py::te...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [ { "type": "file", "name": "astropy/stats/setup_package.py" } ] }
[ { "path": "docs/changes/stats/<PRID>.bugfix.rst", "old_path": "/dev/null", "new_path": "b/docs/changes/stats/<PRID>.bugfix.rst", "metadata": "diff --git a/docs/changes/stats/<PRID>.bugfix.rst b/docs/changes/stats/<PRID>.bugfix.rst\nnew file mode 100644\nindex 000000000000..b9932d701041\n--- /dev/nul...
diff --git a/docs/changes/stats/<PRID>.bugfix.rst b/docs/changes/stats/<PRID>.bugfix.rst new file mode 100644 index 000000000000..b9932d701041 --- /dev/null +++ b/docs/changes/stats/<PRID>.bugfix.rst @@ -0,0 +1,3 @@ +Fixed a bug with the ``copy=False`` option when carrying out sigma +clipping - previously if ``masked=F...
astropy/astropy
astropy__astropy-11664
https://github.com/astropy/astropy/pull/11664
diff --git a/astropy/stats/sigma_clipping.py b/astropy/stats/sigma_clipping.py index 1e19b8695b8b..dac615f03c68 100644 --- a/astropy/stats/sigma_clipping.py +++ b/astropy/stats/sigma_clipping.py @@ -9,6 +9,7 @@ from astropy.utils import isiterable from astropy.utils.exceptions import AstropyUserWarning from astropy....
diff --git a/astropy/stats/tests/test_sigma_clipping.py b/astropy/stats/tests/test_sigma_clipping.py index f8b31a517d1d..95ddcf36fa4a 100644 --- a/astropy/stats/tests/test_sigma_clipping.py +++ b/astropy/stats/tests/test_sigma_clipping.py @@ -5,6 +5,7 @@ from numpy.testing import assert_equal, assert_allclose from ...
[ { "path": "docs/changes/stats/11664.feature.rst", "old_path": "/dev/null", "new_path": "b/docs/changes/stats/11664.feature.rst", "metadata": "diff --git a/docs/changes/stats/11664.feature.rst b/docs/changes/stats/11664.feature.rst\nnew file mode 100644\nindex 000000000000..2c4a0faa5099\n--- /dev/nul...
4.3
dfa48c3d9b6ea3988754067b7ee4678b0e7348c9
[ "astropy/stats/tests/test_sigma_clipping.py::test_sigma_clip_dtypes[>f4]", "astropy/stats/tests/test_sigma_clipping.py::test_sigma_clip_axis_shapes[-1-bounds_shape2]", "astropy/stats/tests/test_sigma_clipping.py::test_sigma_clip", "astropy/stats/tests/test_sigma_clipping.py::test_sigma_clippped_stats_all_mask...
[ "astropy/stats/tests/test_sigma_clipping.py::test_mad_std_large", "astropy/stats/tests/test_sigma_clipping.py::test_mad_std" ]
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [ { "type": "field", "name": "ignore_nan" } ] }
[ { "path": "docs/changes/stats/<PRID>.feature.rst", "old_path": "/dev/null", "new_path": "b/docs/changes/stats/<PRID>.feature.rst", "metadata": "diff --git a/docs/changes/stats/<PRID>.feature.rst b/docs/changes/stats/<PRID>.feature.rst\nnew file mode 100644\nindex 000000000000..2c4a0faa5099\n--- /dev...
diff --git a/docs/changes/stats/<PRID>.feature.rst b/docs/changes/stats/<PRID>.feature.rst new file mode 100644 index 000000000000..2c4a0faa5099 --- /dev/null +++ b/docs/changes/stats/<PRID>.feature.rst @@ -0,0 +1,3 @@ +Added the ability to specify stdfunc='mad_std' when doing sigma clipping, +which will use a built-in...
astropy/astropy
astropy__astropy-11032
https://github.com/astropy/astropy/pull/11032
diff --git a/CHANGES.rst b/CHANGES.rst index 5d4b3f521f2a..73b1e351124c 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -38,6 +38,8 @@ astropy.io.misc astropy.io.votable ^^^^^^^^^^^^^^^^^^ +- Version 1.4 VOTables now use the VOUnit format specification. [#11032] + astropy.modeling ^^^^^^^^^^^^^^^^ diff --git a/as...
diff --git a/astropy/io/votable/tests/tree_test.py b/astropy/io/votable/tests/tree_test.py index b4d48adaad67..9cc750539685 100644 --- a/astropy/io/votable/tests/tree_test.py +++ b/astropy/io/votable/tests/tree_test.py @@ -2,7 +2,9 @@ from astropy.io.votable import exceptions from astropy.io.votable import tree +fr...
[ { "path": "CHANGES.rst", "old_path": "a/CHANGES.rst", "new_path": "b/CHANGES.rst", "metadata": "diff --git a/CHANGES.rst b/CHANGES.rst\nindex 5d4b3f521f2a..73b1e351124c 100644\n--- a/CHANGES.rst\n+++ b/CHANGES.rst\n@@ -38,6 +38,8 @@ astropy.io.misc\n astropy.io.votable\n ^^^^^^^^^^^^^^^^^^\n \n+- Ve...
4.3
3627a7473e7c73f2e46e74157eaa4f078ccb8574
[ "astropy/io/votable/tests/tree_test.py::test_string_fail", "astropy/io/votable/tests/tree_test.py::test_check_astroyear_fail", "astropy/io/votable/tests/tree_test.py::test_make_Fields" ]
[ "astropy/io/votable/tests/tree_test.py::test_unit_format" ]
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "CHANGES.rst", "old_path": "a/CHANGES.rst", "new_path": "b/CHANGES.rst", "metadata": "diff --git a/CHANGES.rst b/CHANGES.rst\nindex 5d4b3f521f2a..73b1e351124c 100644\n--- a/CHANGES.rst\n+++ b/CHANGES.rst\n@@ -38,6 +38,8 @@ astropy.io.misc\n astropy.io.votable\n ^^^^^^^^^^^^^^^^^^\n \n+- Ve...
diff --git a/CHANGES.rst b/CHANGES.rst index 5d4b3f521f2a..73b1e351124c 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -38,6 +38,8 @@ astropy.io.misc astropy.io.votable ^^^^^^^^^^^^^^^^^^ +- Version 1.4 VOTables now use the VOUnit format specification. [#<PRID>] + astropy.modeling ^^^^^^^^^^^^^^^^ diff --git a/...
astropy/astropy
astropy__astropy-11628
https://github.com/astropy/astropy/pull/11628
diff --git a/astropy/coordinates/__init__.py b/astropy/coordinates/__init__.py index fa63c1455550..ab945f50a1ce 100644 --- a/astropy/coordinates/__init__.py +++ b/astropy/coordinates/__init__.py @@ -23,3 +23,4 @@ from .solar_system import * from .spectral_quantity import * from .spectral_coordinate import * +from .a...
diff --git a/astropy/coordinates/tests/test_angle_generators.py b/astropy/coordinates/tests/test_angle_generators.py new file mode 100644 index 000000000000..d9259508acb5 --- /dev/null +++ b/astropy/coordinates/tests/test_angle_generators.py @@ -0,0 +1,37 @@ +"""Unit tests for the astropy.coordinates.angle_utilities mo...
[ { "path": "docs/changes/coordinates/11628.feature.rst", "old_path": "/dev/null", "new_path": "b/docs/changes/coordinates/11628.feature.rst", "metadata": "diff --git a/docs/changes/coordinates/11628.feature.rst b/docs/changes/coordinates/11628.feature.rst\nnew file mode 100644\nindex 000000000000..c8...
4.3
32c2dcb3a9a6513e8f461d2933b61d728b9d7781
[ "astropy/coordinates/tests/test_angles.py::test_angle_wrap_at_nan", "astropy/coordinates/tests/test_angles.py::test_repr_latex", "astropy/coordinates/tests/test_erfa_astrom.py::test_warnings", "astropy/coordinates/tests/test_angles.py::test_angle_string", "astropy/coordinates/tests/test_angles.py::test_wrap...
[ "astropy/coordinates/tests/test_intermediate_transformations.py::test_gcrs_altaz_bothroutes[testframe4]", "astropy/coordinates/tests/test_iau_fullstack.py::test_iau_fullstack[J2000.1-fullstack_locations3-fullstack_obsconditions1]", "astropy/coordinates/tests/test_arrays.py::test_array_precession", "astropy/co...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [ { "type": "field", "name": "usph" }, { "type": "field", "name": "deg" }, { "type": "field",...
[ { "path": "docs/changes/coordinates/<PRID>.feature.rst", "old_path": "/dev/null", "new_path": "b/docs/changes/coordinates/<PRID>.feature.rst", "metadata": "diff --git a/docs/changes/coordinates/<PRID>.feature.rst b/docs/changes/coordinates/<PRID>.feature.rst\nnew file mode 100644\nindex 000000000000...
diff --git a/docs/changes/coordinates/<PRID>.feature.rst b/docs/changes/coordinates/<PRID>.feature.rst new file mode 100644 index 000000000000..c8b7e6d86ed6 --- /dev/null +++ b/docs/changes/coordinates/<PRID>.feature.rst @@ -0,0 +1,4 @@ +Moved angle formatting and parsing utilities to +``astropy.coordinates.angle_forma...
astropy/astropy
astropy__astropy-11463
https://github.com/astropy/astropy/pull/11463
diff --git a/astropy/timeseries/binned.py b/astropy/timeseries/binned.py index 30e7618a52b7..8b0f6cafd14b 100644 --- a/astropy/timeseries/binned.py +++ b/astropy/timeseries/binned.py @@ -119,6 +119,11 @@ def __init__(self, data=None, *, time_bin_start=None, time_bin_end=None, if isinstance(time_bin_size, TimeD...
diff --git a/astropy/timeseries/tests/test_binned.py b/astropy/timeseries/tests/test_binned.py index 74633127d967..9ddeb4bc3c9a 100644 --- a/astropy/timeseries/tests/test_binned.py +++ b/astropy/timeseries/tests/test_binned.py @@ -89,6 +89,19 @@ def test_initialization_time_bin_start_scalar(): assert exc.value.arg...
[ { "path": "docs/changes/timeseries/11463.feature.rst", "old_path": "/dev/null", "new_path": "b/docs/changes/timeseries/11463.feature.rst", "metadata": "diff --git a/docs/changes/timeseries/11463.feature.rst b/docs/changes/timeseries/11463.feature.rst\nnew file mode 100644\nindex 000000000000..8585f9...
4.3
9d13108eae9c8a16990db36adacebf556fca3fb5
[ "astropy/timeseries/tests/test_binned.py::test_uneven_contiguous", "astropy/timeseries/tests/test_binned.py::test_read_no_size_end", "astropy/timeseries/tests/test_binned.py::test_periodogram[LombScargle]", "astropy/timeseries/tests/test_binned.py::test_uneven_non_contiguous_full", "astropy/timeseries/tests...
[ "astropy/timeseries/tests/test_binned.py::test_initialization_n_bins_invalid_arguments" ]
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "docs/changes/timeseries/<PRID>.feature.rst", "old_path": "/dev/null", "new_path": "b/docs/changes/timeseries/<PRID>.feature.rst", "metadata": "diff --git a/docs/changes/timeseries/<PRID>.feature.rst b/docs/changes/timeseries/<PRID>.feature.rst\nnew file mode 100644\nindex 000000000000..85...
diff --git a/docs/changes/timeseries/<PRID>.feature.rst b/docs/changes/timeseries/<PRID>.feature.rst new file mode 100644 index 000000000000..8585f9b882c7 --- /dev/null +++ b/docs/changes/timeseries/<PRID>.feature.rst @@ -0,0 +1,3 @@ +An exception is raised when ``n_bins`` is passed as an argument while +any of the pa...
astropy/astropy
astropy__astropy-11258
https://github.com/astropy/astropy/pull/11258
diff --git a/astropy/units/core.py b/astropy/units/core.py index 929edb7f33a8..e94a0298cf98 100644 --- a/astropy/units/core.py +++ b/astropy/units/core.py @@ -26,7 +26,9 @@ 'PrefixUnit', 'UnrecognizedUnit', 'def_unit', 'get_current_unit_registry', 'set_enabled_units', 'add_enabled_units', 'set_enabled_eq...
diff --git a/astropy/io/fits/tests/test_connect.py b/astropy/io/fits/tests/test_connect.py index 99c366b5d603..7cfbc7528f79 100644 --- a/astropy/io/fits/tests/test_connect.py +++ b/astropy/io/fits/tests/test_connect.py @@ -140,6 +140,22 @@ def test_with_custom_units_qtable(self, tmpdir): with pytest.warns(...
[ { "path": "docs/changes/units/11258.feature.rst", "old_path": "/dev/null", "new_path": "b/docs/changes/units/11258.feature.rst", "metadata": "diff --git a/docs/changes/units/11258.feature.rst b/docs/changes/units/11258.feature.rst\nnew file mode 100644\nindex 000000000000..1920602a7201\n--- /dev/nul...
4.3
348ddc4d6b55b6c0e5c05e058ba5ab7dd12260b0
[ "astropy/io/fits/tests/test_connect.py::TestMultipleHDU::test_read_from_hdulist_with_hdu_missing[]", "astropy/io/fits/tests/test_connect.py::test_fortran_to_python_format[L8-{:>8}]", "astropy/io/fits/tests/test_connect.py::TestSingleTable::test_mask_nans_on_read", "astropy/io/fits/tests/test_connect.py::TestM...
[ "astropy/units/tests/test_aliases.py::TestAliases::test_cannot_alias_existing_alias_to_another_unit", "astropy/units/tests/test_aliases.py::TestAliases::test_set_enabled_aliases_context_manager[aliases2-ergs/(s cm**2 Angstroms)-unit2-ogip]", "astropy/units/tests/test_aliases.py::TestAliases::test_set_enabled_al...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [ { "type": "field", "name": "get_current_unit_registry" } ] }
[ { "path": "docs/changes/units/<PRID>.feature.rst", "old_path": "/dev/null", "new_path": "b/docs/changes/units/<PRID>.feature.rst", "metadata": "diff --git a/docs/changes/units/<PRID>.feature.rst b/docs/changes/units/<PRID>.feature.rst\nnew file mode 100644\nindex 000000000000..1920602a7201\n--- /dev...
diff --git a/docs/changes/units/<PRID>.feature.rst b/docs/changes/units/<PRID>.feature.rst new file mode 100644 index 000000000000..1920602a7201 --- /dev/null +++ b/docs/changes/units/<PRID>.feature.rst @@ -0,0 +1,2 @@ +It is now possible to define aliases for units using ``astropy.units.set_enabled_aliases``. +This ca...
astropy/astropy
astropy__astropy-11190
https://github.com/astropy/astropy/pull/11190
diff --git a/CHANGES.rst b/CHANGES.rst index e3ce03ba5bf6..f16143519710 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -64,6 +64,10 @@ astropy.stats astropy.table ^^^^^^^^^^^^^ +- Add table attributes to include or exclude columns from the output when + printing a table. This functionality includes a context manage...
diff --git a/astropy/table/tests/test_pprint.py b/astropy/table/tests/test_pprint.py index 431c917a0d61..87c3fbbaf165 100644 --- a/astropy/table/tests/test_pprint.py +++ b/astropy/table/tests/test_pprint.py @@ -4,8 +4,10 @@ import pytest import numpy as np +from io import StringIO from astropy import table +from...
[ { "path": "CHANGES.rst", "old_path": "a/CHANGES.rst", "new_path": "b/CHANGES.rst", "metadata": "diff --git a/CHANGES.rst b/CHANGES.rst\nindex e3ce03ba5bf6..f16143519710 100644\n--- a/CHANGES.rst\n+++ b/CHANGES.rst\n@@ -64,6 +64,10 @@ astropy.stats\n astropy.table\n ^^^^^^^^^^^^^\n \n+- Add table att...
4.3
365301c682854d0a1211b0773b104d40b592041f
[ "astropy/table/tests/test_table.py::TestConvertNumpyArray::test_byteswap_fits_array[subclass]", "astropy/table/tests/test_table.py::TestRemove::test_delitem_row_list[masked-idx1]", "astropy/table/tests/test_table.py::TestEmptyData::test_5[unmasked]", "astropy/table/tests/test_table.py::TestConvertNumpyArray::...
[ "astropy/table/tests/test_pprint.py::TestColumnsShowHide::test_rename[pprint_exclude_names]", "astropy/table/tests/test_pprint.py::TestColumnsShowHide::test_setting[value1-pprint_exclude_names]", "astropy/table/tests/test_pprint.py::TestColumnsShowHide::test_basic[pprint_include_names]", "astropy/table/tests/...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "CHANGES.rst", "old_path": "a/CHANGES.rst", "new_path": "b/CHANGES.rst", "metadata": "diff --git a/CHANGES.rst b/CHANGES.rst\nindex e3ce03ba5bf6..f16143519710 100644\n--- a/CHANGES.rst\n+++ b/CHANGES.rst\n@@ -64,6 +64,10 @@ astropy.stats\n astropy.table\n ^^^^^^^^^^^^^\n \n+- Add table att...
diff --git a/CHANGES.rst b/CHANGES.rst index e3ce03ba5bf6..f16143519710 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -64,6 +64,10 @@ astropy.stats astropy.table ^^^^^^^^^^^^^ +- Add table attributes to include or exclude columns from the output when + printing a table. This functionality includes a context manage...
astropy/astropy
astropy__astropy-10434
https://github.com/astropy/astropy/pull/10434
diff --git a/astropy/utils/data.py b/astropy/utils/data.py index a66f7c35d546..27092b444e26 100644 --- a/astropy/utils/data.py +++ b/astropy/utils/data.py @@ -6,12 +6,14 @@ import contextlib import errno import fnmatch +import functools import hashlib import os import io import re import shutil import socket +...
diff --git a/astropy/utils/tests/test_data.py b/astropy/utils/tests/test_data.py index ed5e5a758b27..5631dd27644f 100644 --- a/astropy/utils/tests/test_data.py +++ b/astropy/utils/tests/test_data.py @@ -29,6 +29,7 @@ from astropy import units as _u # u is taken from astropy.config import paths import astropy.utils....
[ { "path": "docs/changes/utils/10434.feature.rst", "old_path": "/dev/null", "new_path": "b/docs/changes/utils/10434.feature.rst", "metadata": "diff --git a/docs/changes/utils/10434.feature.rst b/docs/changes/utils/10434.feature.rst\nnew file mode 100644\nindex 000000000000..39cd960a4bf8\n--- /dev/nul...
4.3
5f8866e41164293e463a3cc53fadb5566ba488cc
[ "astropy/utils/tests/test_data.py::test_get_invalid[None]", "astropy/utils/tests/test_data.py::test_download_parallel_with_empty_sources", "astropy/utils/tests/test_data.py::test_update_parallel", "astropy/utils/tests/test_data.py::test_download_file_schedules_deletion", "astropy/utils/tests/test_data.py::t...
[ "astropy/utils/tests/test_data.py::test_download_file_wrong_size" ]
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "docs/changes/utils/<PRID>.feature.rst", "old_path": "/dev/null", "new_path": "b/docs/changes/utils/<PRID>.feature.rst", "metadata": "diff --git a/docs/changes/utils/<PRID>.feature.rst b/docs/changes/utils/<PRID>.feature.rst\nnew file mode 100644\nindex 000000000000..39cd960a4bf8\n--- /dev...
diff --git a/docs/changes/utils/<PRID>.feature.rst b/docs/changes/utils/<PRID>.feature.rst new file mode 100644 index 000000000000..39cd960a4bf8 --- /dev/null +++ b/docs/changes/utils/<PRID>.feature.rst @@ -0,0 +1,3 @@ +Added ``ssl_context`` and ``allow_insecure`` options to ``download_file``, +as well as the ability t...
astropy/astropy
astropy__astropy-11638
https://github.com/astropy/astropy/pull/11638
diff --git a/astropy/time/core.py b/astropy/time/core.py index 0cc559ccce14..44deaf7e175f 100644 --- a/astropy/time/core.py +++ b/astropy/time/core.py @@ -545,6 +545,11 @@ def _set_scale(self, scale): raise ValueError("Scale {!r} is not in the allowed scales {}" .format(scale,...
diff --git a/astropy/timeseries/tests/test_downsample.py b/astropy/timeseries/tests/test_downsample.py index 067561b774e2..36b5e644f3cf 100644 --- a/astropy/timeseries/tests/test_downsample.py +++ b/astropy/timeseries/tests/test_downsample.py @@ -12,8 +12,6 @@ INPUT_TIME = Time(['2016-03-22T12:30:31', '2016-03-22T12...
[ { "path": "docs/changes/utils/11638.feature.rst", "old_path": "/dev/null", "new_path": "b/docs/changes/utils/11638.feature.rst", "metadata": "diff --git a/docs/changes/utils/11638.feature.rst b/docs/changes/utils/11638.feature.rst\nnew file mode 100644\nindex 000000000000..656f0b38f95b\n--- /dev/nul...
4.3
dfa48c3d9b6ea3988754067b7ee4678b0e7348c9
[]
[ "astropy/timeseries/tests/test_downsample.py::test_timeseries_invalid", "astropy/timeseries/tests/test_downsample.py::test_reduceat" ]
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "docs/changes/utils/<PRID>.feature.rst", "old_path": "/dev/null", "new_path": "b/docs/changes/utils/<PRID>.feature.rst", "metadata": "diff --git a/docs/changes/utils/<PRID>.feature.rst b/docs/changes/utils/<PRID>.feature.rst\nnew file mode 100644\nindex 000000000000..656f0b38f95b\n--- /dev...
diff --git a/docs/changes/utils/<PRID>.feature.rst b/docs/changes/utils/<PRID>.feature.rst new file mode 100644 index 000000000000..656f0b38f95b --- /dev/null +++ b/docs/changes/utils/<PRID>.feature.rst @@ -0,0 +1,8 @@ +Change the Time and IERS leap second handling so that the leap second table is +updated only when a ...
astropy/astropy
astropy__astropy-11227
https://github.com/astropy/astropy/pull/11227
diff --git a/CHANGES.rst b/CHANGES.rst index a742d238907e..d6ba45ade454 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -101,6 +101,8 @@ astropy.utils function ``_find_pkg_data_path``) for obtaining file paths without checking if the file/directory exists, as long as the package and module do. [#11006] +- Add new...
diff --git a/astropy/utils/tests/test_parsing.py b/astropy/utils/tests/test_parsing.py new file mode 100644 index 000000000000..f5be010718e0 --- /dev/null +++ b/astropy/utils/tests/test_parsing.py @@ -0,0 +1,69 @@ +# Licensed under a 3-clause BSD style license - see LICENSE.rst + +import importlib +import secrets +impo...
[ { "path": "CHANGES.rst", "old_path": "a/CHANGES.rst", "new_path": "b/CHANGES.rst", "metadata": "diff --git a/CHANGES.rst b/CHANGES.rst\nindex a742d238907e..d6ba45ade454 100644\n--- a/CHANGES.rst\n+++ b/CHANGES.rst\n@@ -101,6 +101,8 @@ astropy.utils\n function ``_find_pkg_data_path``) for obtaining...
4.3
4b242e6f5465410aa575f844e1a0b81db4534c94
[]
[ "astropy/utils/tests/test_parsing.py::test_generate_parser" ]
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [ { "type": "function", "name": "parse" }, { "type": "field", "name": "format" }, { "type": "...
[ { "path": "CHANGES.rst", "old_path": "a/CHANGES.rst", "new_path": "b/CHANGES.rst", "metadata": "diff --git a/CHANGES.rst b/CHANGES.rst\nindex a742d238907e..d6ba45ade454 100644\n--- a/CHANGES.rst\n+++ b/CHANGES.rst\n@@ -101,6 +101,8 @@ astropy.utils\n function ``_find_pkg_data_path``) for obtaining...
diff --git a/CHANGES.rst b/CHANGES.rst index a742d238907e..d6ba45ade454 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -101,6 +101,8 @@ astropy.utils function ``_find_pkg_data_path``) for obtaining file paths without checking if the file/directory exists, as long as the package and module do. [#<PRID>] +- Add ne...
astropy/astropy
astropy__astropy-10360
https://github.com/astropy/astropy/pull/10360
diff --git a/CHANGES.rst b/CHANGES.rst index 02c65db2ebbf..b81b6300e46a 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -101,6 +101,11 @@ astropy.time object in a format like ``unix`` or ``cxcsec`` (time delta from a reference epoch time). [#10406] +- Improve initialization time by a factor of ~25 or more for lar...
diff --git a/astropy/time/tests/test_fast_parser.py b/astropy/time/tests/test_fast_parser.py new file mode 100644 index 000000000000..32cc38a8b0dd --- /dev/null +++ b/astropy/time/tests/test_fast_parser.py @@ -0,0 +1,118 @@ +# Licensed under a 3-clause BSD style license - see LICENSE.rst + +import re + +import numpy as...
[ { "path": "CHANGES.rst", "old_path": "a/CHANGES.rst", "new_path": "b/CHANGES.rst", "metadata": "diff --git a/CHANGES.rst b/CHANGES.rst\nindex 02c65db2ebbf..b81b6300e46a 100644\n--- a/CHANGES.rst\n+++ b/CHANGES.rst\n@@ -101,6 +101,11 @@ astropy.time\n object in a format like ``unix`` or ``cxcsec`` ...
4.2
ff57f89ef5307a91d1d4fe6e82eb87d29668b27a
[]
[ "astropy/time/tests/test_fast_parser.py::test_fast_matches_python[1-times1-isot]", "astropy/time/tests/test_fast_parser.py::test_fast_matches_python[1-times2-yday]", "astropy/time/tests/test_fast_parser.py::test_fast_matches_python[0-times0-iso]", "astropy/time/tests/test_fast_parser.py::test_fast_matches_pyt...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [ { "type": "field", "name": "__dict__" }, { "type": "field", "name": "name" }, { "type": "er...
[ { "path": "CHANGES.rst", "old_path": "a/CHANGES.rst", "new_path": "b/CHANGES.rst", "metadata": "diff --git a/CHANGES.rst b/CHANGES.rst\nindex 02c65db2ebbf..b81b6300e46a 100644\n--- a/CHANGES.rst\n+++ b/CHANGES.rst\n@@ -101,6 +101,11 @@ astropy.time\n object in a format like ``unix`` or ``cxcsec`` ...
diff --git a/CHANGES.rst b/CHANGES.rst index 02c65db2ebbf..b81b6300e46a 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -101,6 +101,11 @@ astropy.time object in a format like ``unix`` or ``cxcsec`` (time delta from a reference epoch time). [#<PRID>] +- Improve initialization time by a factor of ~25 or more for la...
astropy/astropy
astropy__astropy-10632
https://github.com/astropy/astropy/pull/10632
diff --git a/CHANGES.rst b/CHANGES.rst index 9b04db77f3ac..5a642df49854 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -144,6 +144,10 @@ astropy.utils - ``get_free_space_in_dir`` now takes a new ``unit`` keyword and ``check_free_space_in_dir`` takes ``size`` defined as ``Quantity``. [#10627] +- New ``astropy.utils...
diff --git a/astropy/utils/tests/test_data.py b/astropy/utils/tests/test_data.py index 15b28eb3f356..88903fc097da 100644 --- a/astropy/utils/tests/test_data.py +++ b/astropy/utils/tests/test_data.py @@ -2061,6 +2061,17 @@ def test_zero_remote_timeout(temp_cache, valid_urls): download_file(TESTURL, timeout=0) ...
[ { "path": "CHANGES.rst", "old_path": "a/CHANGES.rst", "new_path": "b/CHANGES.rst", "metadata": "diff --git a/CHANGES.rst b/CHANGES.rst\nindex 9b04db77f3ac..5a642df49854 100644\n--- a/CHANGES.rst\n+++ b/CHANGES.rst\n@@ -144,6 +144,10 @@ astropy.utils\n \n - ``get_free_space_in_dir`` now takes a new `...
4.2
ca9677164c08c6695ba7d779efa5ba68cc0dbe1b
[ "astropy/utils/tests/test_data.py::test_download_parallel_with_empty_sources", "astropy/utils/tests/test_data.py::test_update_parallel", "astropy/utils/tests/test_data.py::test_download_file_schedules_deletion", "astropy/utils/tests/test_data.py::test_get_fileobj_localpath", "astropy/utils/tests/test_data.p...
[ "astropy/utils/tests/test_data.py::test_no_allow_internet" ]
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "CHANGES.rst", "old_path": "a/CHANGES.rst", "new_path": "b/CHANGES.rst", "metadata": "diff --git a/CHANGES.rst b/CHANGES.rst\nindex 9b04db77f3ac..5a642df49854 100644\n--- a/CHANGES.rst\n+++ b/CHANGES.rst\n@@ -144,6 +144,10 @@ astropy.utils\n \n - ``get_free_space_in_dir`` now takes a new `...
diff --git a/CHANGES.rst b/CHANGES.rst index 9b04db77f3ac..5a642df49854 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -144,6 +144,10 @@ astropy.utils - ``get_free_space_in_dir`` now takes a new ``unit`` keyword and ``check_free_space_in_dir`` takes ``size`` defined as ``Quantity``. [#<PRID>] +- New ``astropy.util...
astropy/astropy
astropy__astropy-8517
https://github.com/astropy/astropy/pull/8517
diff --git a/CHANGES.rst b/CHANGES.rst index 9cc0c28c2d96..5d5bf3f541a2 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -10,6 +10,9 @@ astropy.config astropy.constants ^^^^^^^^^^^^^^^^^ +- The version of constants can be specified via ScienceState in a way + that ``constants`` and ``units`` will be consistent. [#851...
diff --git a/astropy/constants/tests/test_prior_version.py b/astropy/constants/tests/test_prior_version.py index 5d13c66a7b98..c7f54ef75b60 100644 --- a/astropy/constants/tests/test_prior_version.py +++ b/astropy/constants/tests/test_prior_version.py @@ -163,6 +163,6 @@ def test_context_manager(): assert const.h...
[ { "path": "CHANGES.rst", "old_path": "a/CHANGES.rst", "new_path": "b/CHANGES.rst", "metadata": "diff --git a/CHANGES.rst b/CHANGES.rst\nindex 9cc0c28c2d96..5d5bf3f541a2 100644\n--- a/CHANGES.rst\n+++ b/CHANGES.rst\n@@ -10,6 +10,9 @@ astropy.config\n astropy.constants\n ^^^^^^^^^^^^^^^^^\n \n+- The v...
4.0
cfe7616626c00c3dc7a912c1f432c00d52dba8b0
[ "astropy/constants/tests/test_prior_version.py::test_e", "astropy/constants/tests/test_prior_version.py::test_h", "astropy/constants/tests/test_prior_version.py::test_c", "astropy/constants/tests/test_prior_version.py::test_view", "astropy/constants/tests/test_prior_version.py::test_b_wien", "astropy/cons...
[ "astropy/constants/tests/test_sciencestate.py::test_previously_imported", "astropy/constants/tests/test_prior_version.py::test_context_manager", "astropy/constants/tests/test_sciencestate.py::test_version_match" ]
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [ { "type": "file", "name": "astropy/constants/config.py" } ] }
[ { "path": "CHANGES.rst", "old_path": "a/CHANGES.rst", "new_path": "b/CHANGES.rst", "metadata": "diff --git a/CHANGES.rst b/CHANGES.rst\nindex 9cc0c28c2d96..5d5bf3f541a2 100644\n--- a/CHANGES.rst\n+++ b/CHANGES.rst\n@@ -10,6 +10,9 @@ astropy.config\n astropy.constants\n ^^^^^^^^^^^^^^^^^\n \n+- The v...
diff --git a/CHANGES.rst b/CHANGES.rst index 9cc0c28c2d96..5d5bf3f541a2 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -10,6 +10,9 @@ astropy.config astropy.constants ^^^^^^^^^^^^^^^^^ +- The version of constants can be specified via ScienceState in a way + that ``constants`` and ``units`` will be consistent. [#<PR...
astropy/astropy
astropy__astropy-8237
https://github.com/astropy/astropy/pull/8237
diff --git a/CHANGES.rst b/CHANGES.rst index 461ccecacdfc..1c699a1bd418 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -7,6 +7,10 @@ New Features astropy.config ^^^^^^^^^^^^^^ +- The config and cache directories and the name of the config file are now + customizable. This allows affiliated packages to put their con...
diff --git a/astropy/config/tests/test_configs.py b/astropy/config/tests/test_configs.py index 80124a05672c..4096bf0dbd83 100644 --- a/astropy/config/tests/test_configs.py +++ b/astropy/config/tests/test_configs.py @@ -20,28 +20,31 @@ def test_paths(): assert 'astropy' in paths.get_config_dir() assert 'astrop...
[ { "path": "CHANGES.rst", "old_path": "a/CHANGES.rst", "new_path": "b/CHANGES.rst", "metadata": "diff --git a/CHANGES.rst b/CHANGES.rst\nindex 461ccecacdfc..1c699a1bd418 100644\n--- a/CHANGES.rst\n+++ b/CHANGES.rst\n@@ -7,6 +7,10 @@ New Features\n astropy.config\n ^^^^^^^^^^^^^^\n \n+- The config and...
4.0
ec864232350c5282a56af52a35945e9e43861556
[ "astropy/config/tests/test_configs.py::test_configitem_options", "astropy/config/tests/test_configs.py::test_warning_move_to_top_level", "astropy/utils/tests/test_data.py::test_read_unicode[unicode.txt]", "astropy/utils/tests/test_data.py::test_local_data_obj[local.dat.gz]", "astropy/utils/tests/test_data.p...
[ "astropy/config/tests/test_configs.py::test_paths", "astropy/config/tests/test_configs.py::test_config_noastropy_fallback", "astropy/config/tests/test_configs.py::test_set_temp_config", "astropy/config/tests/test_configs.py::test_config_file", "astropy/config/tests/test_configs.py::test_set_temp_cache" ]
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [ { "type": "field", "name": "pkgname" }, { "type": "field", "name": "pkgname" }, { "type": "...
[ { "path": "CHANGES.rst", "old_path": "a/CHANGES.rst", "new_path": "b/CHANGES.rst", "metadata": "diff --git a/CHANGES.rst b/CHANGES.rst\nindex 461ccecacdfc..1c699a1bd418 100644\n--- a/CHANGES.rst\n+++ b/CHANGES.rst\n@@ -7,6 +7,10 @@ New Features\n astropy.config\n ^^^^^^^^^^^^^^\n \n+- The config and...
diff --git a/CHANGES.rst b/CHANGES.rst index 461ccecacdfc..1c699a1bd418 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -7,6 +7,10 @@ New Features astropy.config ^^^^^^^^^^^^^^ +- The config and cache directories and the name of the config file are now + customizable. This allows affiliated packages to put their con...
astropy/astropy
astropy__astropy-11490
https://github.com/astropy/astropy/pull/11490
diff --git a/astropy/io/ascii/ui.py b/astropy/io/ascii/ui.py index 83af010ec3bd..e1211bc1557f 100644 --- a/astropy/io/ascii/ui.py +++ b/astropy/io/ascii/ui.py @@ -42,12 +42,6 @@ _read_trace = [] -try: - import yaml # noqa - HAS_YAML = True -except ImportError: - HAS_YAML = False - # Default setting for ...
diff --git a/astropy/conftest.py b/astropy/conftest.py index 84aeb7131d0b..285fb7399f99 100644 --- a/astropy/conftest.py +++ b/astropy/conftest.py @@ -21,21 +21,22 @@ from astropy import __version__ from astropy.tests.helper import enable_deprecations_as_exceptions -try: - # This is needed to silence a warning f...
[ { "path": "docs/changes/utils/11490.other.rst", "old_path": "/dev/null", "new_path": "b/docs/changes/utils/11490.other.rst", "metadata": "diff --git a/docs/changes/utils/11490.other.rst b/docs/changes/utils/11490.other.rst\nnew file mode 100644\nindex 000000000000..6f4beee71034\n--- /dev/null\n+++ b...
4.3
2d8ef1bf9a91fbfe0cf23ff687280ee32817bd70
[]
[ "astropy/convolution/tests/test_convolve.py::TestConvolve1D::test_input_unmodified_with_nan[extend-fill-False-False->f4]", "astropy/coordinates/tests/test_pickle.py::test_simple_object[1-Latitude-args4-kwargs4-False]", "astropy/coordinates/tests/test_sky_coord.py::test_round_tripping[ICRS-ICRS-J1975.0-J1975.0-J...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [ { "type": "field", "name": "HAS_BS4" }, { "type": "field", "name": "HAS_SORTEDCONTAINERS" }, { ...
[ { "path": "docs/changes/utils/<PRID>.other.rst", "old_path": "/dev/null", "new_path": "b/docs/changes/utils/<PRID>.other.rst", "metadata": "diff --git a/docs/changes/utils/<PRID>.other.rst b/docs/changes/utils/<PRID>.other.rst\nnew file mode 100644\nindex 000000000000..6f4beee71034\n--- /dev/null\n+...
diff --git a/docs/changes/utils/<PRID>.other.rst b/docs/changes/utils/<PRID>.other.rst new file mode 100644 index 000000000000..6f4beee71034 --- /dev/null +++ b/docs/changes/utils/<PRID>.other.rst @@ -0,0 +1,2 @@ +Added a new module at ``astropy.utils.compat.optional_deps`` to consolidate the +definition of ``HAS_x`` o...
astropy/astropy
astropy__astropy-9346
https://github.com/astropy/astropy/pull/9346
diff --git a/CHANGES.rst b/CHANGES.rst index 9c082daf3d77..939696157d34 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -34,6 +34,11 @@ astropy.coordinates ``CylindricalRepresentation`` of the coordinate, as is already available for other common representations. [#8857] +- The default parameters for the ``Galacto...
diff --git a/astropy/coordinates/tests/test_frames.py b/astropy/coordinates/tests/test_frames.py index e259c01e756f..b010a3b2fe92 100644 --- a/astropy/coordinates/tests/test_frames.py +++ b/astropy/coordinates/tests/test_frames.py @@ -10,7 +10,7 @@ from astropy.tests.helper import (catch_warnings, ...
[ { "path": "CHANGES.rst", "old_path": "a/CHANGES.rst", "new_path": "b/CHANGES.rst", "metadata": "diff --git a/CHANGES.rst b/CHANGES.rst\nindex 9c082daf3d77..939696157d34 100644\n--- a/CHANGES.rst\n+++ b/CHANGES.rst\n@@ -34,6 +34,11 @@ astropy.coordinates\n ``CylindricalRepresentation`` of the coord...
4.0
b96c6f3d4f0dacfdd21bd645a34ce924c7e1ae3b
[ "astropy/coordinates/tests/test_frames.py::test_differentialattribute", "astropy/coordinates/tests/test_frames.py::test_frame_repr", "astropy/coordinates/tests/test_frames.py::test_realizing", "astropy/coordinates/tests/test_frames.py::test_getitem_representation", "astropy/coordinates/tests/test_frames.py:...
[ "astropy/coordinates/tests/test_frames.py::test_galactocentric_defaults", "astropy/coordinates/tests/test_frames.py::test_galactocentric_default_warning" ]
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [ { "type": "field", "name": "_value" } ] }
[ { "path": "CHANGES.rst", "old_path": "a/CHANGES.rst", "new_path": "b/CHANGES.rst", "metadata": "diff --git a/CHANGES.rst b/CHANGES.rst\nindex 9c082daf3d77..939696157d34 100644\n--- a/CHANGES.rst\n+++ b/CHANGES.rst\n@@ -34,6 +34,11 @@ astropy.coordinates\n ``CylindricalRepresentation`` of the coord...
diff --git a/CHANGES.rst b/CHANGES.rst index 9c082daf3d77..939696157d34 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -34,6 +34,11 @@ astropy.coordinates ``CylindricalRepresentation`` of the coordinate, as is already available for other common representations. [#<PRID>] +- The default parameters for the ``Galac...
astropy/astropy
astropy__astropy-9203
https://github.com/astropy/astropy/pull/9203
diff --git a/CHANGES.rst b/CHANGES.rst index 80b4e8d3406e..7a02f2ff232f 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -64,6 +64,12 @@ astropy.io.registry astropy.io.votable ^^^^^^^^^^^^^^^^^^ +astropy.logger +^^^^^^^^^^^^^^ + +- Added a configuration option to specify the text encoding of the log file, + with the ...
diff --git a/astropy/tests/test_logger.py b/astropy/tests/test_logger.py index 5104fbb7ba91..b4151f3b9238 100644 --- a/astropy/tests/test_logger.py +++ b/astropy/tests/test_logger.py @@ -4,6 +4,8 @@ import importlib import sys import warnings +import logging +import locale import pytest @@ -482,3 +484,24 @@ def...
[ { "path": "CHANGES.rst", "old_path": "a/CHANGES.rst", "new_path": "b/CHANGES.rst", "metadata": "diff --git a/CHANGES.rst b/CHANGES.rst\nindex 80b4e8d3406e..7a02f2ff232f 100644\n--- a/CHANGES.rst\n+++ b/CHANGES.rst\n@@ -64,6 +64,12 @@ astropy.io.registry\n astropy.io.votable\n ^^^^^^^^^^^^^^^^^^\n \n...
4.0
6ac9bd50ac67a9b9d994dab3e5e3e2133b65c434
[ "astropy/tests/test_logger.py::test_log_to_file_origin1", "astropy/tests/test_logger.py::test_log_to_file[ERROR]", "astropy/tests/test_logger.py::test_warning_logging_with_io_votable_warning", "astropy/tests/test_logger.py::test_log_to_file[INFO]", "astropy/tests/test_logger.py::test_warnings_logging_disabl...
[ "astropy/tests/test_logger.py::test_log_to_file_encoding[]", "astropy/tests/test_logger.py::test_log_to_file_encoding[cp1252]", "astropy/tests/test_logger.py::test_log_to_file_encoding[utf-8]" ]
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "CHANGES.rst", "old_path": "a/CHANGES.rst", "new_path": "b/CHANGES.rst", "metadata": "diff --git a/CHANGES.rst b/CHANGES.rst\nindex 80b4e8d3406e..7a02f2ff232f 100644\n--- a/CHANGES.rst\n+++ b/CHANGES.rst\n@@ -64,6 +64,12 @@ astropy.io.registry\n astropy.io.votable\n ^^^^^^^^^^^^^^^^^^\n \n...
diff --git a/CHANGES.rst b/CHANGES.rst index 80b4e8d3406e..7a02f2ff232f 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -64,6 +64,12 @@ astropy.io.registry astropy.io.votable ^^^^^^^^^^^^^^^^^^ +astropy.logger +^^^^^^^^^^^^^^ + +- Added a configuration option to specify the text encoding of the log file, + with the ...
astropy/astropy
astropy__astropy-9475
https://github.com/astropy/astropy/pull/9475
diff --git a/CHANGES.rst b/CHANGES.rst index 461ccecacdfc..86dd775ecbe8 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -72,6 +72,10 @@ astropy.io.registry astropy.io.votable ^^^^^^^^^^^^^^^^^^ +- Support VOTable version 1.4. The main addition is the new element, TIMESYS, + which allows defining of metadata for tem...
diff --git a/astropy/io/votable/tests/data/timesys.xml b/astropy/io/votable/tests/data/timesys.xml new file mode 100644 index 000000000000..f1faa36549b3 --- /dev/null +++ b/astropy/io/votable/tests/data/timesys.xml @@ -0,0 +1,29 @@ +<?xml version="1.0" encoding="UTF-8"?> +<VOTABLE version="1.4" xmlns="http://www.ivoa.n...
[ { "path": "CHANGES.rst", "old_path": "a/CHANGES.rst", "new_path": "b/CHANGES.rst", "metadata": "diff --git a/CHANGES.rst b/CHANGES.rst\nindex 461ccecacdfc..86dd775ecbe8 100644\n--- a/CHANGES.rst\n+++ b/CHANGES.rst\n@@ -72,6 +72,10 @@ astropy.io.registry\n astropy.io.votable\n ^^^^^^^^^^^^^^^^^^\n \n...
4.0
ec864232350c5282a56af52a35945e9e43861556
[ "astropy/io/votable/tests/table_test.py::TestVerifyOptions::test_verify_exception", "astropy/io/votable/tests/vo_test.py::TestParse::test_repr", "astropy/io/votable/tests/vo_test.py::TestThroughBinary2::test_floatComplex", "astropy/io/votable/tests/vo_test.py::TestParse::test_unicode_test", "astropy/io/vota...
[ "astropy/io/votable/tests/table_test.py::test_write_with_format", "astropy/io/votable/tests/vo_test.py::test_timesys_errors" ]
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [ { "type": "field", "name": "refposition" }, { "type": "function", "name": "refposition" }, { ...
[ { "path": "CHANGES.rst", "old_path": "a/CHANGES.rst", "new_path": "b/CHANGES.rst", "metadata": "diff --git a/CHANGES.rst b/CHANGES.rst\nindex 461ccecacdfc..86dd775ecbe8 100644\n--- a/CHANGES.rst\n+++ b/CHANGES.rst\n@@ -72,6 +72,10 @@ astropy.io.registry\n astropy.io.votable\n ^^^^^^^^^^^^^^^^^^\n \n...
diff --git a/CHANGES.rst b/CHANGES.rst index 461ccecacdfc..86dd775ecbe8 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -72,6 +72,10 @@ astropy.io.registry astropy.io.votable ^^^^^^^^^^^^^^^^^^ +- Support VOTable version 1.4. The main addition is the new element, TIMESYS, + which allows defining of metadata for tem...
astropy/astropy
astropy__astropy-9135
https://github.com/astropy/astropy/pull/9135
diff --git a/CHANGES.rst b/CHANGES.rst index 67d0d76684a9..085cc9382632 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -71,7 +71,12 @@ astropy.modeling - Add ``Tabular1D.inverse`` [#9083] - Significant reorganization of the documentation. [#9078, #9171] -- ``Model.rename`` was changed to add the ability to rename ``...
diff --git a/astropy/io/misc/asdf/tags/transform/tests/test_transform.py b/astropy/io/misc/asdf/tags/transform/tests/test_transform.py index e3ba12bfc0a2..173e642d30d1 100644 --- a/astropy/io/misc/asdf/tags/transform/tests/test_transform.py +++ b/astropy/io/misc/asdf/tags/transform/tests/test_transform.py @@ -11,6 +11,...
[ { "path": "CHANGES.rst", "old_path": "a/CHANGES.rst", "new_path": "b/CHANGES.rst", "metadata": "diff --git a/CHANGES.rst b/CHANGES.rst\nindex 67d0d76684a9..085cc9382632 100644\n--- a/CHANGES.rst\n+++ b/CHANGES.rst\n@@ -71,7 +71,12 @@ astropy.modeling\n - Add ``Tabular1D.inverse`` [#9083]\n - Signifi...
4.0
a2e3a8d311fb91ec5b868cb11ebae7d579094519
[ "astropy/modeling/tests/test_model_sets.py::test_axis_0", "astropy/modeling/tests/test_model_sets.py::test_shapes", "astropy/modeling/tests/test_model_sets.py::test_model_axis_1", "astropy/modeling/tests/test_model_sets.py::test_linearlsqfitter", "astropy/modeling/tests/test_model_sets.py::test_negative_axi...
[ "astropy/modeling/tests/test_compound.py::test_model_set[<lambda>-result1]", "astropy/modeling/tests/test_compound.py::test_simple_two_model_compose_2d", "astropy/modeling/tests/test_compound.py::test_identity_input", "astropy/modeling/tests/test_compound.py::test_compound_unsupported_inverse[model3]", "ast...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "CHANGES.rst", "old_path": "a/CHANGES.rst", "new_path": "b/CHANGES.rst", "metadata": "diff --git a/CHANGES.rst b/CHANGES.rst\nindex 67d0d76684a9..085cc9382632 100644\n--- a/CHANGES.rst\n+++ b/CHANGES.rst\n@@ -71,7 +71,12 @@ astropy.modeling\n - Add ``Tabular1D.inverse`` [#<PRID>]\n - Signi...
diff --git a/CHANGES.rst b/CHANGES.rst index 67d0d76684a9..085cc9382632 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -71,7 +71,12 @@ astropy.modeling - Add ``Tabular1D.inverse`` [#<PRID>] - Significant reorganization of the documentation. [#<PRID>, #<PRID>] -- ``Model.rename`` was changed to add the ability to ren...
astropy/astropy
astropy__astropy-9288
https://github.com/astropy/astropy/pull/9288
diff --git a/CHANGES.rst b/CHANGES.rst index 80b4e8d3406e..95d78702124c 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -129,9 +129,12 @@ astropy.table - ``MaskedColumn.data`` will now return a plain ``MaskedArray`` rather than the previous (unintended) ``masked_BaseColumn``. [#8855] -- Adding depth-wise stacking `...
diff --git a/astropy/table/tests/test_operations.py b/astropy/table/tests/test_operations.py index da5f9f1020be..6da2f2a8eff5 100644 --- a/astropy/table/tests/test_operations.py +++ b/astropy/table/tests/test_operations.py @@ -547,15 +547,36 @@ def test_mixin_functionality(self, mixin_cols): assert ('j...
[ { "path": "CHANGES.rst", "old_path": "a/CHANGES.rst", "new_path": "b/CHANGES.rst", "metadata": "diff --git a/CHANGES.rst b/CHANGES.rst\nindex 80b4e8d3406e..95d78702124c 100644\n--- a/CHANGES.rst\n+++ b/CHANGES.rst\n@@ -129,9 +129,12 @@ astropy.table\n - ``MaskedColumn.data`` will now return a plain ...
4.0
b5da86a0fd5ceb785127f82078c6706a5feef157
[ "astropy/table/tests/test_operations.py::TestSetdiff::test_keys[QTable]", "astropy/table/tests/test_operations.py::TestHStack::test_bad_input_type[QTable]", "astropy/table/tests/test_operations.py::TestJoin::test_no_common_keys[Table]", "astropy/table/tests/test_operations.py::TestHStack::test_stack_columns[Q...
[ "astropy/table/tests/test_operations.py::TestJoin::test_cartesian_join[Table]", "astropy/table/tests/test_operations.py::TestJoin::test_cartesian_join[QTable]" ]
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [ { "type": "error_msg", "name": "cannot supply keys for a cartesian join" } ] }
[ { "path": "CHANGES.rst", "old_path": "a/CHANGES.rst", "new_path": "b/CHANGES.rst", "metadata": "diff --git a/CHANGES.rst b/CHANGES.rst\nindex 80b4e8d3406e..95d78702124c 100644\n--- a/CHANGES.rst\n+++ b/CHANGES.rst\n@@ -129,9 +129,12 @@ astropy.table\n - ``MaskedColumn.data`` will now return a plain ...
diff --git a/CHANGES.rst b/CHANGES.rst index 80b4e8d3406e..95d78702124c 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -129,9 +129,12 @@ astropy.table - ``MaskedColumn.data`` will now return a plain ``MaskedArray`` rather than the previous (unintended) ``masked_BaseColumn``. [#<PRID>] -- Adding depth-wise stacking...
astropy/astropy
astropy__astropy-8939
https://github.com/astropy/astropy/pull/8939
diff --git a/CHANGES.rst b/CHANGES.rst index 3c8869f97b64..ded568008cfd 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -91,6 +91,9 @@ astropy.table - ``MaskedColumn.data`` will now return a plain ``MaskedArray`` rather than the previous (unintended) ``masked_BaseColumn``. [#8855] +- Adding depth-wise stacking ``cs...
diff --git a/astropy/table/tests/test_operations.py b/astropy/table/tests/test_operations.py index 3cb6652d90ed..3e4ba76c6732 100644 --- a/astropy/table/tests/test_operations.py +++ b/astropy/table/tests/test_operations.py @@ -1004,6 +1004,123 @@ def test_mixin_functionality(self, mixin_cols): 'vst...
[ { "path": "CHANGES.rst", "old_path": "a/CHANGES.rst", "new_path": "b/CHANGES.rst", "metadata": "diff --git a/CHANGES.rst b/CHANGES.rst\nindex 3c8869f97b64..ded568008cfd 100644\n--- a/CHANGES.rst\n+++ b/CHANGES.rst\n@@ -91,6 +91,9 @@ astropy.table\n - ``MaskedColumn.data`` will now return a plain ``M...
4.0
ebf10cf8161b1b9b3e641fb34329ce87b8f63e6f
[ "astropy/table/tests/test_operations.py::TestSetdiff::test_keys[QTable]", "astropy/table/tests/test_operations.py::TestHStack::test_bad_input_type[QTable]", "astropy/table/tests/test_operations.py::TestJoin::test_no_common_keys[Table]", "astropy/table/tests/test_operations.py::TestHStack::test_stack_columns[Q...
[ "astropy/table/tests/test_operations.py::TestCStack::test_cstack_single_table", "astropy/table/tests/test_operations.py::TestCStack::test_cstack_basic_outer[Table]", "astropy/table/tests/test_operations.py::TestCStack::test_cstack_table_column[Table]", "astropy/table/tests/test_operations.py::TestCStack::test...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "CHANGES.rst", "old_path": "a/CHANGES.rst", "new_path": "b/CHANGES.rst", "metadata": "diff --git a/CHANGES.rst b/CHANGES.rst\nindex 3c8869f97b64..ded568008cfd 100644\n--- a/CHANGES.rst\n+++ b/CHANGES.rst\n@@ -91,6 +91,9 @@ astropy.table\n - ``MaskedColumn.data`` will now return a plain ``M...
diff --git a/CHANGES.rst b/CHANGES.rst index 3c8869f97b64..ded568008cfd 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -91,6 +91,9 @@ astropy.table - ``MaskedColumn.data`` will now return a plain ``MaskedArray`` rather than the previous (unintended) ``masked_BaseColumn``. [#<PRID>] +- Adding depth-wise stacking ``...
astropy/astropy
astropy__astropy-9068
https://github.com/astropy/astropy/pull/9068
diff --git a/CHANGES.rst b/CHANGES.rst index b585271083c5..f6b820b72052 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -161,6 +161,10 @@ astropy.table - Added depth-wise stacking ``cstack()`` in higher level table operation. It help will in stacking table column depth-wise. [#8939] +- Added a new table equality me...
diff --git a/astropy/table/tests/test_table.py b/astropy/table/tests/test_table.py index 188b908a8a8a..fa787ebd04d7 100644 --- a/astropy/table/tests/test_table.py +++ b/astropy/table/tests/test_table.py @@ -15,6 +15,7 @@ from astropy.table import Table, QTable, MaskedColumn from astropy.tests.helper import (assert_fo...
[ { "path": "CHANGES.rst", "old_path": "a/CHANGES.rst", "new_path": "b/CHANGES.rst", "metadata": "diff --git a/CHANGES.rst b/CHANGES.rst\nindex b585271083c5..f6b820b72052 100644\n--- a/CHANGES.rst\n+++ b/CHANGES.rst\n@@ -161,6 +161,10 @@ astropy.table\n - Added depth-wise stacking ``cstack()`` in high...
4.0
653c069d6bcc3a604d5591604977038bd8e5417a
[ "astropy/table/tests/test_table.py::TestAddPosition::test_1[subclass]", "astropy/table/tests/test_table.py::TestReplaceColumn::test_replace_with_masked_col_with_units_in_qtable[unmasked]", "astropy/table/tests/test_table.py::TestRemove::test_delitem_row_fail[subclass]", "astropy/table/tests/test_table.py::Tes...
[ "astropy/table/tests/test_table.py::test_values_equal_part1" ]
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [ { "type": "error_msg", "name": "cannot compare tables with different column names" } ] }
[ { "path": "CHANGES.rst", "old_path": "a/CHANGES.rst", "new_path": "b/CHANGES.rst", "metadata": "diff --git a/CHANGES.rst b/CHANGES.rst\nindex b585271083c5..f6b820b72052 100644\n--- a/CHANGES.rst\n+++ b/CHANGES.rst\n@@ -161,6 +161,10 @@ astropy.table\n - Added depth-wise stacking ``cstack()`` in high...
diff --git a/CHANGES.rst b/CHANGES.rst index b585271083c5..f6b820b72052 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -161,6 +161,10 @@ astropy.table - Added depth-wise stacking ``cstack()`` in higher level table operation. It help will in stacking table column depth-wise. [#<PRID>] +- Added a new table equality ...
astropy/astropy
astropy__astropy-9425
https://github.com/astropy/astropy/pull/9425
diff --git a/CHANGES.rst b/CHANGES.rst index 7035d4a29860..b1c7305aee37 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -142,6 +142,11 @@ astropy.table - Added ``Table.iterrows()`` for making row-wise iteration faster. [#8969] +- Allow table to be initialized with a list of dict where the dict keys + are not the sa...
diff --git a/astropy/table/tests/test_init_table.py b/astropy/table/tests/test_init_table.py index 613c8c071b81..e1b1e008d612 100644 --- a/astropy/table/tests/test_init_table.py +++ b/astropy/table/tests/test_init_table.py @@ -6,7 +6,7 @@ import pytest import numpy as np -from astropy.table import Column, TableColu...
[ { "path": "CHANGES.rst", "old_path": "a/CHANGES.rst", "new_path": "b/CHANGES.rst", "metadata": "diff --git a/CHANGES.rst b/CHANGES.rst\nindex 7035d4a29860..b1c7305aee37 100644\n--- a/CHANGES.rst\n+++ b/CHANGES.rst\n@@ -142,6 +142,11 @@ astropy.table\n \n - Added ``Table.iterrows()`` for making row-w...
4.0
f2acca5546fdfba0cea758ef9ba7d1573c626e9f
[ "astropy/table/tests/test_init_table.py::TestInitFromRows::test_init_with_rows_and_data[unmasked-True]", "astropy/table/tests/test_init_table.py::TestInitFromNdarrayHomo::test_ndarray_ref[True]", "astropy/table/tests/test_init_table.py::TestInitFromDict::test_names_cols_mismatch[True]", "astropy/table/tests/t...
[ "astropy/table/tests/test_init_table.py::TestInitFromListOfDicts::test_missing_data_init_from_dict[True]", "astropy/table/tests/test_init_table.py::TestInitFromListOfDicts::test_missing_data_init_from_dict[False]" ]
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "CHANGES.rst", "old_path": "a/CHANGES.rst", "new_path": "b/CHANGES.rst", "metadata": "diff --git a/CHANGES.rst b/CHANGES.rst\nindex 7035d4a29860..b1c7305aee37 100644\n--- a/CHANGES.rst\n+++ b/CHANGES.rst\n@@ -142,6 +142,11 @@ astropy.table\n \n - Added ``Table.iterrows()`` for making row-w...
diff --git a/CHANGES.rst b/CHANGES.rst index 7035d4a29860..b1c7305aee37 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -142,6 +142,11 @@ astropy.table - Added ``Table.iterrows()`` for making row-wise iteration faster. [#<PRID>] +- Allow table to be initialized with a list of dict where the dict keys + are not the ...
astropy/astropy
astropy__astropy-9452
https://github.com/astropy/astropy/pull/9452
diff --git a/CHANGES.rst b/CHANGES.rst index 9c082daf3d77..cd280b687e5d 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -101,6 +101,8 @@ astropy.modeling Deprecate ``BlackBody1D`` model and ``blackbody_nu`` and ``blackbody_lambda`` functions. [#9282] +- Add ``Drude1D`` model. [#9452] + astropy.nddata ^^^^^^^^^^...
diff --git a/astropy/modeling/tests/example_models.py b/astropy/modeling/tests/example_models.py index d6e6f0554f86..cd9c6cfff23d 100644 --- a/astropy/modeling/tests/example_models.py +++ b/astropy/modeling/tests/example_models.py @@ -56,6 +56,7 @@ Gaussian2D, Const2D, Box2D, MexicanHat2D, TrapezoidDisk2D, Ai...
[ { "path": "CHANGES.rst", "old_path": "a/CHANGES.rst", "new_path": "b/CHANGES.rst", "metadata": "diff --git a/CHANGES.rst b/CHANGES.rst\nindex 9c082daf3d77..cd280b687e5d 100644\n--- a/CHANGES.rst\n+++ b/CHANGES.rst\n@@ -101,6 +101,8 @@ astropy.modeling\n Deprecate ``BlackBody1D`` model and ``blackb...
4.0
8774a04dd4f9e679637cd5c2b3404fef119848cc
[ "astropy/modeling/tests/test_physical_models.py::test_blackbody_return_units", "astropy/modeling/tests/test_physical_models.py::test_blackbody_array_temperature", "astropy/modeling/tests/test_physical_models.py::test_blackbody_evaluate[temperature0]", "astropy/modeling/tests/test_physical_models.py::test_blac...
[ "astropy/modeling/tests/test_models.py::TestFittable2DModels::test_eval2D[Gaussian2D-test_parameters4]", "astropy/modeling/tests/test_models.py::TestFittable1DModels::test_eval1D[Drude1D-test_parameters12]", "astropy/modeling/tests/test_models.py::test_voigt_model", "astropy/modeling/tests/test_models.py::Tes...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "CHANGES.rst", "old_path": "a/CHANGES.rst", "new_path": "b/CHANGES.rst", "metadata": "diff --git a/CHANGES.rst b/CHANGES.rst\nindex 9c082daf3d77..cd280b687e5d 100644\n--- a/CHANGES.rst\n+++ b/CHANGES.rst\n@@ -101,6 +101,8 @@ astropy.modeling\n Deprecate ``BlackBody1D`` model and ``blackb...
diff --git a/CHANGES.rst b/CHANGES.rst index 9c082daf3d77..cd280b687e5d 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -101,6 +101,8 @@ astropy.modeling Deprecate ``BlackBody1D`` model and ``blackbody_nu`` and ``blackbody_lambda`` functions. [#<PRID>] +- Add ``Drude1D`` model. [#<PRID>] + astropy.nddata ^^^^^^...
astropy/astropy
astropy__astropy-7644
https://github.com/astropy/astropy/pull/7644
diff --git a/CHANGES.rst b/CHANGES.rst index f2abf853b4b9..4af0854bff95 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -122,6 +122,9 @@ astropy.tests astropy.time ^^^^^^^^^^^^ +- Added a new time format ``ymdhms`` for representing times via year, month, + day, hour, minute, and second attributes. [#7644] + - ``Tim...
diff --git a/astropy/time/tests/test_basic.py b/astropy/time/tests/test_basic.py index e7db9ce7171a..44f2fe1c0840 100644 --- a/astropy/time/tests/test_basic.py +++ b/astropy/time/tests/test_basic.py @@ -17,7 +17,8 @@ from astropy.coordinates import EarthLocation from astropy import units as u from astropy import _er...
[ { "path": "CHANGES.rst", "old_path": "a/CHANGES.rst", "new_path": "b/CHANGES.rst", "metadata": "diff --git a/CHANGES.rst b/CHANGES.rst\nindex f2abf853b4b9..4af0854bff95 100644\n--- a/CHANGES.rst\n+++ b/CHANGES.rst\n@@ -122,6 +122,9 @@ astropy.tests\n astropy.time\n ^^^^^^^^^^^^\n \n+- Added a new ti...
4.0
9d185e46259a05e8aa91cb5bc47c2bd142a5527a
[ "astropy/time/tests/test_basic.py::test_strftime_array", "astropy/time/tests/test_basic.py::test_strftime_leapsecond", "astropy/time/tests/test_basic.py::test_setitem_bad_item", "astropy/time/tests/test_basic.py::TestBasic::test_empty_value[mjd]", "astropy/time/tests/test_basic.py::TestBasic::test_different...
[ "astropy/time/tests/test_basic.py::test_ymdhms_init_from_table_like[True-kwargs1-tm_input1]", "astropy/time/tests/test_basic.py::test_ymdhms_init_from_table_like[False-kwargs0-tm_input1]", "astropy/time/tests/test_basic.py::test_ymdhms_init_from_table_like[False-kwargs0-recarray]", "astropy/time/tests/test_ba...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [ { "type": "field", "name": "recarray" }, { "type": "error_msg", "name": "input must be dict or table-like...
[ { "path": "CHANGES.rst", "old_path": "a/CHANGES.rst", "new_path": "b/CHANGES.rst", "metadata": "diff --git a/CHANGES.rst b/CHANGES.rst\nindex f2abf853b4b9..4af0854bff95 100644\n--- a/CHANGES.rst\n+++ b/CHANGES.rst\n@@ -122,6 +122,9 @@ astropy.tests\n astropy.time\n ^^^^^^^^^^^^\n \n+- Added a new ti...
diff --git a/CHANGES.rst b/CHANGES.rst index f2abf853b4b9..4af0854bff95 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -122,6 +122,9 @@ astropy.tests astropy.time ^^^^^^^^^^^^ +- Added a new time format ``ymdhms`` for representing times via year, month, + day, hour, minute, and second attributes. [#<PRID>] + - ``T...
astropy/astropy
astropy__astropy-9296
https://github.com/astropy/astropy/pull/9296
diff --git a/CHANGES.rst b/CHANGES.rst index 9a0e9a3caf66..46843a26d86f 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -126,6 +126,9 @@ astropy.time - Made scalar ``Time`` and ``TimeDelta`` objects hashable based on JD, time scale, and location attributes. [#8912] +- Improved error message when bad input is used t...
diff --git a/astropy/time/tests/test_basic.py b/astropy/time/tests/test_basic.py index ba6df1a05610..e7db9ce7171a 100644 --- a/astropy/time/tests/test_basic.py +++ b/astropy/time/tests/test_basic.py @@ -1,5 +1,6 @@ # Licensed under a 3-clause BSD style license - see LICENSE.rst +import os import copy import functo...
[ { "path": "CHANGES.rst", "old_path": "a/CHANGES.rst", "new_path": "b/CHANGES.rst", "metadata": "diff --git a/CHANGES.rst b/CHANGES.rst\nindex 9a0e9a3caf66..46843a26d86f 100644\n--- a/CHANGES.rst\n+++ b/CHANGES.rst\n@@ -126,6 +126,9 @@ astropy.time\n - Made scalar ``Time`` and ``TimeDelta`` objects h...
4.0
f2d2add09e5b1638b2698f19a4d46fcca19e82be
[ "astropy/time/tests/test_basic.py::test_strftime_array", "astropy/time/tests/test_basic.py::test_strftime_leapsecond", "astropy/time/tests/test_basic.py::test_setitem_bad_item", "astropy/time/tests/test_basic.py::TestBasic::test_empty_value[mjd]", "astropy/time/tests/test_basic.py::TestBasic::test_different...
[ "astropy/time/tests/test_basic.py::test_get_time_fmt_exception_messages" ]
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [ { "type": "field", "name": "linesep" } ] }
[ { "path": "CHANGES.rst", "old_path": "a/CHANGES.rst", "new_path": "b/CHANGES.rst", "metadata": "diff --git a/CHANGES.rst b/CHANGES.rst\nindex 9a0e9a3caf66..46843a26d86f 100644\n--- a/CHANGES.rst\n+++ b/CHANGES.rst\n@@ -126,6 +126,9 @@ astropy.time\n - Made scalar ``Time`` and ``TimeDelta`` objects h...
diff --git a/CHANGES.rst b/CHANGES.rst index 9a0e9a3caf66..46843a26d86f 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -126,6 +126,9 @@ astropy.time - Made scalar ``Time`` and ``TimeDelta`` objects hashable based on JD, time scale, and location attributes. [#<PRID>] +- Improved error message when bad input is used...
astropy/astropy
astropy__astropy-9298
https://github.com/astropy/astropy/pull/9298
diff --git a/CHANGES.rst b/CHANGES.rst index 73d1d59f4dd0..d15844d0f6fc 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -77,6 +77,11 @@ astropy.modeling - New function ``fix_inputs`` to generate new models from others by fixing specific inputs variable values to constants. [#9135] +- ``inputs`` and ``outputs`` are ...
diff --git a/astropy/modeling/tests/test_compound.py b/astropy/modeling/tests/test_compound.py index a7feb59db0a6..77bcb69346d4 100644 --- a/astropy/modeling/tests/test_compound.py +++ b/astropy/modeling/tests/test_compound.py @@ -291,9 +291,8 @@ def test_invalid_operands(): Rotation2D(90) + Gaussian1D(1, 0, 0...
[ { "path": "CHANGES.rst", "old_path": "a/CHANGES.rst", "new_path": "b/CHANGES.rst", "metadata": "diff --git a/CHANGES.rst b/CHANGES.rst\nindex 73d1d59f4dd0..d15844d0f6fc 100644\n--- a/CHANGES.rst\n+++ b/CHANGES.rst\n@@ -77,6 +77,11 @@ astropy.modeling\n - New function ``fix_inputs`` to generate new m...
4.0
2ff57436ce351048066bcc9d4e857bb461ff89e2
[ "astropy/modeling/tests/test_compound.py::test_model_set[<lambda>-result1]", "astropy/modeling/tests/test_compound.py::test_identity_input", "astropy/modeling/tests/test_input.py::TestSingleInputDoubleOutputSingleModel::test_1d_array_parameters_scalar_input", "astropy/modeling/tests/test_core.py::test_inputle...
[ "astropy/modeling/tests/test_core.py::test_custom_model_signature", "astropy/modeling/tests/test_core.py::test_rename_path", "astropy/modeling/tests/test_input.py::TestSingleInputDoubleOutputSingleModel::test_1d_array_parameters_1d_array_input", "astropy/modeling/tests/test_input.py::test_call_keyword_mapping...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "CHANGES.rst", "old_path": "a/CHANGES.rst", "new_path": "b/CHANGES.rst", "metadata": "diff --git a/CHANGES.rst b/CHANGES.rst\nindex 73d1d59f4dd0..d15844d0f6fc 100644\n--- a/CHANGES.rst\n+++ b/CHANGES.rst\n@@ -77,6 +77,11 @@ astropy.modeling\n - New function ``fix_inputs`` to generate new m...
diff --git a/CHANGES.rst b/CHANGES.rst index 73d1d59f4dd0..d15844d0f6fc 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -77,6 +77,11 @@ astropy.modeling - New function ``fix_inputs`` to generate new models from others by fixing specific inputs variable values to constants. [#<PRID>] +- ``inputs`` and ``outputs`` ar...
astropy/astropy
astropy__astropy-9361
https://github.com/astropy/astropy/pull/9361
diff --git a/CHANGES.rst b/CHANGES.rst index 31cd8d0c51dd..709609b881f8 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -212,6 +212,15 @@ astropy.time - Improved error message when bad input is used to initialize a ``Time`` or ``TimeDelta`` object and the format is specified. [#9296] +- Allow numeric time formats t...
diff --git a/astropy/time/tests/test_basic.py b/astropy/time/tests/test_basic.py index 493b73ef06cb..0f09344b2696 100644 --- a/astropy/time/tests/test_basic.py +++ b/astropy/time/tests/test_basic.py @@ -5,6 +5,7 @@ import functools import datetime from copy import deepcopy +from decimal import Decimal, localcontext ...
[ { "path": "CHANGES.rst", "old_path": "a/CHANGES.rst", "new_path": "b/CHANGES.rst", "metadata": "diff --git a/CHANGES.rst b/CHANGES.rst\nindex 31cd8d0c51dd..709609b881f8 100644\n--- a/CHANGES.rst\n+++ b/CHANGES.rst\n@@ -212,6 +212,15 @@ astropy.time\n - Improved error message when bad input is used t...
4.0
297589cd9b3f087795803cd698d8410c46cac0eb
[ "astropy/time/tests/test_basic.py::TestVal2::test_unused_val2_raises[d0]", "astropy/time/tests/test_basic.py::test_strftime_array", "astropy/time/tests/test_basic.py::test_strftime_leapsecond", "astropy/time/tests/test_basic.py::test_setitem_bad_item", "astropy/time/tests/test_basic.py::TestBasic::test_empt...
[ "astropy/time/tests/test_basic.py::TestNumericalSubFormat::test_decimal_context_does_not_affect_string[jyear]", "astropy/time/tests/test_basic.py::TestNumericalSubFormat::test_decimal_context_caching", "astropy/time/tests/test_basic.py::TestNumericalSubFormat::test_explicit_string_other_formats[jyear-2000.1-200...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [ { "type": "field", "name": "localcontext" }, { "type": "field", "name": "ctx" }, { "type": ...
[ { "path": "CHANGES.rst", "old_path": "a/CHANGES.rst", "new_path": "b/CHANGES.rst", "metadata": "diff --git a/CHANGES.rst b/CHANGES.rst\nindex 31cd8d0c51dd..709609b881f8 100644\n--- a/CHANGES.rst\n+++ b/CHANGES.rst\n@@ -212,6 +212,15 @@ astropy.time\n - Improved error message when bad input is used t...
diff --git a/CHANGES.rst b/CHANGES.rst index 31cd8d0c51dd..709609b881f8 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -212,6 +212,15 @@ astropy.time - Improved error message when bad input is used to initialize a ``Time`` or ``TimeDelta`` object and the format is specified. [#<PRID>] +- Allow numeric time formats...
astropy/astropy
astropy__astropy-9455
https://github.com/astropy/astropy/pull/9455
diff --git a/CHANGES.rst b/CHANGES.rst index f3a51bc9b72b..fe69681ba2c5 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -245,6 +245,10 @@ astropy.time astropy.timeseries ^^^^^^^^^^^^^^^^^^ +- Addig ``epoch_phase``, ``wrap_phase`` and ``normalize_phase`` keywords to + ``TimeSeries.fold()`` to control the phase of the...
diff --git a/astropy/timeseries/tests/test_sampled.py b/astropy/timeseries/tests/test_sampled.py index 041b202dae3f..6af2d17cd31c 100644 --- a/astropy/timeseries/tests/test_sampled.py +++ b/astropy/timeseries/tests/test_sampled.py @@ -9,6 +9,7 @@ from astropy.table import Table, Column from astropy.time import Time, ...
[ { "path": "CHANGES.rst", "old_path": "a/CHANGES.rst", "new_path": "b/CHANGES.rst", "metadata": "diff --git a/CHANGES.rst b/CHANGES.rst\nindex f3a51bc9b72b..fe69681ba2c5 100644\n--- a/CHANGES.rst\n+++ b/CHANGES.rst\n@@ -245,6 +245,10 @@ astropy.time\n astropy.timeseries\n ^^^^^^^^^^^^^^^^^^\n \n+- Ad...
4.0
aa9b01771a7682ab870215a0edb3b86bfc45e420
[ "astropy/timeseries/tests/test_sampled.py::test_initialization_invalid_time_and_time_start", "astropy/timeseries/tests/test_sampled.py::test_initialization_with_time_delta", "astropy/timeseries/tests/test_sampled.py::test_initialization_n_samples", "astropy/timeseries/tests/test_sampled.py::test_initializatio...
[ "astropy/timeseries/tests/test_sampled.py::test_fold_invalid_options", "astropy/timeseries/tests/test_sampled.py::test_fold" ]
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [ { "type": "error_msg", "name": "normalize_phase=True" }, { "type": "field", "name": "one" }, { ...
[ { "path": "CHANGES.rst", "old_path": "a/CHANGES.rst", "new_path": "b/CHANGES.rst", "metadata": "diff --git a/CHANGES.rst b/CHANGES.rst\nindex f3a51bc9b72b..fe69681ba2c5 100644\n--- a/CHANGES.rst\n+++ b/CHANGES.rst\n@@ -245,6 +245,10 @@ astropy.time\n astropy.timeseries\n ^^^^^^^^^^^^^^^^^^\n \n+- Ad...
diff --git a/CHANGES.rst b/CHANGES.rst index f3a51bc9b72b..fe69681ba2c5 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -245,6 +245,10 @@ astropy.time astropy.timeseries ^^^^^^^^^^^^^^^^^^ +- Addig ``epoch_phase``, ``wrap_phase`` and ``normalize_phase`` keywords to + ``TimeSeries.fold()`` to control the phase of the...
astropy/astropy
astropy__astropy-9613
https://github.com/astropy/astropy/pull/9613
diff --git a/CHANGES.rst b/CHANGES.rst index 39e0403bfaf5..75f0d34ec91f 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -592,6 +592,12 @@ astropy.uncertainty yielding new distributions of the kind expected for the starting distribution, and ``to_value`` yielding ``NdarrayDistribution`` instances. [#9429, #9442] +...
diff --git a/astropy/uncertainty/tests/test_distribution.py b/astropy/uncertainty/tests/test_distribution.py index c980e0c8fc20..57d5d303e538 100644 --- a/astropy/uncertainty/tests/test_distribution.py +++ b/astropy/uncertainty/tests/test_distribution.py @@ -82,62 +82,100 @@ def test_n_distr(self): def test_pdf_me...
[ { "path": "CHANGES.rst", "old_path": "a/CHANGES.rst", "new_path": "b/CHANGES.rst", "metadata": "diff --git a/CHANGES.rst b/CHANGES.rst\nindex 39e0403bfaf5..75f0d34ec91f 100644\n--- a/CHANGES.rst\n+++ b/CHANGES.rst\n@@ -592,6 +592,12 @@ astropy.uncertainty\n yielding new distributions of the kind e...
4.0
546419d4a080323425fed6ac4fcb9ebe0af6cf1b
[ "astropy/uncertainty/tests/test_distribution.py::test_reprs", "astropy/uncertainty/tests/test_distribution.py::test_quantity_init", "astropy/uncertainty/tests/test_distribution.py::test_wrong_kw_fails[normal-kws3]", "astropy/uncertainty/tests/test_distribution.py::TestDistributionStatistics::test_percentile",...
[ "astropy/uncertainty/tests/test_distribution.py::test_distr_to_value", "astropy/uncertainty/tests/test_distribution.py::TestDistributionStatistics::test_pdf_median", "astropy/uncertainty/tests/test_distribution.py::test_helper_poisson_samples", "astropy/uncertainty/tests/test_distribution.py::TestDistribution...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [ { "type": "field", "name": "out" } ] }
[ { "path": "CHANGES.rst", "old_path": "a/CHANGES.rst", "new_path": "b/CHANGES.rst", "metadata": "diff --git a/CHANGES.rst b/CHANGES.rst\nindex 39e0403bfaf5..75f0d34ec91f 100644\n--- a/CHANGES.rst\n+++ b/CHANGES.rst\n@@ -592,6 +592,12 @@ astropy.uncertainty\n yielding new distributions of the kind e...
diff --git a/CHANGES.rst b/CHANGES.rst index 39e0403bfaf5..75f0d34ec91f 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -592,6 +592,12 @@ astropy.uncertainty yielding new distributions of the kind expected for the starting distribution, and ``to_value`` yielding ``NdarrayDistribution`` instances. [#<PRID>, #<PRID>]...
astropy/astropy
astropy__astropy-9282
https://github.com/astropy/astropy/pull/9282
diff --git a/CHANGES.rst b/CHANGES.rst index 47b2737f473b..5e6f37bf038d 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -91,6 +91,10 @@ astropy.modeling - Add many of the numpy ufunc functions as models. [#9401] +- Add ``BlackBody`` model. + Deprecate ``BlackBody1D`` model and ``blackbody_nu`` and ``blackbody_lambd...
diff --git a/astropy/modeling/tests/test_physical_models.py b/astropy/modeling/tests/test_physical_models.py new file mode 100644 index 000000000000..073db0440659 --- /dev/null +++ b/astropy/modeling/tests/test_physical_models.py @@ -0,0 +1,145 @@ +# Licensed under a 3-clause BSD style license - see LICENSE.rst +"""Tes...
[ { "path": "CHANGES.rst", "old_path": "a/CHANGES.rst", "new_path": "b/CHANGES.rst", "metadata": "diff --git a/CHANGES.rst b/CHANGES.rst\nindex 47b2737f473b..5e6f37bf038d 100644\n--- a/CHANGES.rst\n+++ b/CHANGES.rst\n@@ -91,6 +91,10 @@ astropy.modeling\n \n - Add many of the numpy ufunc functions as m...
4.0
022551d268168b867ee96ac5a0a11f1488dc986c
[]
[ "astropy/units/tests/test_equivalencies.py::test_doppler_wavelength_0[doppler_relativistic]", "astropy/units/tests/test_equivalencies.py::test_spectral2", "astropy/units/tests/test_equivalencies.py::test_brightness_temperature", "astropy/units/tests/test_equivalencies.py::test_spectral4[in_val3-in_unit3]", ...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [ { "type": "function", "name": "evaluate" }, { "type": "file", "name": "astropy/modeling/physical_models.p...
[ { "path": "CHANGES.rst", "old_path": "a/CHANGES.rst", "new_path": "b/CHANGES.rst", "metadata": "diff --git a/CHANGES.rst b/CHANGES.rst\nindex 47b2737f473b..5e6f37bf038d 100644\n--- a/CHANGES.rst\n+++ b/CHANGES.rst\n@@ -91,6 +91,10 @@ astropy.modeling\n \n - Add many of the numpy ufunc functions as m...
diff --git a/CHANGES.rst b/CHANGES.rst index 47b2737f473b..5e6f37bf038d 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -91,6 +91,10 @@ astropy.modeling - Add many of the numpy ufunc functions as models. [#<PRID>] +- Add ``BlackBody`` model. + Deprecate ``BlackBody1D`` model and ``blackbody_nu`` and ``blackbody_lam...
astropy/astropy
astropy__astropy-8984
https://github.com/astropy/astropy/pull/8984
diff --git a/CHANGES.rst b/CHANGES.rst index c628ae595792..fc8d01eb225e 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -110,6 +110,8 @@ astropy.uncertainty astropy.units ^^^^^^^^^^^^^ +- Accept non-unit type annotations in @quantity_input. [#8984] + - For numpy 1.17 and later, the new ``__array_function__`` protoco...
diff --git a/astropy/units/tests/test_quantity_decorator.py b/astropy/units/tests/test_quantity_decorator.py index 06b0f3be0470..57395b47103c 100644 --- a/astropy/units/tests/test_quantity_decorator.py +++ b/astropy/units/tests/test_quantity_decorator.py @@ -283,6 +283,28 @@ def myfunc_args(x=1.): assert x.unit ==...
[ { "path": "CHANGES.rst", "old_path": "a/CHANGES.rst", "new_path": "b/CHANGES.rst", "metadata": "diff --git a/CHANGES.rst b/CHANGES.rst\nindex c628ae595792..fc8d01eb225e 100644\n--- a/CHANGES.rst\n+++ b/CHANGES.rst\n@@ -110,6 +110,8 @@ astropy.uncertainty\n astropy.units\n ^^^^^^^^^^^^^\n \n+- Accept...
4.0
81804cf0d30c37c117081b4826d938ba84bfdada
[ "astropy/units/tests/test_quantity_decorator.py::test_wrong_unit[4-0]", "astropy/units/tests/test_quantity_decorator.py::test_kwargs_input[5-2]", "astropy/units/tests/test_quantity_decorator.py::test_kwarg_wrong_unit[0-1]", "astropy/units/tests/test_quantity_decorator.py::test_not_quantity[6-1]", "astropy/u...
[ "astropy/units/tests/test_quantity_decorator.py::test_type_annotations" ]
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "CHANGES.rst", "old_path": "a/CHANGES.rst", "new_path": "b/CHANGES.rst", "metadata": "diff --git a/CHANGES.rst b/CHANGES.rst\nindex c628ae595792..fc8d01eb225e 100644\n--- a/CHANGES.rst\n+++ b/CHANGES.rst\n@@ -110,6 +110,8 @@ astropy.uncertainty\n astropy.units\n ^^^^^^^^^^^^^\n \n+- Accept...
diff --git a/CHANGES.rst b/CHANGES.rst index c628ae595792..fc8d01eb225e 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -110,6 +110,8 @@ astropy.uncertainty astropy.units ^^^^^^^^^^^^^ +- Accept non-unit type annotations in @quantity_input. [#<PRID>] + - For numpy 1.17 and later, the new ``__array_function__`` proto...
astropy/astropy
astropy__astropy-9182
https://github.com/astropy/astropy/pull/9182
diff --git a/CHANGES.rst b/CHANGES.rst index 95e892453abf..e9fc37815558 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -275,9 +275,28 @@ astropy.utils coordinate transformations can now be set, either in a context or per session, using ``astropy.utils.iers.earth_rotation_table``. [#9244] +- Added ``export_cache`...
diff --git a/astropy/utils/tests/test_data.py b/astropy/utils/tests/test_data.py index 0e07a524a605..099a6413f85d 100644 --- a/astropy/utils/tests/test_data.py +++ b/astropy/utils/tests/test_data.py @@ -1,26 +1,63 @@ # -*- coding: utf-8 -*- # Licensed under a 3-clause BSD style license - see LICENSE.rst -import has...
[ { "path": "CHANGES.rst", "old_path": "a/CHANGES.rst", "new_path": "b/CHANGES.rst", "metadata": "diff --git a/CHANGES.rst b/CHANGES.rst\nindex 95e892453abf..e9fc37815558 100644\n--- a/CHANGES.rst\n+++ b/CHANGES.rst\n@@ -275,9 +275,28 @@ astropy.utils\n coordinate transformations can now be set, eit...
4.0
8511aa6aa27d92f58d85410564b9e3c1ba89e724
[]
[ "astropy/utils/tests/test_data.py::test_download_parallel_with_empty_sources", "astropy/utils/tests/test_data.py::test_download_file_schedules_deletion", "astropy/utils/tests/test_data.py::test_get_fileobj_localpath", "astropy/utils/tests/test_data.py::test_path_objects_get_readable_fileobj", "astropy/utils...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [ { "type": "field", "name": "check_hashes" }, { "type": "field", "name": "TemporaryDirectory" }, {...
[ { "path": "CHANGES.rst", "old_path": "a/CHANGES.rst", "new_path": "b/CHANGES.rst", "metadata": "diff --git a/CHANGES.rst b/CHANGES.rst\nindex 95e892453abf..e9fc37815558 100644\n--- a/CHANGES.rst\n+++ b/CHANGES.rst\n@@ -275,9 +275,28 @@ astropy.utils\n coordinate transformations can now be set, eit...
diff --git a/CHANGES.rst b/CHANGES.rst index 95e892453abf..e9fc37815558 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -275,9 +275,28 @@ astropy.utils coordinate transformations can now be set, either in a context or per session, using ``astropy.utils.iers.earth_rotation_table``. [#<PRID>] +- Added ``export_cach...
astropy/astropy
astropy__astropy-9244
https://github.com/astropy/astropy/pull/9244
diff --git a/CHANGES.rst b/CHANGES.rst index d7fe12596a00..40b457f2cbca 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -237,6 +237,10 @@ astropy.utils to return the smallest array that can be broadcasted back to the initial array. [#9209] +- The specific IERS Earth rotation parameter table used for time and + c...
diff --git a/astropy/coordinates/tests/test_iau_fullstack.py b/astropy/coordinates/tests/test_iau_fullstack.py index cd788834326b..996800b55b24 100644 --- a/astropy/coordinates/tests/test_iau_fullstack.py +++ b/astropy/coordinates/tests/test_iau_fullstack.py @@ -117,7 +117,8 @@ def test_iau_fullstack(fullstack_icrs, fu...
[ { "path": "CHANGES.rst", "old_path": "a/CHANGES.rst", "new_path": "b/CHANGES.rst", "metadata": "diff --git a/CHANGES.rst b/CHANGES.rst\nindex d7fe12596a00..40b457f2cbca 100644\n--- a/CHANGES.rst\n+++ b/CHANGES.rst\n@@ -237,6 +237,10 @@ astropy.utils\n to return the smallest array that can be broad...
4.0
c09090c454e3df1adb7dd108c46152ba6a01393f
[ "astropy/coordinates/tests/test_regression.py::test_regression_5209", "astropy/coordinates/tests/test_intermediate_transformations.py::test_gcrs_self_transform_closeby", "astropy/coordinates/tests/test_intermediate_transformations.py::test_icrs_gcrs[icoo0]", "astropy/coordinates/tests/test_intermediate_transf...
[ "astropy/time/tests/test_ut1.py::TestTimeUT1SpecificIERSTable::test_ut1_iers_B", "astropy/coordinates/tests/test_iau_fullstack.py::test_future_altaz", "astropy/coordinates/tests/test_regression.py::test_regression_futuretimes_4302" ]
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "CHANGES.rst", "old_path": "a/CHANGES.rst", "new_path": "b/CHANGES.rst", "metadata": "diff --git a/CHANGES.rst b/CHANGES.rst\nindex d7fe12596a00..40b457f2cbca 100644\n--- a/CHANGES.rst\n+++ b/CHANGES.rst\n@@ -237,6 +237,10 @@ astropy.utils\n to return the smallest array that can be broad...
diff --git a/CHANGES.rst b/CHANGES.rst index d7fe12596a00..40b457f2cbca 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -237,6 +237,10 @@ astropy.utils to return the smallest array that can be broadcasted back to the initial array. [#<PRID>] +- The specific IERS Earth rotation parameter table used for time and + ...
astropy/astropy
astropy__astropy-8782
https://github.com/astropy/astropy/pull/8782
diff --git a/CHANGES.rst b/CHANGES.rst index 6a32d019f35b..b36cf5513575 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -80,6 +80,9 @@ astropy.utils astropy.visualization ^^^^^^^^^^^^^^^^^^^^^ +- Added a new ``time_support`` context manager/function for making it easy to + plot and format ``Time`` objects in Matplot...
diff --git a/astropy/visualization/tests/test_time.py b/astropy/visualization/tests/test_time.py new file mode 100644 index 000000000000..d547f7ad5848 --- /dev/null +++ b/astropy/visualization/tests/test_time.py @@ -0,0 +1,189 @@ +# -*- coding: utf-8 -*- +# Licensed under a 3-clause BSD style license - see LICENSE.rst ...
[ { "path": "CHANGES.rst", "old_path": "a/CHANGES.rst", "new_path": "b/CHANGES.rst", "metadata": "diff --git a/CHANGES.rst b/CHANGES.rst\nindex 6a32d019f35b..b36cf5513575 100644\n--- a/CHANGES.rst\n+++ b/CHANGES.rst\n@@ -80,6 +80,9 @@ astropy.utils\n astropy.visualization\n ^^^^^^^^^^^^^^^^^^^^^\n \n+...
4.0
41930f717a58c649e3b1e138dfe8fabcf4af2445
[]
[ "astropy/visualization/tests/test_time.py::test_formatter_locator[interval2-expected2]", "astropy/visualization/tests/test_time.py::test_auto_formats[jyear_str-expected10]", "astropy/visualization/tests/test_time.py::test_auto_formats[gps-expected5]", "astropy/visualization/tests/test_time.py::test_formats[cx...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [ { "type": "field", "name": "simplify" }, { "type": "file", "name": "astropy/visualization/time.py" } ...
[ { "path": "CHANGES.rst", "old_path": "a/CHANGES.rst", "new_path": "b/CHANGES.rst", "metadata": "diff --git a/CHANGES.rst b/CHANGES.rst\nindex 6a32d019f35b..b36cf5513575 100644\n--- a/CHANGES.rst\n+++ b/CHANGES.rst\n@@ -80,6 +80,9 @@ astropy.utils\n astropy.visualization\n ^^^^^^^^^^^^^^^^^^^^^\n \n+...
diff --git a/CHANGES.rst b/CHANGES.rst index 6a32d019f35b..b36cf5513575 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -80,6 +80,9 @@ astropy.utils astropy.visualization ^^^^^^^^^^^^^^^^^^^^^ +- Added a new ``time_support`` context manager/function for making it easy to + plot and format ``Time`` objects in Matplot...
astropy/astropy
astropy__astropy-9365
https://github.com/astropy/astropy/pull/9365
diff --git a/.travis.yml b/.travis.yml index 674b03755c6a..28a1f638249d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -20,11 +20,13 @@ sudo: false # The apt packages below are needed for sphinx builds, which can no longer # be installed with sudo apt-get. +# tzdata is included to ensure system leap seconds are up t...
diff --git a/astropy/_erfa/tests/test_erfa.py b/astropy/_erfa/tests/test_erfa.py index 358659a9c019..1055b81f1b2a 100644 --- a/astropy/_erfa/tests/test_erfa.py +++ b/astropy/_erfa/tests/test_erfa.py @@ -6,6 +6,7 @@ from numpy.testing import assert_array_equal from astropy import _erfa as erfa +from astropy.time imp...
[ { "path": "CHANGES.rst", "old_path": "a/CHANGES.rst", "new_path": "b/CHANGES.rst", "metadata": "diff --git a/CHANGES.rst b/CHANGES.rst\nindex 80af48861d8d..8182c0594076 100644\n--- a/CHANGES.rst\n+++ b/CHANGES.rst\n@@ -241,6 +241,9 @@ astropy.utils\n coordinate transformations can now be set, eith...
4.0
c5d03e3ed99e1469911d6707ec6bbe35bad6dbd0
[ "astropy/_erfa/tests/test_erfa.py::test_spherical_cartesian", "astropy/_erfa/tests/test_erfa.py::test_float32_input", "astropy/_erfa/tests/test_erfa.py::test_pv_in", "astropy/_erfa/tests/test_erfa.py::TestLeapSecondsBasics::test_leap_seconds_expires", "astropy/_erfa/tests/test_erfa.py::TestLeapSeconds::test...
[ "astropy/utils/iers/tests/test_leap_second.py::TestReading::test_open_leap_second_dat", "astropy/utils/iers/tests/test_leap_second.py::test_configuration", "astropy/utils/iers/tests/test_leap_second.py::TestReading::test_read_leap_second_dat", "astropy/utils/iers/tests/test_leap_second.py::TestDefaultAutoOpen...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [ { "type": "field", "name": "_expires" }, { "type": "function", "name": "from_leap_seconds_list" }, ...
[ { "path": "CHANGES.rst", "old_path": "a/CHANGES.rst", "new_path": "b/CHANGES.rst", "metadata": "diff --git a/CHANGES.rst b/CHANGES.rst\nindex 80af48861d8d..8182c0594076 100644\n--- a/CHANGES.rst\n+++ b/CHANGES.rst\n@@ -241,6 +241,9 @@ astropy.utils\n coordinate transformations can now be set, eith...
diff --git a/CHANGES.rst b/CHANGES.rst index 80af48861d8d..8182c0594076 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -241,6 +241,9 @@ astropy.utils coordinate transformations can now be set, either in a context or per session, using ``astropy.utils.iers.earth_rotation_table``. [#<PRID>] +- A new ``astropy.util...
astropy/astropy
astropy__astropy-9266
https://github.com/astropy/astropy/pull/9266
diff --git a/CHANGES.rst b/CHANGES.rst index 5e6f37bf038d..47c73d8d4e87 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -193,6 +193,7 @@ astropy.visualization - Improved error checking for the ``slices=`` argument to ``WCSAxes``. [#9098] - Added support for more solar frames in WCSAxes. [#9275] +- Add support for one...
diff --git a/astropy/visualization/wcsaxes/tests/test_images.py b/astropy/visualization/wcsaxes/tests/test_images.py index 55d6b659b3a5..e7913bb06401 100644 --- a/astropy/visualization/wcsaxes/tests/test_images.py +++ b/astropy/visualization/wcsaxes/tests/test_images.py @@ -748,3 +748,58 @@ def test_tick_params(self): ...
[ { "path": "CHANGES.rst", "old_path": "a/CHANGES.rst", "new_path": "b/CHANGES.rst", "metadata": "diff --git a/CHANGES.rst b/CHANGES.rst\nindex 5e6f37bf038d..47c73d8d4e87 100644\n--- a/CHANGES.rst\n+++ b/CHANGES.rst\n@@ -193,6 +193,7 @@ astropy.visualization\n - Improved error checking for the ``slice...
4.0
bf4e4de4a6d1ceb1db10f5850a90cce476348903
[]
[ "astropy/visualization/wcsaxes/tests/test_wcsapi.py::test_coord_type_from_ctype", "astropy/visualization/wcsaxes/tests/test_wcsapi.py::test_3d", "astropy/visualization/wcsaxes/tests/test_wcsapi.py::test_shorthand_inversion", "astropy/visualization/wcsaxes/tests/test_wcsapi.py::test_coord_type_1d_1d_wcs", "a...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [ { "type": "field", "name": "RectangularFrame1D" }, { "type": "field", "name": "RectangularFrame1D" },...
[ { "path": "CHANGES.rst", "old_path": "a/CHANGES.rst", "new_path": "b/CHANGES.rst", "metadata": "diff --git a/CHANGES.rst b/CHANGES.rst\nindex 5e6f37bf038d..47c73d8d4e87 100644\n--- a/CHANGES.rst\n+++ b/CHANGES.rst\n@@ -193,6 +193,7 @@ astropy.visualization\n - Improved error checking for the ``slice...
diff --git a/CHANGES.rst b/CHANGES.rst index 5e6f37bf038d..47c73d8d4e87 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -193,6 +193,7 @@ astropy.visualization - Improved error checking for the ``slices=`` argument to ``WCSAxes``. [#<PRID>] - Added support for more solar frames in WCSAxes. [#<PRID>] +- Add support for...
django/django
django__django-16746
https://github.com/django/django/pull/16746
diff --git a/django/core/paginator.py b/django/core/paginator.py index 131ea0f81121..7b3189cc8b28 100644 --- a/django/core/paginator.py +++ b/django/core/paginator.py @@ -28,13 +28,30 @@ class Paginator: # Translators: String used to replace omitted page numbers in elided page # range generated by paginators,...
diff --git a/tests/pagination/tests.py b/tests/pagination/tests.py index a04b6dfe8a2c..1fa9ea2f026f 100644 --- a/tests/pagination/tests.py +++ b/tests/pagination/tests.py @@ -128,6 +128,34 @@ def test_invalid_page_number(self): with self.assertRaises(PageNotAnInteger): paginator.validate_number(1....
[ { "path": "docs/ref/paginator.txt", "old_path": "a/docs/ref/paginator.txt", "new_path": "b/docs/ref/paginator.txt", "metadata": "diff --git a/docs/ref/paginator.txt b/docs/ref/paginator.txt\nindex 670c06e6a819..8afadbe6f8e4 100644\n--- a/docs/ref/paginator.txt\n+++ b/docs/ref/paginator.txt\n@@ -14,7...
5.1
041b0a359a0a80e147b47c6ae5f11bca9dd3b28a
[]
[ "test_paginate_misc_classes (pagination.tests.PaginationTests)", "test_float_integer_page (pagination.tests.PaginationTests)", "test_get_elided_page_range (pagination.tests.PaginationTests)", "test_paginator_iteration (pagination.tests.PaginationTests)", "test_invalid_page_number (pagination.tests.Paginatio...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "docs/ref/paginator.txt", "old_path": "a/docs/ref/paginator.txt", "new_path": "b/docs/ref/paginator.txt", "metadata": "diff --git a/docs/ref/paginator.txt b/docs/ref/paginator.txt\nindex 670c06e6a819..8afadbe6f8e4 100644\n--- a/docs/ref/paginator.txt\n+++ b/docs/ref/paginator.txt\n@@ -14,7...
diff --git a/docs/ref/paginator.txt b/docs/ref/paginator.txt index 670c06e6a819..8afadbe6f8e4 100644 --- a/docs/ref/paginator.txt +++ b/docs/ref/paginator.txt @@ -14,7 +14,7 @@ For examples, see the :doc:`Pagination topic guide </topics/pagination>`. ``Paginator`` class =================== -.. class:: Paginator(obj...
django/django
django__django-16560
https://github.com/django/django/pull/16560
diff --git a/django/contrib/postgres/constraints.py b/django/contrib/postgres/constraints.py index ad3a5f61f55f..c61072b5a54c 100644 --- a/django/contrib/postgres/constraints.py +++ b/django/contrib/postgres/constraints.py @@ -32,6 +32,7 @@ def __init__( condition=None, deferrable=None, inclu...
diff --git a/tests/constraints/tests.py b/tests/constraints/tests.py index b45dc6499a3f..ec2b030ac5d0 100644 --- a/tests/constraints/tests.py +++ b/tests/constraints/tests.py @@ -77,17 +77,26 @@ def test_custom_violation_error_message_clone(self): "custom base_name message", ) + def test_cust...
[ { "path": "docs/ref/contrib/postgres/constraints.txt", "old_path": "a/docs/ref/contrib/postgres/constraints.txt", "new_path": "b/docs/ref/contrib/postgres/constraints.txt", "metadata": "diff --git a/docs/ref/contrib/postgres/constraints.txt b/docs/ref/contrib/postgres/constraints.txt\nindex fcf50b8b...
5.1
51c9bb7cd16081133af4f0ab6d06572660309730
[]
[ "test_database_constraint_unicode (constraints.tests.CheckConstraintTests)", "test_deconstruction_with_expressions (constraints.tests.UniqueConstraintTests)", "test_deconstruction (constraints.tests.BaseConstraintTests)", "test_custom_violation_error_message (constraints.tests.BaseConstraintTests)", "test_d...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "docs/ref/contrib/postgres/constraints.txt", "old_path": "a/docs/ref/contrib/postgres/constraints.txt", "new_path": "b/docs/ref/contrib/postgres/constraints.txt", "metadata": "diff --git a/docs/ref/contrib/postgres/constraints.txt b/docs/ref/contrib/postgres/constraints.txt\nindex fcf50b8b...
diff --git a/docs/ref/contrib/postgres/constraints.txt b/docs/ref/contrib/postgres/constraints.txt index fcf50b8b5f97..abc5e4e4e460 100644 --- a/docs/ref/contrib/postgres/constraints.txt +++ b/docs/ref/contrib/postgres/constraints.txt @@ -12,7 +12,7 @@ PostgreSQL supports additional data integrity constraints available...
django/django
django__django-14751
https://github.com/django/django/pull/14751
diff --git a/django/core/management/commands/makemigrations.py b/django/core/management/commands/makemigrations.py index 4d26bfe278a3..4349f33a61d6 100644 --- a/django/core/management/commands/makemigrations.py +++ b/django/core/management/commands/makemigrations.py @@ -57,9 +57,20 @@ def add_arguments(self, parser): ...
diff --git a/tests/migrations/test_commands.py b/tests/migrations/test_commands.py index ef5db241d65d..f274c8486b48 100644 --- a/tests/migrations/test_commands.py +++ b/tests/migrations/test_commands.py @@ -1667,6 +1667,47 @@ class Meta: self.assertIn("model_name='sillymodel',", out.getvalue()) self.a...
[ { "path": "docs/ref/django-admin.txt", "old_path": "a/docs/ref/django-admin.txt", "new_path": "b/docs/ref/django-admin.txt", "metadata": "diff --git a/docs/ref/django-admin.txt b/docs/ref/django-admin.txt\nindex 6188324d5244..78770fbf72f3 100644\n--- a/docs/ref/django-admin.txt\n+++ b/docs/ref/djang...
4.2
274771df9133542df048cc104c19e7756f9d3715
[ "test_squashmigrations_valid_start (migrations.test_commands.SquashMigrationsTests)", "test_makemigrations_app_name_specified_as_label (migrations.test_commands.AppLabelErrorTests)", "test_sqlmigrate_nonexistent_app_label (migrations.test_commands.AppLabelErrorTests)", "test_ticket_23799_squashmigrations_no_o...
[ "test_makemigrations_interactive_accept (migrations.test_commands.MakeMigrationsTests)", "test_files_content (migrations.test_commands.MakeMigrationsTests)", "test_showmigrations_no_migrations (migrations.test_commands.MigrateTests)", "test_makemigrations_empty_migration (migrations.test_commands.MakeMigratio...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "docs/ref/django-admin.txt", "old_path": "a/docs/ref/django-admin.txt", "new_path": "b/docs/ref/django-admin.txt", "metadata": "diff --git a/docs/ref/django-admin.txt b/docs/ref/django-admin.txt\nindex 6188324d5244..78770fbf72f3 100644\n--- a/docs/ref/django-admin.txt\n+++ b/docs/ref/djang...
diff --git a/docs/ref/django-admin.txt b/docs/ref/django-admin.txt index 6188324d5244..78770fbf72f3 100644 --- a/docs/ref/django-admin.txt +++ b/docs/ref/django-admin.txt @@ -825,6 +825,13 @@ Generate migration files without Django version and timestamp header. Makes ``makemigrations`` exit with a non-zero status when...
django/django
django__django-16514
https://github.com/django/django/pull/16514
diff --git a/django/contrib/admin/sites.py b/django/contrib/admin/sites.py index 34477900f127..61be31d890dd 100644 --- a/django/contrib/admin/sites.py +++ b/django/contrib/admin/sites.py @@ -336,6 +336,7 @@ def each_context(self, request): "available_apps": self.get_app_list(request), "is_popu...
diff --git a/tests/admin_changelist/tests.py b/tests/admin_changelist/tests.py index a2db24fea1d9..413d6d4d7f70 100644 --- a/tests/admin_changelist/tests.py +++ b/tests/admin_changelist/tests.py @@ -1595,7 +1595,12 @@ def test_custom_user_pk_not_named_id(self): {% get_admin_log %} works if the user model's pri...
[ { "path": "docs/ref/contrib/admin/index.txt", "old_path": "a/docs/ref/contrib/admin/index.txt", "new_path": "b/docs/ref/contrib/admin/index.txt", "metadata": "diff --git a/docs/ref/contrib/admin/index.txt b/docs/ref/contrib/admin/index.txt\nindex f6db3dca4fa6..eb6ae1ecc2d6 100644\n--- a/docs/ref/con...
5.1
1964e4367f293336b47e30af6e10a5eca5fdfb35
[ "test_computed_list_display_localization (admin_changelist.tests.ChangeListTests)", "test_log_action (admin_utils.test_logentry.LogEntryTests)", "test_action_flag_choices (admin_utils.test_logentry.LogEntryTests)", "test_total_ordering_optimization (admin_changelist.tests.ChangeListTests)", "test_changelist...
[ "test_hook_get_log_entries (admin_utils.test_logentry.LogEntryTests)" ]
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [ { "type": "field", "name": "objects" } ] }
[ { "path": "docs/ref/contrib/admin/index.txt", "old_path": "a/docs/ref/contrib/admin/index.txt", "new_path": "b/docs/ref/contrib/admin/index.txt", "metadata": "diff --git a/docs/ref/contrib/admin/index.txt b/docs/ref/contrib/admin/index.txt\nindex f6db3dca4fa6..eb6ae1ecc2d6 100644\n--- a/docs/ref/con...
diff --git a/docs/ref/contrib/admin/index.txt b/docs/ref/contrib/admin/index.txt index f6db3dca4fa6..eb6ae1ecc2d6 100644 --- a/docs/ref/contrib/admin/index.txt +++ b/docs/ref/contrib/admin/index.txt @@ -2832,6 +2832,7 @@ Templates can override or extend base admin templates as described in * ``is_popup``: whethe...
django/django
django__django-17049
https://github.com/django/django/pull/17049
diff --git a/django/contrib/admin/checks.py b/django/contrib/admin/checks.py index 45d895dff066..f5aa9b55d467 100644 --- a/django/contrib/admin/checks.py +++ b/django/contrib/admin/checks.py @@ -220,6 +220,8 @@ def _check_autocomplete_fields_item(self, obj, field_name, label): ManyToManyField and that the item...
diff --git a/tests/admin_changelist/tests.py b/tests/admin_changelist/tests.py index aabe8bedc853..5be3107b27f1 100644 --- a/tests/admin_changelist/tests.py +++ b/tests/admin_changelist/tests.py @@ -888,7 +888,7 @@ def test_dynamic_list_display(self): user_parents = self._create_superuser("parents") ...
[ { "path": "docs/ref/contrib/admin/index.txt", "old_path": "a/docs/ref/contrib/admin/index.txt", "new_path": "b/docs/ref/contrib/admin/index.txt", "metadata": "diff --git a/docs/ref/contrib/admin/index.txt b/docs/ref/contrib/admin/index.txt\nindex 2ae7e3958f78..c8965f9b74d1 100644\n--- a/docs/ref/con...
5.1
95cdf9dc6627135f3893095892816eb3f2785e2e
[ "test_nested_fieldsets (admin_checks.tests.SystemChecksTestCase)", "test_readonly_method_on_model (admin_checks.tests.SystemChecksTestCase)", "test_middleware_subclasses (admin_checks.tests.SystemChecksTestCase)", "test_several_templates_backends (admin_checks.tests.SystemChecksTestCase)", "test_app_label_i...
[ "test_computed_list_display_localization (admin_changelist.tests.ChangeListTests)", "test_admin_with_no_ordering_fallback_to_model_ordering (admin_ordering.tests.TestRelatedFieldsAdminOrdering)", "test_total_ordering_optimization (admin_changelist.tests.ChangeListTests)", "test_changelist_search_form_validati...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "docs/ref/contrib/admin/index.txt", "old_path": "a/docs/ref/contrib/admin/index.txt", "new_path": "b/docs/ref/contrib/admin/index.txt", "metadata": "diff --git a/docs/ref/contrib/admin/index.txt b/docs/ref/contrib/admin/index.txt\nindex 2ae7e3958f78..c8965f9b74d1 100644\n--- a/docs/ref/con...
diff --git a/docs/ref/contrib/admin/index.txt b/docs/ref/contrib/admin/index.txt index 2ae7e3958f78..c8965f9b74d1 100644 --- a/docs/ref/contrib/admin/index.txt +++ b/docs/ref/contrib/admin/index.txt @@ -3024,6 +3024,13 @@ Templates can override or extend base admin templates as described in Raises ``django.contrib...
django/django
django__django-16369
https://github.com/django/django/pull/16369
diff --git a/django/contrib/sitemaps/__init__.py b/django/contrib/sitemaps/__init__.py index 3d276b60d490..df57f1cd5c70 100644 --- a/django/contrib/sitemaps/__init__.py +++ b/django/contrib/sitemaps/__init__.py @@ -92,6 +92,10 @@ def _get(self, name, item, default=None): return attr(item) return a...
diff --git a/tests/sitemaps_tests/test_http.py b/tests/sitemaps_tests/test_http.py index 8c16f66896bd..12e387757be7 100644 --- a/tests/sitemaps_tests/test_http.py +++ b/tests/sitemaps_tests/test_http.py @@ -10,7 +10,7 @@ from django.utils.formats import localize from .base import SitemapTestsBase -from .models impo...
[ { "path": "docs/ref/contrib/sitemaps.txt", "old_path": "a/docs/ref/contrib/sitemaps.txt", "new_path": "b/docs/ref/contrib/sitemaps.txt", "metadata": "diff --git a/docs/ref/contrib/sitemaps.txt b/docs/ref/contrib/sitemaps.txt\nindex d3225405a38d..7dc3dced5183 100644\n--- a/docs/ref/contrib/sitemaps.t...
4.2
ab7a85ac297464df82d8363455609979ca3603db
[]
[ "test_sitemap_without_entries (sitemaps_tests.test_http.HTTPSitemapTests)", "test_language_for_item_i18n_sitemap (sitemaps_tests.test_http.HTTPSitemapTests)", "test_sitemap_get_latest_lastmod_none (sitemaps_tests.test_http.HTTPSitemapTests)", "test_sitemap_get_urls_no_site_2 (sitemaps_tests.test_http.HTTPSite...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "docs/ref/contrib/sitemaps.txt", "old_path": "a/docs/ref/contrib/sitemaps.txt", "new_path": "b/docs/ref/contrib/sitemaps.txt", "metadata": "diff --git a/docs/ref/contrib/sitemaps.txt b/docs/ref/contrib/sitemaps.txt\nindex d3225405a38d..7dc3dced5183 100644\n--- a/docs/ref/contrib/sitemaps.t...
diff --git a/docs/ref/contrib/sitemaps.txt b/docs/ref/contrib/sitemaps.txt index d3225405a38d..7dc3dced5183 100644 --- a/docs/ref/contrib/sitemaps.txt +++ b/docs/ref/contrib/sitemaps.txt @@ -311,6 +311,15 @@ Note: The latest ``lastmod`` returned by calling the method with all items returned by :me...
django/django
django__django-16411
https://github.com/django/django/pull/16411
diff --git a/django/contrib/staticfiles/storage.py b/django/contrib/staticfiles/storage.py index eae25ba73748..c09f01e44622 100644 --- a/django/contrib/staticfiles/storage.py +++ b/django/contrib/staticfiles/storage.py @@ -439,7 +439,7 @@ def stored_name(self, name): class ManifestFilesMixin(HashedFilesMixin): - ...
diff --git a/tests/staticfiles_tests/project/documents/staticfiles_v1.json b/tests/staticfiles_tests/project/documents/staticfiles_v1.json new file mode 100644 index 000000000000..4f85945e3f20 --- /dev/null +++ b/tests/staticfiles_tests/project/documents/staticfiles_v1.json @@ -0,0 +1,6 @@ +{ + "version": "1.0", + "p...
[ { "path": "docs/ref/contrib/staticfiles.txt", "old_path": "a/docs/ref/contrib/staticfiles.txt", "new_path": "b/docs/ref/contrib/staticfiles.txt", "metadata": "diff --git a/docs/ref/contrib/staticfiles.txt b/docs/ref/contrib/staticfiles.txt\nindex 0f0e8d8001ef..7ca3584c33c8 100644\n--- a/docs/ref/con...
4.2
75500feecddcb27b6ab65c9057e7317024cef761
[ "test_save_manifest_override (staticfiles_tests.test_storage.TestCustomManifestStorage)", "test_collect_static_files_default_permissions (staticfiles_tests.test_storage.TestStaticFilePermissions)", "test_read_manifest (staticfiles_tests.test_storage.TestCustomManifestStorage)", "test_read_manifest_nonexistent...
[ "test_template_tag_simple_content (staticfiles_tests.test_storage.TestCollectionManifestStorage)", "test_multi_extension_patterns (staticfiles_tests.test_storage.TestExtraPatternsStorage)", "test_template_tag_deep_relative (staticfiles_tests.test_storage.TestCollectionManifestStorage)", "test_template_tag_ret...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "docs/ref/contrib/staticfiles.txt", "old_path": "a/docs/ref/contrib/staticfiles.txt", "new_path": "b/docs/ref/contrib/staticfiles.txt", "metadata": "diff --git a/docs/ref/contrib/staticfiles.txt b/docs/ref/contrib/staticfiles.txt\nindex 0f0e8d8001ef..7ca3584c33c8 100644\n--- a/docs/ref/con...
diff --git a/docs/ref/contrib/staticfiles.txt b/docs/ref/contrib/staticfiles.txt index 0f0e8d8001ef..7ca3584c33c8 100644 --- a/docs/ref/contrib/staticfiles.txt +++ b/docs/ref/contrib/staticfiles.txt @@ -336,6 +336,14 @@ argument. For example:: Support for finding paths to JavaScript modules in ``import`` and ...
django/django
django__django-15669
https://github.com/django/django/pull/15669
diff --git a/django/core/management/commands/makemigrations.py b/django/core/management/commands/makemigrations.py index 8938fb6309ca..2e97d9064ba4 100644 --- a/django/core/management/commands/makemigrations.py +++ b/django/core/management/commands/makemigrations.py @@ -11,6 +11,8 @@ from django.db.migrations import M...
diff --git a/tests/migrations/test_commands.py b/tests/migrations/test_commands.py index a3e1efc924bd..3c98ddd8db7b 100644 --- a/tests/migrations/test_commands.py +++ b/tests/migrations/test_commands.py @@ -2584,6 +2584,108 @@ def test_makemigrations_continues_number_sequence_after_squash(self): out_value ...
[ { "path": "docs/ref/django-admin.txt", "old_path": "a/docs/ref/django-admin.txt", "new_path": "b/docs/ref/django-admin.txt", "metadata": "diff --git a/docs/ref/django-admin.txt b/docs/ref/django-admin.txt\nindex 25a1107c5573..5016b25ea2d3 100644\n--- a/docs/ref/django-admin.txt\n+++ b/docs/ref/djang...
4.2
2a2bde52f31e09e95ce616e8e6bc0ffeb68f76c9
[ "test_squashmigrations_valid_start (migrations.test_commands.SquashMigrationsTests)", "test_no_optimization_possible (migrations.test_commands.OptimizeMigrationTests)", "test_makemigrations_app_name_specified_as_label (migrations.test_commands.AppLabelErrorTests)", "test_sqlmigrate_nonexistent_app_label (migr...
[ "test_makemigrations_interactive_accept (migrations.test_commands.MakeMigrationsTests)", "test_files_content (migrations.test_commands.MakeMigrationsTests)", "test_showmigrations_no_migrations (migrations.test_commands.MigrateTests)", "test_makemigrations_empty_migration (migrations.test_commands.MakeMigratio...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "docs/ref/django-admin.txt", "old_path": "a/docs/ref/django-admin.txt", "new_path": "b/docs/ref/django-admin.txt", "metadata": "diff --git a/docs/ref/django-admin.txt b/docs/ref/django-admin.txt\nindex 25a1107c5573..5016b25ea2d3 100644\n--- a/docs/ref/django-admin.txt\n+++ b/docs/ref/djang...
diff --git a/docs/ref/django-admin.txt b/docs/ref/django-admin.txt index 25a1107c5573..5016b25ea2d3 100644 --- a/docs/ref/django-admin.txt +++ b/docs/ref/django-admin.txt @@ -832,6 +832,13 @@ migrations are detected. Diverts log output and input prompts to ``stderr``, writing only paths of generated migration files t...
django/django
django__django-15272
https://github.com/django/django/pull/15272
diff --git a/django/core/management/commands/optimizemigration.py b/django/core/management/commands/optimizemigration.py new file mode 100644 index 000000000000..7651c3986603 --- /dev/null +++ b/django/core/management/commands/optimizemigration.py @@ -0,0 +1,121 @@ +import sys + +from django.apps import apps +from djan...
diff --git a/tests/migrations/test_commands.py b/tests/migrations/test_commands.py index 4d7918238ed0..27a1ff651961 100644 --- a/tests/migrations/test_commands.py +++ b/tests/migrations/test_commands.py @@ -2810,3 +2810,163 @@ def test_squashmigrations_nonexistent_app_label(self): def test_squashmigrations_app_nam...
[ { "path": "docs/ref/django-admin.txt", "old_path": "a/docs/ref/django-admin.txt", "new_path": "b/docs/ref/django-admin.txt", "metadata": "diff --git a/docs/ref/django-admin.txt b/docs/ref/django-admin.txt\nindex 793461c2656f..326611d786a4 100644\n--- a/docs/ref/django-admin.txt\n+++ b/docs/ref/djang...
4.2
847f46e9bf88964484c8b76a10af753ea1018311
[]
[ "test_makemigrations_interactive_accept (migrations.test_commands.MakeMigrationsTests)", "test_files_content (migrations.test_commands.MakeMigrationsTests)", "test_showmigrations_no_migrations (migrations.test_commands.MigrateTests)", "test_makemigrations_empty_migration (migrations.test_commands.MakeMigratio...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [ { "type": "field", "name": "dependencies" }, { "type": "file", "name": "django/core/management/commands/o...
[ { "path": "docs/ref/django-admin.txt", "old_path": "a/docs/ref/django-admin.txt", "new_path": "b/docs/ref/django-admin.txt", "metadata": "diff --git a/docs/ref/django-admin.txt b/docs/ref/django-admin.txt\nindex 793461c2656f..326611d786a4 100644\n--- a/docs/ref/django-admin.txt\n+++ b/docs/ref/djang...
diff --git a/docs/ref/django-admin.txt b/docs/ref/django-admin.txt index 793461c2656f..326611d786a4 100644 --- a/docs/ref/django-admin.txt +++ b/docs/ref/django-admin.txt @@ -916,6 +916,23 @@ Deletes nonexistent migrations from the ``django_migrations`` table. This is useful when migration files replaced by a squashed...
django/django
django__django-16384
https://github.com/django/django/pull/16384
diff --git a/django/core/handlers/asgi.py b/django/core/handlers/asgi.py index b5372a1d493f..f0125e7321e0 100644 --- a/django/core/handlers/asgi.py +++ b/django/core/handlers/asgi.py @@ -19,6 +19,7 @@ parse_cookie, ) from django.urls import set_script_prefix +from django.utils.asyncio import aclosing from djang...
diff --git a/tests/asgi/tests.py b/tests/asgi/tests.py index 4e51c2d9fec4..61d040b45b54 100644 --- a/tests/asgi/tests.py +++ b/tests/asgi/tests.py @@ -12,6 +12,7 @@ from django.test import ( AsyncRequestFactory, SimpleTestCase, + ignore_warnings, modify_settings, override_settings, ) @@ -58,6 +...
[ { "path": "docs/ref/request-response.txt", "old_path": "a/docs/ref/request-response.txt", "new_path": "b/docs/ref/request-response.txt", "metadata": "diff --git a/docs/ref/request-response.txt b/docs/ref/request-response.txt\nindex 34a31c493628..ebcd9ee523dd 100644\n--- a/docs/ref/request-response.t...
4.2
ae0899be0d787fbfc5f5ab2b18c5a8219d822d2b
[ "test_iterator_isnt_rewound (httpwrappers.tests.HttpResponseTests)", "test_instantiate_with_headers (httpwrappers.tests.HttpResponseTests)", "test_not_modified (httpwrappers.tests.HttpResponseSubclassesTests)", "test_file_interface (httpwrappers.tests.HttpResponseTests)", "test_redirect_repr (httpwrappers.t...
[ "test_response_redirect_class (middleware.tests.CommonMiddlewareTest)", "test_append_slash_no_redirect_on_POST_in_DEBUG (middleware.tests.CommonMiddlewareTest)", "test_fromkeys_with_nondefault_encoding (httpwrappers.tests.QueryDictTests)", "test_compress_streaming_response_unicode (middleware.tests.GZipMiddle...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [ { "type": "field", "name": "Warning" }, { "type": "field", "name": "__aiter__" }, { "type":...
[ { "path": "docs/ref/request-response.txt", "old_path": "a/docs/ref/request-response.txt", "new_path": "b/docs/ref/request-response.txt", "metadata": "diff --git a/docs/ref/request-response.txt b/docs/ref/request-response.txt\nindex 34a31c493628..ebcd9ee523dd 100644\n--- a/docs/ref/request-response.t...
diff --git a/docs/ref/request-response.txt b/docs/ref/request-response.txt index 34a31c493628..ebcd9ee523dd 100644 --- a/docs/ref/request-response.txt +++ b/docs/ref/request-response.txt @@ -1116,43 +1116,76 @@ parameter to the constructor method:: .. class:: StreamingHttpResponse The :class:`StreamingHttpResponse`...
django/django
django__django-15412
https://github.com/django/django/pull/15412
diff --git a/django/core/management/commands/makemigrations.py b/django/core/management/commands/makemigrations.py index 5afa2091369a..8938fb6309ca 100644 --- a/django/core/management/commands/makemigrations.py +++ b/django/core/management/commands/makemigrations.py @@ -6,6 +6,7 @@ from django.apps import apps from d...
diff --git a/tests/admin_scripts/custom_templates/project_template/manage.py-tpl b/tests/admin_scripts/custom_templates/project_template/manage.py-tpl index d9843c433fae..42a1fa668467 100755 --- a/tests/admin_scripts/custom_templates/project_template/manage.py-tpl +++ b/tests/admin_scripts/custom_templates/project_temp...
[ { "path": "docs/ref/django-admin.txt", "old_path": "a/docs/ref/django-admin.txt", "new_path": "b/docs/ref/django-admin.txt", "metadata": "diff --git a/docs/ref/django-admin.txt b/docs/ref/django-admin.txt\nindex a60c5383316c..793461c2656f 100644\n--- a/docs/ref/django-admin.txt\n+++ b/docs/ref/djang...
4.2
f9ec777a826816e20e68021c0e73b5a76be650af
[ "test_makemigrations_interactive_accept (migrations.test_commands.MakeMigrationsTests)", "test_files_content (migrations.test_commands.MakeMigrationsTests)", "test_precedence (admin_scripts.tests.Discovery)", "test_showmigrations_no_migrations (migrations.test_commands.MigrateTests)", "test_makemigrations_e...
[ "test_builtin_with_bad_environment (admin_scripts.tests.ManageNoSettings)", "test_builtin_command (admin_scripts.tests.ManageNoSettings)", "test_builtin_with_bad_settings (admin_scripts.tests.ManageNoSettings)" ]
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [ { "type": "field", "name": "which" }, { "type": "field", "name": "shutil" } ] }
[ { "path": "docs/ref/django-admin.txt", "old_path": "a/docs/ref/django-admin.txt", "new_path": "b/docs/ref/django-admin.txt", "metadata": "diff --git a/docs/ref/django-admin.txt b/docs/ref/django-admin.txt\nindex a60c5383316c..793461c2656f 100644\n--- a/docs/ref/django-admin.txt\n+++ b/docs/ref/djang...
diff --git a/docs/ref/django-admin.txt b/docs/ref/django-admin.txt index a60c5383316c..793461c2656f 100644 --- a/docs/ref/django-admin.txt +++ b/docs/ref/django-admin.txt @@ -2050,6 +2050,24 @@ distribution. It enables tab-completion of ``django-admin`` and See :doc:`/howto/custom-management-commands` for how to add...
django/django
django__django-15240
https://github.com/django/django/pull/15240
diff --git a/django/core/management/commands/migrate.py b/django/core/management/commands/migrate.py index 34fcb9bc584d..a4ad1f3e208a 100644 --- a/django/core/management/commands/migrate.py +++ b/django/core/management/commands/migrate.py @@ -67,6 +67,10 @@ def add_arguments(self, parser): '--check', actio...
diff --git a/tests/migrations/test_commands.py b/tests/migrations/test_commands.py index f274c8486b48..5709372cbc1d 100644 --- a/tests/migrations/test_commands.py +++ b/tests/migrations/test_commands.py @@ -1043,6 +1043,92 @@ class Meta(): call_command('migrate', 'migrated_app', 'zero', verbosity=0) ...
[ { "path": "docs/ref/django-admin.txt", "old_path": "a/docs/ref/django-admin.txt", "new_path": "b/docs/ref/django-admin.txt", "metadata": "diff --git a/docs/ref/django-admin.txt b/docs/ref/django-admin.txt\nindex 78770fbf72f3..a60c5383316c 100644\n--- a/docs/ref/django-admin.txt\n+++ b/docs/ref/djang...
4.2
eeff1787b0aa23016e4844c0f537d5093a95a356
[ "test_squashmigrations_valid_start (migrations.test_commands.SquashMigrationsTests)", "test_makemigrations_app_name_specified_as_label (migrations.test_commands.AppLabelErrorTests)", "test_sqlmigrate_nonexistent_app_label (migrations.test_commands.AppLabelErrorTests)", "test_ticket_23799_squashmigrations_no_o...
[ "test_makemigrations_interactive_accept (migrations.test_commands.MakeMigrationsTests)", "test_files_content (migrations.test_commands.MakeMigrationsTests)", "test_showmigrations_no_migrations (migrations.test_commands.MigrateTests)", "test_makemigrations_empty_migration (migrations.test_commands.MakeMigratio...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [ { "type": "field", "name": "record_unapplied" } ] }
[ { "path": "docs/ref/django-admin.txt", "old_path": "a/docs/ref/django-admin.txt", "new_path": "b/docs/ref/django-admin.txt", "metadata": "diff --git a/docs/ref/django-admin.txt b/docs/ref/django-admin.txt\nindex 78770fbf72f3..a60c5383316c 100644\n--- a/docs/ref/django-admin.txt\n+++ b/docs/ref/djang...
diff --git a/docs/ref/django-admin.txt b/docs/ref/django-admin.txt index 78770fbf72f3..a60c5383316c 100644 --- a/docs/ref/django-admin.txt +++ b/docs/ref/django-admin.txt @@ -908,6 +908,14 @@ content types. Makes ``migrate`` exit with a non-zero status when unapplied migrations are detected. +.. django-admin-option...
django/django
django__django-15641
https://github.com/django/django/pull/15641
diff --git a/django/forms/forms.py b/django/forms/forms.py index 2500dccc9bcf..35471345c9f6 100644 --- a/django/forms/forms.py +++ b/django/forms/forms.py @@ -66,6 +66,7 @@ class BaseForm(RenderableFormMixin): prefix = None use_required_attribute = True + template_name_div = "django/forms/div.html" ...
diff --git a/tests/forms_tests/tests/test_forms.py b/tests/forms_tests/tests/test_forms.py index ad8f7b9a3186..e6e396c8a1d5 100644 --- a/tests/forms_tests/tests/test_forms.py +++ b/tests/forms_tests/tests/test_forms.py @@ -161,6 +161,15 @@ def test_form(self): required></td></tr> """, ...
[ { "path": "docs/ref/forms/api.txt", "old_path": "a/docs/ref/forms/api.txt", "new_path": "b/docs/ref/forms/api.txt", "metadata": "diff --git a/docs/ref/forms/api.txt b/docs/ref/forms/api.txt\nindex 8530af2611b8..72937bfa9abc 100644\n--- a/docs/ref/forms/api.txt\n+++ b/docs/ref/forms/api.txt\n@@ -607,...
4.2
27b07a3246bc033cd9ded01238c6dc64731cce35
[ "test_attribute_class (forms_tests.tests.test_forms.RendererTests)", "test_default (forms_tests.tests.test_forms.RendererTests)", "test_invalid (forms_tests.tests.test_formsets.AllValidTests)", "test_valid (forms_tests.tests.test_formsets.AllValidTests)", "test_kwarg_instance (forms_tests.tests.test_forms.R...
[ "test_blank_form_unfilled (forms_tests.tests.test_formsets.FormsFormsetTestCase)", "test_hidden_data (forms_tests.tests.test_forms.FormsTestCase)", "test_max_num_with_initial_data (forms_tests.tests.test_formsets.FormsFormsetTestCase)", "test_empty_formset_media (forms_tests.tests.test_formsets.TestEmptyFormS...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "docs/ref/forms/api.txt", "old_path": "a/docs/ref/forms/api.txt", "new_path": "b/docs/ref/forms/api.txt", "metadata": "diff --git a/docs/ref/forms/api.txt b/docs/ref/forms/api.txt\nindex 8530af2611b8..72937bfa9abc 100644\n--- a/docs/ref/forms/api.txt\n+++ b/docs/ref/forms/api.txt\n@@ -607,...
diff --git a/docs/ref/forms/api.txt b/docs/ref/forms/api.txt index 8530af2611b8..72937bfa9abc 100644 --- a/docs/ref/forms/api.txt +++ b/docs/ref/forms/api.txt @@ -607,6 +607,55 @@ list using ``{{ form.as_ul }}``. Each helper pairs a form method with an attribute giving the appropriate template name. +``as_div()`` +...
django/django
django__django-14068
https://github.com/django/django/pull/14068
diff --git a/django/contrib/sitemaps/__init__.py b/django/contrib/sitemaps/__init__.py index 7ad0f31c2020..27a2f4b4345e 100644 --- a/django/contrib/sitemaps/__init__.py +++ b/django/contrib/sitemaps/__init__.py @@ -157,6 +157,17 @@ def get_urls(self, page=1, site=None, protocol=None): domain = self.get_domain(...
diff --git a/tests/sitemaps_tests/templates/custom_sitemap_lastmod_index.xml b/tests/sitemaps_tests/templates/custom_sitemap_lastmod_index.xml new file mode 100644 index 000000000000..dcf5e3258446 --- /dev/null +++ b/tests/sitemaps_tests/templates/custom_sitemap_lastmod_index.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" e...
[ { "path": "docs/internals/deprecation.txt", "old_path": "a/docs/internals/deprecation.txt", "new_path": "b/docs/internals/deprecation.txt", "metadata": "diff --git a/docs/internals/deprecation.txt b/docs/internals/deprecation.txt\nindex 202acdf608b3..13c800e0ee97 100644\n--- a/docs/internals/depreca...
4.2
2ccc0b22db6730ba0950b10bbc5238ae575e4a45
[ "test_something (sitemaps_tests.test_utils.PingGoogleTests)", "test_get_sitemap_full_url_index (sitemaps_tests.test_utils.PingGoogleTests)", "test_get_sitemap_full_url_not_detected (sitemaps_tests.test_utils.PingGoogleTests)", "test_generic_sitemap_attributes (sitemaps_tests.test_generic.GenericViewsSitemapTe...
[ "test_sitemap_without_entries (sitemaps_tests.test_http.HTTPSitemapTests)", "test_sitemap_get_latest_lastmod_none (sitemaps_tests.test_http.HTTPSitemapTests)", "test_sitemap_get_urls_no_site_2 (sitemaps_tests.test_http.HTTPSitemapTests)", "test_no_section (sitemaps_tests.test_http.HTTPSitemapTests)", "test_...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [ { "type": "field", "name": "msg" } ] }
[ { "path": "docs/internals/deprecation.txt", "old_path": "a/docs/internals/deprecation.txt", "new_path": "b/docs/internals/deprecation.txt", "metadata": "diff --git a/docs/internals/deprecation.txt b/docs/internals/deprecation.txt\nindex 202acdf608b3..13c800e0ee97 100644\n--- a/docs/internals/depreca...
diff --git a/docs/internals/deprecation.txt b/docs/internals/deprecation.txt index 202acdf608b3..13c800e0ee97 100644 --- a/docs/internals/deprecation.txt +++ b/docs/internals/deprecation.txt @@ -65,6 +65,8 @@ details on these changes. See the :ref:`Django 4.1 release notes <deprecated-features-4.1>` for more details ...
django/django
django__django-5277
https://github.com/django/django/pull/5277
diff --git a/django/core/management/commands/squashmigrations.py b/django/core/management/commands/squashmigrations.py index 39225c2d7599..9ad5f60d3553 100644 --- a/django/core/management/commands/squashmigrations.py +++ b/django/core/management/commands/squashmigrations.py @@ -15,6 +15,8 @@ class Command(BaseCommand):...
diff --git a/tests/migrations/test_commands.py b/tests/migrations/test_commands.py index 129a40dd2f01..a0b7939a246a 100644 --- a/tests/migrations/test_commands.py +++ b/tests/migrations/test_commands.py @@ -1070,3 +1070,34 @@ def test_ticket_23799_squashmigrations_no_optimize(self): call_command("squashmig...
[ { "path": "docs/ref/django-admin.txt", "old_path": "a/docs/ref/django-admin.txt", "new_path": "b/docs/ref/django-admin.txt", "metadata": "diff --git a/docs/ref/django-admin.txt b/docs/ref/django-admin.txt\nindex 02ab4f0614a5..18e8ec1ca05f 100644\n--- a/docs/ref/django-admin.txt\n+++ b/docs/ref/djang...
1.9
5aa55038ca9ac44b440b56d1fc4e79c876e51393
[]
[ "test_makemigrations_interactive_accept (migrations.test_commands.MakeMigrationsTests)", "test_files_content (migrations.test_commands.MakeMigrationsTests)", "test_migrate (migrations.test_commands.MigrateTests)", "test_makemigrations_no_changes_no_apps (migrations.test_commands.MakeMigrationsTests)", "test...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "docs/ref/django-admin.txt", "old_path": "a/docs/ref/django-admin.txt", "new_path": "b/docs/ref/django-admin.txt", "metadata": "diff --git a/docs/ref/django-admin.txt b/docs/ref/django-admin.txt\nindex 02ab4f0614a5..18e8ec1ca05f 100644\n--- a/docs/ref/django-admin.txt\n+++ b/docs/ref/djang...
diff --git a/docs/ref/django-admin.txt b/docs/ref/django-admin.txt index 02ab4f0614a5..18e8ec1ca05f 100644 --- a/docs/ref/django-admin.txt +++ b/docs/ref/django-admin.txt @@ -1049,8 +1049,8 @@ of sync with its automatically incremented field data. The :djadminopt:`--database` option can be used to specify the database...
django/django
django__django-5255
https://github.com/django/django/pull/5255
diff --git a/django/db/migrations/loader.py b/django/db/migrations/loader.py index a8f4be47b912..93aa8e61f711 100644 --- a/django/db/migrations/loader.py +++ b/django/db/migrations/loader.py @@ -66,6 +66,9 @@ def load_disk(self): for app_config in apps.get_app_configs(): # Get the migrations modul...
diff --git a/tests/migrations/test_commands.py b/tests/migrations/test_commands.py index 96206806aca6..c0f71a80155b 100644 --- a/tests/migrations/test_commands.py +++ b/tests/migrations/test_commands.py @@ -593,6 +593,19 @@ def test_makemigrations_empty_migration(self): self.assertIn('dependencies=[\n]...
[ { "path": "docs/ref/settings.txt", "old_path": "a/docs/ref/settings.txt", "new_path": "b/docs/ref/settings.txt", "metadata": "diff --git a/docs/ref/settings.txt b/docs/ref/settings.txt\nindex f4e5c37d765b..56bd61a99d6a 100644\n--- a/docs/ref/settings.txt\n+++ b/docs/ref/settings.txt\n@@ -1850,18 +18...
1.9
ec704371e301c5450dd5fc012a30424a8f47b99b
[ "test_squashmigrations_squashes (migrations.test_commands.SquashMigrationsTests)", "test_squashmigrations_optimizes (migrations.test_commands.SquashMigrationsTests)", "test_apply (migrations.test_loader.RecorderTests)", "test_ticket_23799_squashmigrations_no_optimize (migrations.test_commands.SquashMigrations...
[ "test_makemigrations_interactive_accept (migrations.test_commands.MakeMigrationsTests)", "test_files_content (migrations.test_commands.MakeMigrationsTests)", "test_migrate (migrations.test_commands.MigrateTests)", "test_load_unmigrated_dependency (migrations.test_loader.LoaderTests)", "test_loading_squashed...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "docs/ref/settings.txt", "old_path": "a/docs/ref/settings.txt", "new_path": "b/docs/ref/settings.txt", "metadata": "diff --git a/docs/ref/settings.txt b/docs/ref/settings.txt\nindex f4e5c37d765b..56bd61a99d6a 100644\n--- a/docs/ref/settings.txt\n+++ b/docs/ref/settings.txt\n@@ -1850,18 +18...
diff --git a/docs/ref/settings.txt b/docs/ref/settings.txt index f4e5c37d765b..56bd61a99d6a 100644 --- a/docs/ref/settings.txt +++ b/docs/ref/settings.txt @@ -1850,18 +1850,29 @@ Default:: {} # empty dictionary -A dictionary specifying the package where migration modules can be found on a per-app basis. The d...
django/django
django__django-4349
https://github.com/django/django/pull/4349
diff --git a/django/db/models/__init__.py b/django/db/models/__init__.py index fea271f40305..4d8ea3889838 100644 --- a/django/db/models/__init__.py +++ b/django/db/models/__init__.py @@ -2,7 +2,9 @@ from django.core.exceptions import ObjectDoesNotExist, ImproperlyConfigured # NOQA from django.db.models.query impor...
diff --git a/tests/annotations/models.py b/tests/annotations/models.py index 0c438b99f805..954c8ad33960 100644 --- a/tests/annotations/models.py +++ b/tests/annotations/models.py @@ -84,3 +84,12 @@ def __str__(self): return ('Company(name=%s, motto=%s, ticker_name=%s, description=%s)' % (self.name...
[ { "path": "docs/ref/models/expressions.txt", "old_path": "a/docs/ref/models/expressions.txt", "new_path": "b/docs/ref/models/expressions.txt", "metadata": "diff --git a/docs/ref/models/expressions.txt b/docs/ref/models/expressions.txt\nindex dfc852c0485a..b3d2e8b8c02f 100644\n--- a/docs/ref/models/e...
1.9
127b3873d03704f77428b984de022664b268314e
[]
[ "test_basic_annotation (annotations.tests.NonAggregateAnnotationTestCase)", "test_basic_f_annotation (annotations.tests.NonAggregateAnnotationTestCase)", "test_delta_subtract (expressions.tests.FTimeDeltaTests)", "test_lefthand_modulo (expressions.tests.ExpressionOperatorTests)", "test_arithmetic (expressio...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "docs/ref/models/expressions.txt", "old_path": "a/docs/ref/models/expressions.txt", "new_path": "b/docs/ref/models/expressions.txt", "metadata": "diff --git a/docs/ref/models/expressions.txt b/docs/ref/models/expressions.txt\nindex dfc852c0485a..b3d2e8b8c02f 100644\n--- a/docs/ref/models/e...
diff --git a/docs/ref/models/expressions.txt b/docs/ref/models/expressions.txt index dfc852c0485a..b3d2e8b8c02f 100644 --- a/docs/ref/models/expressions.txt +++ b/docs/ref/models/expressions.txt @@ -161,6 +161,27 @@ values, rather than on Python values. This is documented in :ref:`using F() expressions in queries <us...
django/django
django__django-3621
https://github.com/django/django/pull/3621
diff --git a/django/template/defaulttags.py b/django/template/defaulttags.py index 8a2fb944f226..51ddfc981922 100644 --- a/django/template/defaulttags.py +++ b/django/template/defaulttags.py @@ -419,12 +419,19 @@ def render(self, context): class NowNode(Node): - def __init__(self, format_string): + def __ini...
diff --git a/tests/template_tests/tests.py b/tests/template_tests/tests.py index 71da1ee40abf..67ac08601b4f 100644 --- a/tests/template_tests/tests.py +++ b/tests/template_tests/tests.py @@ -1697,6 +1697,8 @@ def get_template_tests(self): datetime.now().day, datetime.now().month, datetime.now().year)),...
[ { "path": "docs/ref/templates/builtins.txt", "old_path": "a/docs/ref/templates/builtins.txt", "new_path": "b/docs/ref/templates/builtins.txt", "metadata": "diff --git a/docs/ref/templates/builtins.txt b/docs/ref/templates/builtins.txt\nindex 2b3d48d90ef8..146f2eacd67e 100644\n--- a/docs/ref/template...
1.9
3a9aa155e2f7326df669953980ac87e78e932c43
[ "test_invalid_block_suggestion (template_tests.tests.TemplateRegressionTests)", "test_loader_origin (template_tests.tests.TemplateLoaderTests)", "test_include_missing_template (template_tests.tests.TemplateLoaderTests)", "test_super_errors (template_tests.tests.TemplateRegressionTests)", "test_load_error (t...
[ "test_templates (template_tests.tests.TemplateTests)" ]
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "docs/ref/templates/builtins.txt", "old_path": "a/docs/ref/templates/builtins.txt", "new_path": "b/docs/ref/templates/builtins.txt", "metadata": "diff --git a/docs/ref/templates/builtins.txt b/docs/ref/templates/builtins.txt\nindex 2b3d48d90ef8..146f2eacd67e 100644\n--- a/docs/ref/template...
diff --git a/docs/ref/templates/builtins.txt b/docs/ref/templates/builtins.txt index 2b3d48d90ef8..146f2eacd67e 100644 --- a/docs/ref/templates/builtins.txt +++ b/docs/ref/templates/builtins.txt @@ -799,6 +799,18 @@ This would display as "It is the 4th of September". It is {% now "SHORT_DATETIME_FORMAT" %} ...
django/django
django__django-4761
https://github.com/django/django/pull/4761
diff --git a/django/db/backends/base/base.py b/django/db/backends/base/base.py index 96ca0ccfdeef..2e6a52817166 100644 --- a/django/db/backends/base/base.py +++ b/django/db/backends/base/base.py @@ -1,3 +1,4 @@ +import copy import time import warnings from collections import deque @@ -622,3 +623,16 @@ def run_and_cl...
diff --git a/django/core/management/commands/test.py b/django/core/management/commands/test.py index 0d084e1e910e..ad54994d7420 100644 --- a/django/core/management/commands/test.py +++ b/django/core/management/commands/test.py @@ -47,7 +47,7 @@ def add_arguments(self, parser): action='store', dest='liveser...
[ { "path": "docs/internals/contributing/writing-code/unit-tests.txt", "old_path": "a/docs/internals/contributing/writing-code/unit-tests.txt", "new_path": "b/docs/internals/contributing/writing-code/unit-tests.txt", "metadata": "diff --git a/docs/internals/contributing/writing-code/unit-tests.txt b/d...
1.9
acb833081dd3abca3bc62753103690f23fb3f0ec
[]
[ "test_queries (backends.tests.BackendTestCase)", "test_template_tag_return (staticfiles_tests.test_storage.TestCollectionManifestStorage)", "test_local_storage_detection_helper (staticfiles_tests.test_management.TestConfiguration)", "test_template_tag_return (staticfiles_tests.test_storage.TestCollectionCache...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [ { "type": "field", "name": "copy" }, { "type": "field", "name": "close" }, { "type": "field...
[ { "path": "docs/internals/contributing/writing-code/unit-tests.txt", "old_path": "a/docs/internals/contributing/writing-code/unit-tests.txt", "new_path": "b/docs/internals/contributing/writing-code/unit-tests.txt", "metadata": "diff --git a/docs/internals/contributing/writing-code/unit-tests.txt b/d...
diff --git a/docs/internals/contributing/writing-code/unit-tests.txt b/docs/internals/contributing/writing-code/unit-tests.txt index 8a097bba8cf8..55e3a2d5c75d 100644 --- a/docs/internals/contributing/writing-code/unit-tests.txt +++ b/docs/internals/contributing/writing-code/unit-tests.txt @@ -284,3 +284,16 @@ combine ...
django/django
django__django-15248
https://github.com/django/django/pull/15248
diff --git a/django/contrib/admin/utils.py b/django/contrib/admin/utils.py index 42d0d96ea6e0..4e3d025a569d 100644 --- a/django/contrib/admin/utils.py +++ b/django/contrib/admin/utils.py @@ -116,7 +116,7 @@ def get_deleted_objects(objs, request, admin_site): return [], {}, set(), [] else: using =...
diff --git a/tests/signals/models.py b/tests/signals/models.py index ca30cdc51f5a..b758244749ae 100644 --- a/tests/signals/models.py +++ b/tests/signals/models.py @@ -30,3 +30,8 @@ class Book(models.Model): def __str__(self): return self.name + + +class Page(models.Model): + book = models.ForeignKey(...
[ { "path": "docs/ref/signals.txt", "old_path": "a/docs/ref/signals.txt", "new_path": "b/docs/ref/signals.txt", "metadata": "diff --git a/docs/ref/signals.txt b/docs/ref/signals.txt\nindex 4eb55c906af9..6f0ce0527cc7 100644\n--- a/docs/ref/signals.txt\n+++ b/docs/ref/signals.txt\n@@ -195,6 +195,12 @@ A...
4.2
f1905db6c0004a2b6c8b69c55a1f5f9da58ce2eb
[]
[ "test_not_loaded_model (signals.tests.LazyModelRefTests)", "test_invalid_sender_model_name (signals.tests.LazyModelRefTests)", "test_delete_signals_origin_queryset (signals.tests.SignalTests)", "test_delete_signals_origin_model (signals.tests.SignalTests)", "test_disconnect_in_dispatch (signals.tests.Signal...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "docs/ref/signals.txt", "old_path": "a/docs/ref/signals.txt", "new_path": "b/docs/ref/signals.txt", "metadata": "diff --git a/docs/ref/signals.txt b/docs/ref/signals.txt\nindex 4eb55c906af9..6f0ce0527cc7 100644\n--- a/docs/ref/signals.txt\n+++ b/docs/ref/signals.txt\n@@ -195,6 +195,12 @@ A...
diff --git a/docs/ref/signals.txt b/docs/ref/signals.txt index 4eb55c906af9..6f0ce0527cc7 100644 --- a/docs/ref/signals.txt +++ b/docs/ref/signals.txt @@ -195,6 +195,12 @@ Arguments sent with this signal: ``using`` The database alias being used. +``origin`` + .. versionadded:: 4.1 + + The origin of the de...
django/django
django__django-15622
https://github.com/django/django/pull/15622
diff --git a/django/forms/forms.py b/django/forms/forms.py index 952b97413072..2500dccc9bcf 100644 --- a/django/forms/forms.py +++ b/django/forms/forms.py @@ -66,7 +66,6 @@ class BaseForm(RenderableFormMixin): prefix = None use_required_attribute = True - template_name = "django/forms/default.html" ...
diff --git a/tests/forms_tests/tests/test_forms.py b/tests/forms_tests/tests/test_forms.py index c5376b115fa7..ad8f7b9a3186 100644 --- a/tests/forms_tests/tests/test_forms.py +++ b/tests/forms_tests/tests/test_forms.py @@ -4397,7 +4397,7 @@ class Jinja2FormsTestCase(FormsTestCase): class CustomRenderer(DjangoTempl...
[ { "path": "docs/ref/forms/api.txt", "old_path": "a/docs/ref/forms/api.txt", "new_path": "b/docs/ref/forms/api.txt", "metadata": "diff --git a/docs/ref/forms/api.txt b/docs/ref/forms/api.txt\nindex 4d3cf8997d75..a6b4d11f4ad7 100644\n--- a/docs/ref/forms/api.txt\n+++ b/docs/ref/forms/api.txt\n@@ -527,...
4.2
58b27e0dbb3d31ca1438790870b2b51ecdb10500
[ "test_attribute_class (forms_tests.tests.test_forms.RendererTests)", "test_default (forms_tests.tests.test_forms.RendererTests)", "test_kwarg_instance (forms_tests.tests.test_forms.RendererTests)", "test_kwarg_class (forms_tests.tests.test_forms.RendererTests)", "test_attribute_override (forms_tests.tests.t...
[ "test_blank_form_unfilled (forms_tests.tests.test_formsets.FormsFormsetTestCase)", "test_hidden_data (forms_tests.tests.test_forms.FormsTestCase)", "test_max_num_with_initial_data (forms_tests.tests.test_formsets.FormsFormsetTestCase)", "test_empty_formset_media (forms_tests.tests.test_formsets.TestEmptyFormS...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "docs/ref/forms/api.txt", "old_path": "a/docs/ref/forms/api.txt", "new_path": "b/docs/ref/forms/api.txt", "metadata": "diff --git a/docs/ref/forms/api.txt b/docs/ref/forms/api.txt\nindex 4d3cf8997d75..a6b4d11f4ad7 100644\n--- a/docs/ref/forms/api.txt\n+++ b/docs/ref/forms/api.txt\n@@ -527,...
diff --git a/docs/ref/forms/api.txt b/docs/ref/forms/api.txt index 4d3cf8997d75..a6b4d11f4ad7 100644 --- a/docs/ref/forms/api.txt +++ b/docs/ref/forms/api.txt @@ -527,12 +527,18 @@ a form object, and each rendering method returns a string. .. attribute:: Form.template_name -The name of a template that is going to ...
django/django
django__django-15402
https://github.com/django/django/pull/15402
diff --git a/django/urls/resolvers.py b/django/urls/resolvers.py index 26c9884e1813..9f42e2738cfc 100644 --- a/django/urls/resolvers.py +++ b/django/urls/resolvers.py @@ -41,6 +41,8 @@ def __init__( namespaces=None, route=None, tried=None, + captured_kwargs=None, + extra_kwargs=...
diff --git a/tests/i18n/patterns/tests.py b/tests/i18n/patterns/tests.py index db04e9a1a495..43d95ff668fd 100644 --- a/tests/i18n/patterns/tests.py +++ b/tests/i18n/patterns/tests.py @@ -8,7 +8,7 @@ from django.test import SimpleTestCase, override_settings from django.test.client import RequestFactory from django.te...
[ { "path": "docs/ref/urlresolvers.txt", "old_path": "a/docs/ref/urlresolvers.txt", "new_path": "b/docs/ref/urlresolvers.txt", "metadata": "diff --git a/docs/ref/urlresolvers.txt b/docs/ref/urlresolvers.txt\nindex d39345b478fc..2bde4d73eaf7 100644\n--- a/docs/ref/urlresolvers.txt\n+++ b/docs/ref/urlre...
4.2
83c803f161044fbfbfcd9a0c94ca93dc131be662
[ "test_valid_resolve (urlpatterns_reverse.tests.LookaheadTests)", "test_noncallable_view (urlpatterns_reverse.tests.ErroneousViewTests)", "test_invalid_prefix_use (i18n.patterns.tests.URLPrefixTests)", "test_include_4_tuple (urlpatterns_reverse.tests.IncludeTests)", "test_no_lang_activate (i18n.patterns.test...
[ "test_nl_path (i18n.patterns.tests.URLResponseTests)", "test_matching_urls_same_name (urlpatterns.tests.SameNameTests)", "test_normal_name (urlpatterns_reverse.tests.NamespaceTests)", "test_args (i18n.patterns.tests.URLTagTests)", "test_app_name_pattern (urlpatterns_reverse.tests.NamespaceTests)", "test_p...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "docs/ref/urlresolvers.txt", "old_path": "a/docs/ref/urlresolvers.txt", "new_path": "b/docs/ref/urlresolvers.txt", "metadata": "diff --git a/docs/ref/urlresolvers.txt b/docs/ref/urlresolvers.txt\nindex d39345b478fc..2bde4d73eaf7 100644\n--- a/docs/ref/urlresolvers.txt\n+++ b/docs/ref/urlre...
diff --git a/docs/ref/urlresolvers.txt b/docs/ref/urlresolvers.txt index d39345b478fc..2bde4d73eaf7 100644 --- a/docs/ref/urlresolvers.txt +++ b/docs/ref/urlresolvers.txt @@ -123,9 +123,24 @@ If the URL does not resolve, the function raises a .. attribute:: ResolverMatch.kwargs - The keyword arguments t...
django/django
django__django-15198
https://github.com/django/django/pull/15198
diff --git a/django/conf/__init__.py b/django/conf/__init__.py index 57623db42eb6..05345cb6e9e9 100644 --- a/django/conf/__init__.py +++ b/django/conf/__init__.py @@ -188,6 +188,7 @@ def __init__(self, settings_module): "INSTALLED_APPS", "TEMPLATE_DIRS", "LOCALE_PATHS", + ...
diff --git a/tests/auth_tests/test_tokens.py b/tests/auth_tests/test_tokens.py index ff26bd626b52..2f3f52aac624 100644 --- a/tests/auth_tests/test_tokens.py +++ b/tests/auth_tests/test_tokens.py @@ -140,3 +140,39 @@ def test_secret_lazy_validation(self): msg = 'The SECRET_KEY setting must not be empty.' ...
[ { "path": "docs/howto/deployment/checklist.txt", "old_path": "a/docs/howto/deployment/checklist.txt", "new_path": "b/docs/howto/deployment/checklist.txt", "metadata": "diff --git a/docs/howto/deployment/checklist.txt b/docs/howto/deployment/checklist.txt\nindex 929f19dbfc2d..45ca2be30e9f 100644\n---...
4.2
ba4a6880d1783190de4081bd456d934beb45cb19
[ "test_request_and_message (view_tests.tests.test_debug.PlainTextReportTests)", "test_template_encoding (view_tests.tests.test_debug.ExceptionReporterTests)", "test_sensitive_settings (view_tests.tests.test_debug.ExceptionReporterFilterTests)", "test_sensitive_post_parameters_not_called (view_tests.tests.test_...
[ "test_session_cookie_httponly_both (check_framework.test_security.CheckSessionCookieHttpOnlyTest)", "test_with_security_middleware (check_framework.test_security.CheckSecurityMiddlewareTest)", "test_custom_algorithm (signing.tests.TestSigner)", "test_with_invalid_referrer_policy (check_framework.test_security...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [ { "type": "function", "name": "check_secret_key_fallbacks" }, { "type": "field", "name": "secret_fallback...
[ { "path": "docs/howto/deployment/checklist.txt", "old_path": "a/docs/howto/deployment/checklist.txt", "new_path": "b/docs/howto/deployment/checklist.txt", "metadata": "diff --git a/docs/howto/deployment/checklist.txt b/docs/howto/deployment/checklist.txt\nindex 929f19dbfc2d..45ca2be30e9f 100644\n---...
diff --git a/docs/howto/deployment/checklist.txt b/docs/howto/deployment/checklist.txt index 929f19dbfc2d..45ca2be30e9f 100644 --- a/docs/howto/deployment/checklist.txt +++ b/docs/howto/deployment/checklist.txt @@ -59,6 +59,22 @@ or from a file:: with open('/etc/secret_key.txt') as f: SECRET_KEY = f.read(...
django/django
django__django-14463
https://github.com/django/django/pull/14463
diff --git a/AUTHORS b/AUTHORS index 381e85f6cf7f..db1454c5ee32 100644 --- a/AUTHORS +++ b/AUTHORS @@ -557,6 +557,7 @@ answer newbie questions, and generally made Django that much better: Kieran Holland <http://www.kieranholland.com> kilian <kilian.cavalotti@lip6.fr> Kim Joon Hwan 김준환 <xncbf12@gmail.com>...
diff --git a/tests/inspectdb/models.py b/tests/inspectdb/models.py index c07cd4def1b2..5db4d3bc73e8 100644 --- a/tests/inspectdb/models.py +++ b/tests/inspectdb/models.py @@ -132,3 +132,11 @@ class Meta: ) ] required_db_features = {"supports_expression_indexes"} + + +class DbComment(model...
[ { "path": "docs/ref/checks.txt", "old_path": "a/docs/ref/checks.txt", "new_path": "b/docs/ref/checks.txt", "metadata": "diff --git a/docs/ref/checks.txt b/docs/ref/checks.txt\nindex f85c90059d70..fa7c633487e7 100644\n--- a/docs/ref/checks.txt\n+++ b/docs/ref/checks.txt\n@@ -196,6 +196,8 @@ Model fie...
4.2
68ef274bc505cd44f305c03cbf84cf08826200a8
[ "test_create_model_with_boolean_expression_in_check_constraint (migrations.test_operations.OperationTests)", "test_run_python_noop (migrations.test_operations.OperationTests)", "test_run_python_atomic (migrations.test_operations.OperationTests)", "test_add_constraint_combinable (migrations.test_operations.Ope...
[ "test_get_table_description_names (introspection.tests.IntrospectionTests)", "test_valid_default (invalid_models_tests.test_ordinary_fields.JSONFieldTests)", "test_not_swapped_model (invalid_models_tests.test_relative_fields.RelativeFieldTests)", "test_deconstruct_field_kwarg (migrations.test_autodetector.Aut...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [ { "type": "field", "name": "supports_comments" }, { "type": "field", "name": "supports_comments" }, ...
[ { "path": "docs/ref/checks.txt", "old_path": "a/docs/ref/checks.txt", "new_path": "b/docs/ref/checks.txt", "metadata": "diff --git a/docs/ref/checks.txt b/docs/ref/checks.txt\nindex f85c90059d70..fa7c633487e7 100644\n--- a/docs/ref/checks.txt\n+++ b/docs/ref/checks.txt\n@@ -196,6 +196,8 @@ Model fie...
diff --git a/docs/ref/checks.txt b/docs/ref/checks.txt index f85c90059d70..fa7c633487e7 100644 --- a/docs/ref/checks.txt +++ b/docs/ref/checks.txt @@ -196,6 +196,8 @@ Model fields * **fields.W161**: Fixed default value provided. * **fields.W162**: ``<database>`` does not support a database index on ``<field data t...
pylint-dev/pylint
pylint-dev__pylint-5196
https://github.com/pylint-dev/pylint/pull/5196
diff --git a/CONTRIBUTORS.txt b/CONTRIBUTORS.txt index fd5d627eb2..5456914051 100644 --- a/CONTRIBUTORS.txt +++ b/CONTRIBUTORS.txt @@ -558,3 +558,5 @@ contributors: * James DesLauriers: contributor * Youngsoo Sung: contributor + +* Arianna Yang: contributor diff --git a/ChangeLog b/ChangeLog index 634e887b64..20af3...
diff --git a/tests/extensions/test_for_any_all.py b/tests/extensions/test_for_any_all.py new file mode 100644 index 0000000000..d9cf46189e --- /dev/null +++ b/tests/extensions/test_for_any_all.py @@ -0,0 +1,247 @@ +"""Tests for the pylint checker in :mod:`pylint.extensions.for_any_all +""" + +import astroid + +from pyl...
[ { "path": "ChangeLog", "old_path": "a/ChangeLog", "new_path": "b/ChangeLog", "metadata": "diff --git a/ChangeLog b/ChangeLog\nindex 634e887b64..20af349d46 100644\n--- a/ChangeLog\n+++ b/ChangeLog\n@@ -11,6 +11,12 @@ Release date: TBA\n ..\n Put new features here and also in 'doc/whatsnew/2.12.rst'...
2.11
bfc8d32273102495ee1cfd8daa14d9b6693b11f7
[]
[ "tests/extensions/test_for_any_all.py::TestForAnyAll::test_basic_emit_for_any_all", "tests/extensions/test_for_any_all.py::TestForAnyAll::test_emit_all_for_any_all", "tests/extensions/test_for_any_all.py::TestForAnyAll::test_no_pattern", "tests/extensions/test_for_any_all.py::TestForAnyAll::test_returns_somet...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [ { "type": "file", "name": "pylint/extensions/for_any_all.py" }, { "type": "field", "name": "ConsiderUsing...
[ { "path": "ChangeLog", "old_path": "a/ChangeLog", "new_path": "b/ChangeLog", "metadata": "diff --git a/ChangeLog b/ChangeLog\nindex 634e887b64..20af349d46 100644\n--- a/ChangeLog\n+++ b/ChangeLog\n@@ -11,6 +11,12 @@ Release date: TBA\n ..\n Put new features here and also in 'doc/whatsnew/2.12.rst'...
diff --git a/ChangeLog b/ChangeLog index 634e887b64..20af349d46 100644 --- a/ChangeLog +++ b/ChangeLog @@ -11,6 +11,12 @@ Release date: TBA .. Put new features here and also in 'doc/whatsnew/2.12.rst' +* Add an optional extension ``consider-using-any-or-all`` : Emitted when a ``for`` loop only + produces a boole...
pylint-dev/pylint
pylint-dev__pylint-5610
https://github.com/pylint-dev/pylint/pull/5610
diff --git a/ChangeLog b/ChangeLog index 726ccc134e..52cb627f2e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -54,6 +54,11 @@ Release date: TBA closes #5722 +* New extension ``import-private-name``: indicate imports of external private packages + and objects (prefixed with ``_``). It can be loaded using ``load-plug...
diff --git a/tests/extensions/test_private_import.py b/tests/extensions/test_private_import.py new file mode 100644 index 0000000000..10648a8f91 --- /dev/null +++ b/tests/extensions/test_private_import.py @@ -0,0 +1,69 @@ +"""Tests the local module directory comparison logic which requires mocking file directories""" +...
[ { "path": "ChangeLog", "old_path": "a/ChangeLog", "new_path": "b/ChangeLog", "metadata": "diff --git a/ChangeLog b/ChangeLog\nindex 726ccc134e..52cb627f2e 100644\n--- a/ChangeLog\n+++ b/ChangeLog\n@@ -54,6 +54,11 @@ Release date: TBA\n \n closes #5722\n \n+* New extension ``import-private-name``: ...
2.13
2b81cbb6d53bec271eeb7af16b57f79f10a99146
[]
[ "tests/extensions/test_private_import.py::TestPrivateImport::test_internal_module", "tests/extensions/test_private_import.py::TestPrivateImport::test_external_module_dot_import_outer_only", "tests/extensions/test_private_import.py::TestPrivateImport::test_external_module_nested", "tests/extensions/test_privat...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [ { "type": "field", "name": "TYPE_CHECKING" }, { "type": "field", "name": "parts" }, { "type...
[ { "path": "ChangeLog", "old_path": "a/ChangeLog", "new_path": "b/ChangeLog", "metadata": "diff --git a/ChangeLog b/ChangeLog\nindex 726ccc134e..52cb627f2e 100644\n--- a/ChangeLog\n+++ b/ChangeLog\n@@ -54,6 +54,11 @@ Release date: TBA\n \n closes #5722\n \n+* New extension ``import-private-name``: ...
diff --git a/ChangeLog b/ChangeLog index 726ccc134e..52cb627f2e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -54,6 +54,11 @@ Release date: TBA closes #5722 +* New extension ``import-private-name``: indicate imports of external private packages + and objects (prefixed with ``_``). It can be loaded using ``load-plug...
pylint-dev/pylint
pylint-dev__pylint-8257
https://github.com/pylint-dev/pylint/pull/8257
diff --git a/doc/whatsnew/fragments/7851.feature b/doc/whatsnew/fragments/7851.feature new file mode 100644 index 0000000000..36860ae12c --- /dev/null +++ b/doc/whatsnew/fragments/7851.feature @@ -0,0 +1,3 @@ +Add `--version` option to `pyreverse`. + +Refs #7851 diff --git a/pylint/pyreverse/main.py b/pylint/pyreverse/...
diff --git a/tests/pyreverse/test_main.py b/tests/pyreverse/test_main.py index 1e6196270a..86401e05be 100644 --- a/tests/pyreverse/test_main.py +++ b/tests/pyreverse/test_main.py @@ -189,3 +189,16 @@ def test_class_command( ) assert "data.clientmodule_test.Ancestor" in runner.config.classes assert "data....
[ { "path": "doc/whatsnew/fragments/7851.feature", "old_path": "/dev/null", "new_path": "b/doc/whatsnew/fragments/7851.feature", "metadata": "diff --git a/doc/whatsnew/fragments/7851.feature b/doc/whatsnew/fragments/7851.feature\nnew file mode 100644\nindex 0000000000..36860ae12c\n--- /dev/null\n+++ b...
2.17
32e1545efac4f8b3b1c7b6b3efa160d1cb4f4046
[ "tests/pyreverse/test_main.py::test_command_line_arguments_defaults[show_associated-None]", "tests/pyreverse/test_main.py::test_command_line_arguments_defaults[output_directory-]", "tests/pyreverse/test_main.py::test_class_command", "tests/pyreverse/test_main.py::test_command_line_arguments_defaults[project-]...
[ "tests/pyreverse/test_main.py::test_version_info" ]
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "doc/whatsnew/fragments/<PRID>.feature", "old_path": "/dev/null", "new_path": "b/doc/whatsnew/fragments/<PRID>.feature", "metadata": "diff --git a/doc/whatsnew/fragments/<PRID>.feature b/doc/whatsnew/fragments/<PRID>.feature\nnew file mode 100644\nindex 0000000000..36860ae12c\n--- /dev/nul...
diff --git a/doc/whatsnew/fragments/<PRID>.feature b/doc/whatsnew/fragments/<PRID>.feature new file mode 100644 index 0000000000..36860ae12c --- /dev/null +++ b/doc/whatsnew/fragments/<PRID>.feature @@ -0,0 +1,3 @@ +Add `--version` option to `pyreverse`. + +Refs #<PRID>
pylint-dev/pylint
pylint-dev__pylint-8124
https://github.com/pylint-dev/pylint/pull/8124
diff --git a/doc/data/messages/u/useless-import-alias/details.rst b/doc/data/messages/u/useless-import-alias/details.rst index 5b804e1e9c..f1349efe8c 100644 --- a/doc/data/messages/u/useless-import-alias/details.rst +++ b/doc/data/messages/u/useless-import-alias/details.rst @@ -1,8 +1,8 @@ Known issue ----------- -...
diff --git a/tests/checkers/unittest_imports.py b/tests/checkers/unittest_imports.py index ed5c138056..40aa8432af 100644 --- a/tests/checkers/unittest_imports.py +++ b/tests/checkers/unittest_imports.py @@ -137,3 +137,46 @@ def test_preferred_module(capsys: CaptureFixture[str]) -> None: assert "Prefer importin...
[ { "path": "doc/data/messages/u/useless-import-alias/details.rst", "old_path": "a/doc/data/messages/u/useless-import-alias/details.rst", "new_path": "b/doc/data/messages/u/useless-import-alias/details.rst", "metadata": "diff --git a/doc/data/messages/u/useless-import-alias/details.rst b/doc/data/mess...
2.16
eb950615d77a6b979af6e0d9954fdb4197f4a722
[ "tests/checkers/unittest_imports.py::TestImportsChecker::test_relative_beyond_top_level_four", "tests/checkers/unittest_imports.py::TestImportsChecker::test_preferred_module", "tests/checkers/unittest_imports.py::TestImportsChecker::test_relative_beyond_top_level_three", "tests/checkers/unittest_imports.py::T...
[ "tests/checkers/unittest_imports.py::TestImportsChecker::test_allow_reexport_package" ]
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "doc/data/messages/u/useless-import-alias/details.rst", "old_path": "a/doc/data/messages/u/useless-import-alias/details.rst", "new_path": "b/doc/data/messages/u/useless-import-alias/details.rst", "metadata": "diff --git a/doc/data/messages/u/useless-import-alias/details.rst b/doc/data/mess...
diff --git a/doc/data/messages/u/useless-import-alias/details.rst b/doc/data/messages/u/useless-import-alias/details.rst index 5b804e1e9c..f1349efe8c 100644 --- a/doc/data/messages/u/useless-import-alias/details.rst +++ b/doc/data/messages/u/useless-import-alias/details.rst @@ -1,8 +1,8 @@ Known issue ----------- -...
pylint-dev/pylint
pylint-dev__pylint-7709
https://github.com/pylint-dev/pylint/pull/7709
diff --git a/doc/data/messages/b/broad-except/bad.py b/doc/data/messages/b/broad-except/bad.py deleted file mode 100644 index f4946093e8..0000000000 --- a/doc/data/messages/b/broad-except/bad.py +++ /dev/null @@ -1,4 +0,0 @@ -try: - 1 / 0 -except Exception: # [broad-except] - pass diff --git a/doc/data/messages/...
diff --git a/tests/functional/b/bad_exception_cause.py b/tests/functional/b/bad_exception_cause.py index fd9a9cca0c..8d8db3677a 100644 --- a/tests/functional/b/bad_exception_cause.py +++ b/tests/functional/b/bad_exception_cause.py @@ -28,4 +28,4 @@ def function(): try: pass except function as exc: # [catching-n...
[ { "path": "doc/data/messages/b/broad-except/bad.py", "old_path": "a/doc/data/messages/b/broad-except/bad.py", "new_path": "/dev/null", "metadata": "diff --git a/doc/data/messages/b/broad-except/bad.py b/doc/data/messages/b/broad-except/bad.py\ndeleted file mode 100644\nindex f4946093e8..0000000000\n...
2.16
6fc8fada69ff787977ba90c5f02d00b5b2f9336a
[ "tests/test_self.py::TestRunTC::test_output_file_can_be_combined_with_output_format_option[colorized-tests/regrtest_data/unused_variable.py:4:4: W0612: \\x1b[35mUnused variable 'variable'\\x1b[0m (\\x1b[35munused-variable\\x1b[0m)]", "tests/test_self.py::TestCallbackOptions::test_output_of_callback_options[comman...
[ "tests/test_check_parallel.py::TestCheckParallelFramework::test_worker_check_single_file_uninitialised" ]
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [ { "type": "field", "name": "RuntimeError" } ] }
[ { "path": "doc/data/messages/b/broad-except/bad.py", "old_path": "a/doc/data/messages/b/broad-except/bad.py", "new_path": "/dev/null", "metadata": "diff --git a/doc/data/messages/b/broad-except/bad.py b/doc/data/messages/b/broad-except/bad.py\ndeleted file mode 100644\nindex f4946093e8..0000000000\n...
diff --git a/doc/data/messages/b/broad-except/bad.py b/doc/data/messages/b/broad-except/bad.py deleted file mode 100644 index f4946093e8..0000000000 --- a/doc/data/messages/b/broad-except/bad.py +++ /dev/null @@ -1,4 +0,0 @@ -try: - 1 / 0 -except Exception: # [broad-except] - pass diff --git a/doc/data/messages...
pylint-dev/pylint
pylint-dev__pylint-7869
https://github.com/pylint-dev/pylint/pull/7869
diff --git a/doc/whatsnew/fragments/5362.feature b/doc/whatsnew/fragments/5362.feature new file mode 100644 index 0000000000..b83d9397de --- /dev/null +++ b/doc/whatsnew/fragments/5362.feature @@ -0,0 +1,3 @@ +Added the ``no-header`` output format. If enabled with ``--output-format=no-header``, it will not include the ...
diff --git a/tests/test_self.py b/tests/test_self.py index 61b417f0c0..9cec1b1c93 100644 --- a/tests/test_self.py +++ b/tests/test_self.py @@ -1278,6 +1278,18 @@ def test_line_too_long_useless_suppression(self) -> None: self._test_output([module, "--enable=all"], expected_output=expected) + def test_out...
[ { "path": "doc/whatsnew/fragments/5362.feature", "old_path": "/dev/null", "new_path": "b/doc/whatsnew/fragments/5362.feature", "metadata": "diff --git a/doc/whatsnew/fragments/5362.feature b/doc/whatsnew/fragments/5362.feature\nnew file mode 100644\nindex 0000000000..b83d9397de\n--- /dev/null\n+++ b...
2.16
57d959abc7c21d4c5dbdcdb461e3801bf1caca27
[ "tests/test_self.py::TestRunTC::test_output_file_can_be_combined_with_output_format_option[colorized-tests/regrtest_data/unused_variable.py:4:4: W0612: \\x1b[35mUnused variable 'variable'\\x1b[0m (\\x1b[35munused-variable\\x1b[0m)]", "tests/test_self.py::TestCallbackOptions::test_output_of_callback_options[comman...
[ "tests/test_self.py::TestRunTC::test_output_no_header" ]
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "doc/whatsnew/fragments/<PRID>.feature", "old_path": "/dev/null", "new_path": "b/doc/whatsnew/fragments/<PRID>.feature", "metadata": "diff --git a/doc/whatsnew/fragments/<PRID>.feature b/doc/whatsnew/fragments/<PRID>.feature\nnew file mode 100644\nindex 0000000000..b83d9397de\n--- /dev/nul...
diff --git a/doc/whatsnew/fragments/<PRID>.feature b/doc/whatsnew/fragments/<PRID>.feature new file mode 100644 index 0000000000..b83d9397de --- /dev/null +++ b/doc/whatsnew/fragments/<PRID>.feature @@ -0,0 +1,3 @@ +Added the ``no-header`` output format. If enabled with ``--output-format=no-header``, it will not includ...
pylint-dev/pylint
pylint-dev__pylint-8281
https://github.com/pylint-dev/pylint/pull/8281
diff --git a/doc/whatsnew/fragments/8290.feature b/doc/whatsnew/fragments/8290.feature new file mode 100644 index 0000000000..1099518d84 --- /dev/null +++ b/doc/whatsnew/fragments/8290.feature @@ -0,0 +1,3 @@ +Add globbing pattern support for ``--source-roots``. + +Closes #8290 diff --git a/pylint/config/argument.py b/...
diff --git a/tests/lint/unittest_lint.py b/tests/lint/unittest_lint.py index 23cde49674..5aa08572f4 100644 --- a/tests/lint/unittest_lint.py +++ b/tests/lint/unittest_lint.py @@ -1208,6 +1208,20 @@ def test_recursive_ignore(ignore_parameter: str, ignore_parameter_value: str) -> assert module in linted_file_paths ...
[ { "path": "doc/whatsnew/fragments/8290.feature", "old_path": "/dev/null", "new_path": "b/doc/whatsnew/fragments/8290.feature", "metadata": "diff --git a/doc/whatsnew/fragments/8290.feature b/doc/whatsnew/fragments/8290.feature\nnew file mode 100644\nindex 0000000000..1099518d84\n--- /dev/null\n+++ b...
2.17
e0018ea04bce285f5fed31c00d6d16367a8800c1
[ "tests/lint/unittest_lint.py::test_two_similar_args[case3]", "tests/lint/unittest_lint.py::test_list_msgs_enabled", "tests/lint/unittest_lint.py::test_set_unsupported_reporter", "tests/lint/unittest_lint.py::test_recursive_ignore[--ignore-patterns-ignored_*]", "tests/lint/unittest_lint.py::test_recursive_ig...
[ "tests/lint/unittest_lint.py::test_source_roots_globbing" ]
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "doc/whatsnew/fragments/<PRID>.feature", "old_path": "/dev/null", "new_path": "b/doc/whatsnew/fragments/<PRID>.feature", "metadata": "diff --git a/doc/whatsnew/fragments/<PRID>.feature b/doc/whatsnew/fragments/<PRID>.feature\nnew file mode 100644\nindex 0000000000..1099518d84\n--- /dev/nul...
diff --git a/doc/whatsnew/fragments/<PRID>.feature b/doc/whatsnew/fragments/<PRID>.feature new file mode 100644 index 0000000000..1099518d84 --- /dev/null +++ b/doc/whatsnew/fragments/<PRID>.feature @@ -0,0 +1,3 @@ +Add globbing pattern support for ``--source-roots``. + +Closes #<PRID>
pylint-dev/pylint
pylint-dev__pylint-8186
https://github.com/pylint-dev/pylint/pull/8186
diff --git a/.pyenchant_pylint_custom_dict.txt b/.pyenchant_pylint_custom_dict.txt index a82b2e1bf0..47a222f8e9 100644 --- a/.pyenchant_pylint_custom_dict.txt +++ b/.pyenchant_pylint_custom_dict.txt @@ -242,6 +242,7 @@ params paren parens passthru +pathlib positionals png pragma @@ -303,6 +304,8 @@ subcommands s...
diff --git a/tests/checkers/unittest_imports.py b/tests/checkers/unittest_imports.py index 40aa8432af..8aa062cf47 100644 --- a/tests/checkers/unittest_imports.py +++ b/tests/checkers/unittest_imports.py @@ -123,7 +123,7 @@ def test_preferred_module(capsys: CaptureFixture[str]) -> None: # test preferred-modules...
[ { "path": "doc/user_guide/configuration/all-options.rst", "old_path": "a/doc/user_guide/configuration/all-options.rst", "new_path": "b/doc/user_guide/configuration/all-options.rst", "metadata": "diff --git a/doc/user_guide/configuration/all-options.rst b/doc/user_guide/configuration/all-options.rst\...
2.17
8d13dbe9d82da64f21c5a62b7c16d2332839a346
[ "tests/checkers/unittest_imports.py::TestImportsChecker::test_relative_beyond_top_level_four", "tests/checkers/unittest_imports.py::TestImportsChecker::test_relative_beyond_top_level_three", "tests/checkers/unittest_imports.py::TestImportsChecker::test_relative_beyond_top_level_two", "tests/checkers/unittest_...
[ "tests/checkers/unittest_imports.py::TestImportsChecker::test_preferred_module" ]
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "doc/user_guide/configuration/all-options.rst", "old_path": "a/doc/user_guide/configuration/all-options.rst", "new_path": "b/doc/user_guide/configuration/all-options.rst", "metadata": "diff --git a/doc/user_guide/configuration/all-options.rst b/doc/user_guide/configuration/all-options.rst\...
diff --git a/doc/user_guide/configuration/all-options.rst b/doc/user_guide/configuration/all-options.rst index b83a2ca083..d8df0ac1dc 100644 --- a/doc/user_guide/configuration/all-options.rst +++ b/doc/user_guide/configuration/all-options.rst @@ -993,7 +993,7 @@ Standard Checkers --preferred-modules """""""""""""""...
pylint-dev/pylint
pylint-dev__pylint-5372
https://github.com/pylint-dev/pylint/pull/5372
diff --git a/ChangeLog b/ChangeLog index b3c5fbcf7d..9a20365af9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -15,6 +15,11 @@ Release date: TBA Closes #4982 +* Add ability to add ``end_line`` and ``end_column`` to the ``--msg-template`` option. + With the standard ``TextReporter`` this will add the line and column ...
diff --git a/tests/unittest_reporting.py b/tests/unittest_reporting.py index 22fdc905c5..3e6fdafd15 100644 --- a/tests/unittest_reporting.py +++ b/tests/unittest_reporting.py @@ -57,6 +57,72 @@ def test_template_option(linter): assert output.getvalue() == "************* Module 0123\nC0301:001\nC0301:002\n" +de...
[ { "path": "ChangeLog", "old_path": "a/ChangeLog", "new_path": "b/ChangeLog", "metadata": "diff --git a/ChangeLog b/ChangeLog\nindex b3c5fbcf7d..9a20365af9 100644\n--- a/ChangeLog\n+++ b/ChangeLog\n@@ -15,6 +15,11 @@ Release date: TBA\n \n Closes #4982\n \n+* Add ability to add ``end_line`` and ``e...
2.11
5e9d20dc32768e873ab84bc4ed0b489fdda40672
[ "tests/unittest_reporting.py::test_template_option", "tests/unittest_reporting.py::test_multi_format_output", "tests/unittest_reporting.py::test_parseable_output_deprecated", "tests/unittest_reporting.py::test_deprecation_set_output", "tests/unittest_reporting.py::test_display_results_is_renamed", "tests/...
[ "tests/unittest_reporting.py::test_template_option_non_exisiting", "tests/unittest_reporting.py::test_template_option_end_line" ]
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "ChangeLog", "old_path": "a/ChangeLog", "new_path": "b/ChangeLog", "metadata": "diff --git a/ChangeLog b/ChangeLog\nindex b3c5fbcf7d..9a20365af9 100644\n--- a/ChangeLog\n+++ b/ChangeLog\n@@ -15,6 +15,11 @@ Release date: TBA\n \n Closes #<PRID>\n \n+* Add ability to add ``end_line`` and `...
diff --git a/ChangeLog b/ChangeLog index b3c5fbcf7d..9a20365af9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -15,6 +15,11 @@ Release date: TBA Closes #<PRID> +* Add ability to add ``end_line`` and ``end_column`` to the ``--msg-template`` option. + With the standard ``TextReporter`` this will add the line and colum...
pylint-dev/pylint
pylint-dev__pylint-8190
https://github.com/pylint-dev/pylint/pull/8190
diff --git a/doc/whatsnew/fragments/8181.breaking b/doc/whatsnew/fragments/8181.breaking new file mode 100644 index 0000000000..cd5b361d15 --- /dev/null +++ b/doc/whatsnew/fragments/8181.breaking @@ -0,0 +1,5 @@ +Add new option (``--show-stdlib``, ``-L``) to ``pyreverse``. +This is similar to the behavior of ``--show-b...
diff --git a/pylint/testutils/pyreverse.py b/pylint/testutils/pyreverse.py index 20dce84dd7..74395524bf 100644 --- a/pylint/testutils/pyreverse.py +++ b/pylint/testutils/pyreverse.py @@ -38,6 +38,7 @@ def __init__( show_associated: int | None = None, all_associated: bool | None = None, show_b...
[ { "path": "doc/whatsnew/fragments/8181.breaking", "old_path": "/dev/null", "new_path": "b/doc/whatsnew/fragments/8181.breaking", "metadata": "diff --git a/doc/whatsnew/fragments/8181.breaking b/doc/whatsnew/fragments/8181.breaking\nnew file mode 100644\nindex 0000000000..cd5b361d15\n--- /dev/null\n+...
3.0
2b3d113542f706e459fbeb28915aba51f0898457
[ "tests/pyreverse/test_writer.py::test_puml_files[classes_No_Name.puml]", "tests/pyreverse/test_main.py::test_command_line_arguments_defaults[show_associated-None]", "tests/pyreverse/test_diadefs.py::TestDefaultDiadefGenerator::test_extract_relations", "tests/pyreverse/test_writer.py::test_colorized_puml_files...
[ "tests/pyreverse/test_diadefs.py::TestShowOptions::test_show_stdlib", "tests/pyreverse/test_main.py::test_command_line_arguments_defaults[show_stdlib-0]" ]
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [ { "type": "field", "name": "show_stdlib" } ] }
[ { "path": "doc/whatsnew/fragments/<PRID>.breaking", "old_path": "/dev/null", "new_path": "b/doc/whatsnew/fragments/<PRID>.breaking", "metadata": "diff --git a/doc/whatsnew/fragments/<PRID>.breaking b/doc/whatsnew/fragments/<PRID>.breaking\nnew file mode 100644\nindex 0000000000..cd5b361d15\n--- /dev...
diff --git a/doc/whatsnew/fragments/<PRID>.breaking b/doc/whatsnew/fragments/<PRID>.breaking new file mode 100644 index 0000000000..cd5b361d15 --- /dev/null +++ b/doc/whatsnew/fragments/<PRID>.breaking @@ -0,0 +1,5 @@ +Add new option (``--show-stdlib``, ``-L``) to ``pyreverse``. +This is similar to the behavior of ``--...
pylint-dev/pylint
pylint-dev__pylint-8153
https://github.com/pylint-dev/pylint/pull/8153
diff --git a/doc/user_guide/configuration/all-options.rst b/doc/user_guide/configuration/all-options.rst index b83a2ca083..dcc8e39b22 100644 --- a/doc/user_guide/configuration/all-options.rst +++ b/doc/user_guide/configuration/all-options.rst @@ -174,6 +174,13 @@ Standard Checkers **Default:** ``(3, 10)`` +--sour...
diff --git a/pylint/testutils/pyreverse.py b/pylint/testutils/pyreverse.py index fc20b5453f..7a61ff5fe6 100644 --- a/pylint/testutils/pyreverse.py +++ b/pylint/testutils/pyreverse.py @@ -67,6 +67,7 @@ def __init__( class TestFileOptions(TypedDict): + source_roots: list[str] output_formats: list[str] c...
[ { "path": "doc/user_guide/configuration/all-options.rst", "old_path": "a/doc/user_guide/configuration/all-options.rst", "new_path": "b/doc/user_guide/configuration/all-options.rst", "metadata": "diff --git a/doc/user_guide/configuration/all-options.rst b/doc/user_guide/configuration/all-options.rst\...
2.17
4cbabc9baeded60d9c626c822583215cf3af69d2
[ "tests/lint/unittest_lint.py::test_recursive_ignore[--ignore-patterns-ignored_*]", "tests/lint/unittest_lint.py::test_recursive_ignore[--ignore-paths-.*ignored.*/failing.*]", "tests/lint/unittest_lint.py::test_full_documentation", "tests/lint/unittest_lint.py::test_pylint_home", "tests/lint/unittest_lint.py...
[ "tests/lint/unittest_lint.py::test_two_similar_args[case3]", "tests/test_check_parallel.py::TestCheckParallel::test_sequential_checkers_work", "tests/lint/unittest_lint.py::test_more_args[case1]", "tests/lint/unittest_lint.py::test_deprecated", "tests/pyreverse/test_main.py::test_class_command", "tests/py...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [ { "type": "field", "name": "extra_packages_paths" }, { "type": "function", "name": "discover_package_path...
[ { "path": "doc/user_guide/configuration/all-options.rst", "old_path": "a/doc/user_guide/configuration/all-options.rst", "new_path": "b/doc/user_guide/configuration/all-options.rst", "metadata": "diff --git a/doc/user_guide/configuration/all-options.rst b/doc/user_guide/configuration/all-options.rst\...
diff --git a/doc/user_guide/configuration/all-options.rst b/doc/user_guide/configuration/all-options.rst index b83a2ca083..dcc8e39b22 100644 --- a/doc/user_guide/configuration/all-options.rst +++ b/doc/user_guide/configuration/all-options.rst @@ -174,6 +174,13 @@ Standard Checkers **Default:** ``(3, 10)`` +--sour...
pylint-dev/pylint
pylint-dev__pylint-8824
https://github.com/pylint-dev/pylint/pull/8824
diff --git a/doc/whatsnew/fragments/8112.feature b/doc/whatsnew/fragments/8112.feature new file mode 100644 index 0000000000..cee1f37a86 --- /dev/null +++ b/doc/whatsnew/fragments/8112.feature @@ -0,0 +1,3 @@ +In Pyreverse package dependency diagrams, show when a module imports another only for type-checking. + +Closes...
diff --git a/tests/pyreverse/data/classes_type_check_imports.dot b/tests/pyreverse/data/classes_type_check_imports.dot new file mode 100644 index 0000000000..592d9716ca --- /dev/null +++ b/tests/pyreverse/data/classes_type_check_imports.dot @@ -0,0 +1,4 @@ +digraph "classes_type_check_imports" { +rankdir=BT +charset="u...
[ { "path": "doc/whatsnew/fragments/8112.feature", "old_path": "/dev/null", "new_path": "b/doc/whatsnew/fragments/8112.feature", "metadata": "diff --git a/doc/whatsnew/fragments/8112.feature b/doc/whatsnew/fragments/8112.feature\nnew file mode 100644\nindex 0000000000..cee1f37a86\n--- /dev/null\n+++ b...
3.0
816bea7971a6702ac9eb2fddeb2179c2929fe0d4
[ "tests/pyreverse/test_writer.py::test_puml_files[classes_No_Name.puml]", "tests/pyreverse/test_writer.py::test_mmd_files[packages_No_Name.mmd]", "tests/pyreverse/test_writer.py::test_no_standalone_dot_files[packages_no_standalone.dot]", "tests/pyreverse/test_writer.py::test_html_files[classes_No_Name.html]", ...
[ "tests/pyreverse/test_writer.py::test_type_check_imports_dot_files[packages_type_check_imports.dot]" ]
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "doc/whatsnew/fragments/<PRID>.feature", "old_path": "/dev/null", "new_path": "b/doc/whatsnew/fragments/<PRID>.feature", "metadata": "diff --git a/doc/whatsnew/fragments/<PRID>.feature b/doc/whatsnew/fragments/<PRID>.feature\nnew file mode 100644\nindex 0000000000..cee1f37a86\n--- /dev/nul...
diff --git a/doc/whatsnew/fragments/<PRID>.feature b/doc/whatsnew/fragments/<PRID>.feature new file mode 100644 index 0000000000..cee1f37a86 --- /dev/null +++ b/doc/whatsnew/fragments/<PRID>.feature @@ -0,0 +1,3 @@ +In Pyreverse package dependency diagrams, show when a module imports another only for type-checking. + +...