repo
string
instance_id
string
html_url
string
feature_patch
string
test_patch
string
doc_changes
list
version
string
base_commit
string
PASS2PASS
list
FAIL2PASS
list
mask_doc_diff
list
augmentations
dict
problem_statement
string
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": "docs/table/operations.rst", "old_path": "a/docs/table/operations.rst", "new_path": "b/docs/table/operations.rst", "metadata": "diff --git a/docs/table/operations.rst b/docs/table/operations.rst\nindex fc40c8d63bb7..2c026fbd8a31 100644\n--- a/docs/table/operations.rst\n+++ b/docs/table/ope...
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]" ]
[ { "path": "docs/table/operations.rst", "old_path": "a/docs/table/operations.rst", "new_path": "b/docs/table/operations.rst", "metadata": "diff --git a/docs/table/operations.rst b/docs/table/operations.rst\nindex fc40c8d63b..2c026fbd8a 100644\n--- a/docs/table/operations.rst\n+++ b/docs/table/operati...
{ "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" } ] }
diff --git a/docs/table/operations.rst b/docs/table/operations.rst index fc40c8d63b..2c026fbd8a 100644 --- a/docs/table/operations.rst +++ b/docs/table/operations.rst @@ -721,7 +721,7 @@ matching key includes both ``name`` and ``obs_date``. Specifying the key as onl Likewise one can construct a new table with every r...
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": "docs/modeling/compound-models.rst", "old_path": "a/docs/modeling/compound-models.rst", "new_path": "b/docs/modeling/compound-models.rst", "metadata": "diff --git a/docs/modeling/compound-models.rst b/docs/modeling/compound-models.rst\nindex 54c35cce1532..a509bdf5d430 100644\n--- a/docs/mo...
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...
[ { "path": "docs/modeling/compound-models.rst", "old_path": "a/docs/modeling/compound-models.rst", "new_path": "b/docs/modeling/compound-models.rst", "metadata": "diff --git a/docs/modeling/compound-models.rst b/docs/modeling/compound-models.rst\nindex 54c35cce15..a509bdf5d4 100644\n--- a/docs/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": [] }
diff --git a/docs/modeling/compound-models.rst b/docs/modeling/compound-models.rst index 54c35cce15..a509bdf5d4 100644 --- a/docs/modeling/compound-models.rst +++ b/docs/modeling/compound-models.rst @@ -1369,3 +1369,34 @@ This opens up the possibility of essentially arbitrarily complex transformation graphs. Currentl...
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": "docs/constants/index.rst", "old_path": "a/docs/constants/index.rst", "new_path": "b/docs/constants/index.rst", "metadata": "diff --git a/docs/constants/index.rst b/docs/constants/index.rst\nindex de4e4709f299..d31aa1656a40 100644\n--- a/docs/constants/index.rst\n+++ b/docs/constants/index...
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" ]
[ { "path": "docs/constants/index.rst", "old_path": "a/docs/constants/index.rst", "new_path": "b/docs/constants/index.rst", "metadata": "diff --git a/docs/constants/index.rst b/docs/constants/index.rst\nindex de4e4709f2..d31aa1656a 100644\n--- a/docs/constants/index.rst\n+++ b/docs/constants/index.rst...
{ "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" } ] }
diff --git a/docs/constants/index.rst b/docs/constants/index.rst index de4e4709f2..d31aa1656a 100644 --- a/docs/constants/index.rst +++ b/docs/constants/index.rst @@ -118,9 +118,57 @@ Union (IAU) are collected in modules with names like ``iau2012`` or ``iau2015``: Reference = IAU 2015 Resolution B 3 The astro...
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": "docs/utils/data.rst", "old_path": "a/docs/utils/data.rst", "new_path": "b/docs/utils/data.rst", "metadata": "diff --git a/docs/utils/data.rst b/docs/utils/data.rst\nindex 6e94642ecaf2..578fc1659a42 100644\n--- a/docs/utils/data.rst\n+++ b/docs/utils/data.rst\n@@ -257,7 +257,7 @@ therefore...
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" ]
[ { "path": "docs/utils/data.rst", "old_path": "a/docs/utils/data.rst", "new_path": "b/docs/utils/data.rst", "metadata": "diff --git a/docs/utils/data.rst b/docs/utils/data.rst\nindex 6e94642eca..578fc1659a 100644\n--- a/docs/utils/data.rst\n+++ b/docs/utils/data.rst\n@@ -257,7 +257,7 @@ therefore rec...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
diff --git a/docs/utils/data.rst b/docs/utils/data.rst index 6e94642eca..578fc1659a 100644 --- a/docs/utils/data.rst +++ b/docs/utils/data.rst @@ -257,7 +257,7 @@ therefore recommend the following guidelines: not suddenly notice an out-of-date table all at once and frantically attempt to download it. - * Opti...
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" ]
[ { "path": "docs/changes/utils/#####.feature.rst", "old_path": "/dev/null", "new_path": "b/docs/changes/utils/#####.feature.rst", "metadata": "diff --git a/docs/changes/utils/#####.feature.rst b/docs/changes/utils/#####.feature.rst\nnew file mode 100644\nindex 0000000000..656f0b38f9\n--- /dev/null\n+...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
diff --git a/docs/changes/utils/#####.feature.rst b/docs/changes/utils/#####.feature.rst new file mode 100644 index 0000000000..656f0b38f9 --- /dev/null +++ b/docs/changes/utils/#####.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 Time tr...
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/...
[ { "path": "docs/changes/units/#####.feature.rst", "old_path": "/dev/null", "new_path": "b/docs/changes/units/#####.feature.rst", "metadata": "diff --git a/docs/changes/units/#####.feature.rst b/docs/changes/units/#####.feature.rst\nnew file mode 100644\nindex 0000000000..8431c639a3\n--- /dev/null\n+...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
diff --git a/docs/changes/units/#####.feature.rst b/docs/changes/units/#####.feature.rst new file mode 100644 index 0000000000..8431c639a3 --- /dev/null +++ b/docs/changes/units/#####.feature.rst @@ -0,0 +1,1 @@ +The milli- prefix has been added to ``astropy.units.Angstrom``. diff --git a/docs/units/format.rst b/docs/...
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" ]
[ { "path": "docs/changes/units/#####.feature.rst", "old_path": "/dev/null", "new_path": "b/docs/changes/units/#####.feature.rst", "metadata": "diff --git a/docs/changes/units/#####.feature.rst b/docs/changes/units/#####.feature.rst\nnew file mode 100644\nindex 0000000000..fd8a04efed\n--- /dev/null\n+...
{ "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" } ] }
diff --git a/docs/changes/units/#####.feature.rst b/docs/changes/units/#####.feature.rst new file mode 100644 index 0000000000..fd8a04efed --- /dev/null +++ b/docs/changes/units/#####.feature.rst @@ -0,0 +1,4 @@ +Each physical type is added to ``astropy.units.physical`` +(e.g., ``physical.length`` or ``physical.electri...
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" ]
[ { "path": "docs/changes/table/#####.api.rst", "old_path": "/dev/null", "new_path": "b/docs/changes/table/#####.api.rst", "metadata": "diff --git a/docs/changes/table/#####.api.rst b/docs/changes/table/#####.api.rst\nnew file mode 100644\nindex 0000000000..4f43558ec0\n--- /dev/null\n+++ b/docs/change...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
diff --git a/docs/changes/table/#####.api.rst b/docs/changes/table/#####.api.rst new file mode 100644 index 0000000000..4f43558ec0 --- /dev/null +++ b/docs/changes/table/#####.api.rst @@ -0,0 +1,3 @@ +The table ``join`` function now accepts only the first four arguments ``left``, +``right``, ``keys``, and ``join_type``...
astropy/astropy
astropy__astropy-11998
https://github.com/astropy/astropy/pull/11998
diff --git a/astropy/cosmology/__init__.py b/astropy/cosmology/__init__.py index 4fc4d01ce501..a9c581e8b501 100644 --- a/astropy/cosmology/__init__.py +++ b/astropy/cosmology/__init__.py @@ -8,7 +8,9 @@ """ -from . import core, funcs, realizations, units, utils +from . import core, funcs, units, utils +from . impo...
diff --git a/astropy/cosmology/io/tests/__init__.py b/astropy/cosmology/io/tests/__init__.py new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/astropy/cosmology/io/tests/test_mapping.py b/astropy/cosmology/io/tests/test_mapping.py new file mode 100644 index 000000000000..df584ecc1ed5 --- /dev/null +++ ...
[ { "path": "docs/changes/cosmology/11998.feature.rst", "old_path": "/dev/null", "new_path": "b/docs/changes/cosmology/11998.feature.rst", "metadata": "diff --git a/docs/changes/cosmology/11998.feature.rst b/docs/changes/cosmology/11998.feature.rst\nnew file mode 100644\nindex 000000000000..df78f84a93...
5.0
2631ed5eec34fb74c3f6826f6fef8ca9be0cbfcf
[ "astropy/cosmology/tests/test_connect.py::TestReadWriteCosmology::test_write_methods_have_explicit_kwarg_overwrite[json]" ]
[ "astropy/cosmology/tests/test_connect.py::TestReadWriteCosmology::test_reader_class_mismatch[Planck13-json]", "astropy/cosmology/tests/test_connect.py::TestReadWriteCosmology::test_from_subclass_partial_info[Planck15]", "astropy/cosmology/tests/test_connect.py::TestCosmologyToFromFormat::test_from_subclass_comp...
[ { "path": "docs/changes/cosmology/#####.feature.rst", "old_path": "/dev/null", "new_path": "b/docs/changes/cosmology/#####.feature.rst", "metadata": "diff --git a/docs/changes/cosmology/#####.feature.rst b/docs/changes/cosmology/#####.feature.rst\nnew file mode 100644\nindex 0000000000..df78f84a93\n...
{ "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": "_init_signature" }, { "type": "file", "name": "astropy/cosmology/io/mapping.p...
diff --git a/docs/changes/cosmology/#####.feature.rst b/docs/changes/cosmology/#####.feature.rst new file mode 100644 index 0000000000..df78f84a93 --- /dev/null +++ b/docs/changes/cosmology/#####.feature.rst @@ -0,0 +1,5 @@ +Added ``to_format/from_format`` methods to Cosmology using the Unified I/O +registry. Now custo...
astropy/astropy
astropy__astropy-11470
https://github.com/astropy/astropy/pull/11470
diff --git a/astropy/coordinates/representation.py b/astropy/coordinates/representation.py index 76e5dde236e5..a806523a993a 100644 --- a/astropy/coordinates/representation.py +++ b/astropy/coordinates/representation.py @@ -1048,9 +1048,6 @@ def _scale_operation(self, op, *args): Any arguments required for ...
diff --git a/astropy/coordinates/tests/test_representation_arithmetic.py b/astropy/coordinates/tests/test_representation_arithmetic.py index 1979dbbb9c30..18815959cd04 100644 --- a/astropy/coordinates/tests/test_representation_arithmetic.py +++ b/astropy/coordinates/tests/test_representation_arithmetic.py @@ -1,18 +1,2...
[ { "path": "docs/changes/coordinates/11470.feature.rst", "old_path": "/dev/null", "new_path": "b/docs/changes/coordinates/11470.feature.rst", "metadata": "diff --git a/docs/changes/coordinates/11470.feature.rst b/docs/changes/coordinates/11470.feature.rst\nnew file mode 100644\nindex 000000000000..51...
5.0
505c02d0282a2199d4e6c2894469a46bbee3bc14
[ "astropy/coordinates/tests/test_representation_arithmetic.py::TestSphericalDifferential::test_name_coslat[False]", "astropy/coordinates/tests/test_representation_arithmetic.py::TestUnitSphericalDifferential::test_name_coslat[False]", "astropy/coordinates/tests/test_representation_arithmetic.py::TestArithmeticWi...
[ "astropy/coordinates/tests/test_representation_arithmetic.py::TestArithmeticWithDifferentials::test_operation_radial[truediv-args3]", "astropy/coordinates/tests/test_representation_arithmetic.py::TestArithmeticWithDifferentials::test_operation_spherical_with_rv_or_pm[UnitSphericalCosLatDifferential-neg-args0]", ...
[ { "path": "docs/changes/coordinates/#####.feature.rst", "old_path": "/dev/null", "new_path": "b/docs/changes/coordinates/#####.feature.rst", "metadata": "diff --git a/docs/changes/coordinates/#####.feature.rst b/docs/changes/coordinates/#####.feature.rst\nnew file mode 100644\nindex 0000000000..5192...
{ "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": "pos" } ] }
diff --git a/docs/changes/coordinates/#####.feature.rst b/docs/changes/coordinates/#####.feature.rst new file mode 100644 index 0000000000..51927b0b0a --- /dev/null +++ b/docs/changes/coordinates/#####.feature.rst @@ -0,0 +1,7 @@ +Allow negation, multiplication and division also of representations that +include a diffe...
astropy/astropy
astropy__astropy-11843
https://github.com/astropy/astropy/pull/11843
diff --git a/astropy/io/fits/connect.py b/astropy/io/fits/connect.py index ddeadde4f1f2..c792aff28205 100644 --- a/astropy/io/fits/connect.py +++ b/astropy/io/fits/connect.py @@ -112,7 +112,7 @@ def _decode_mixins(tbl): def read_table_fits(input, hdu=None, astropy_native=False, memmap=False, - c...
diff --git a/astropy/io/fits/tests/test_connect.py b/astropy/io/fits/tests/test_connect.py index b2396bc4f398..0090c7abbb6a 100644 --- a/astropy/io/fits/tests/test_connect.py +++ b/astropy/io/fits/tests/test_connect.py @@ -234,7 +234,8 @@ def test_read_with_nonstandard_units(self): hdu.columns[0].unit = 'RADIA...
[ { "path": "docs/changes/io.fits/11843.feature.rst", "old_path": "/dev/null", "new_path": "b/docs/changes/io.fits/11843.feature.rst", "metadata": "diff --git a/docs/changes/io.fits/11843.feature.rst b/docs/changes/io.fits/11843.feature.rst\nnew file mode 100644\nindex 000000000000..5f84c63ac195\n--- ...
5.1
eb6dd707c06115b2ceb91c69ff50e33d20586aac
[ "astropy/io/fits/tests/test_table.py::TestTableFunctions::test_constructor_name_arg", "astropy/timeseries/tests/test_sampled.py::test_initialization_with_table", "astropy/io/fits/tests/test_table.py::test_a3dtable", "astropy/io/fits/tests/test_connect.py::TestMultipleHDU::test_read_from_hdulist_with_hdu_missi...
[ "astropy/table/tests/test_showtable.py::test_fits_hdu", "astropy/io/fits/tests/test_connect.py::TestSingleTable::test_read_with_nonstandard_units", "astropy/io/fits/tests/test_connect.py::test_unit_warnings_read_write", "astropy/io/fits/tests/test_table.py::test_unit_parse_strict" ]
[ { "path": "docs/changes/io.fits/#####.feature.rst", "old_path": "/dev/null", "new_path": "b/docs/changes/io.fits/#####.feature.rst", "metadata": "diff --git a/docs/changes/io.fits/#####.feature.rst b/docs/changes/io.fits/#####.feature.rst\nnew file mode 100644\nindex 0000000000..5f84c63ac1\n--- /dev...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
diff --git a/docs/changes/io.fits/#####.feature.rst b/docs/changes/io.fits/#####.feature.rst new file mode 100644 index 0000000000..5f84c63ac1 --- /dev/null +++ b/docs/changes/io.fits/#####.feature.rst @@ -0,0 +1,4 @@ +Add option ``unit_parse_strict`` to `~astropy.io.fits.connect.read_table_fits` +to enable warnings or...
astropy/astropy
astropy__astropy-12590
https://github.com/astropy/astropy/pull/12590
diff --git a/astropy/cosmology/flrw.py b/astropy/cosmology/flrw.py index 0ca7b1300cd6..7479bfa01375 100644 --- a/astropy/cosmology/flrw.py +++ b/astropy/cosmology/flrw.py @@ -285,6 +285,11 @@ def Ob0(self, param, value): # --------------------------------------------------------------- # properties + @pr...
diff --git a/astropy/cosmology/tests/test_cosmology.py b/astropy/cosmology/tests/test_cosmology.py index 4945368417f9..7e4f40a3f026 100644 --- a/astropy/cosmology/tests/test_cosmology.py +++ b/astropy/cosmology/tests/test_cosmology.py @@ -15,26 +15,6 @@ from astropy.utils.exceptions import AstropyDeprecationWarning, A...
[ { "path": "docs/changes/cosmology/12590.feature.rst", "old_path": "/dev/null", "new_path": "b/docs/changes/cosmology/12590.feature.rst", "metadata": "diff --git a/docs/changes/cosmology/12590.feature.rst b/docs/changes/cosmology/12590.feature.rst\nnew file mode 100644\nindex 000000000000..41520e9961...
5.1
2158c36979a5c8e4890a64947cfc631d1e928a72
[ "astropy/cosmology/tests/test_flrw.py::TestwCDM::test_to_ecsv_bad_index", "astropy/cosmology/tests/test_flrw.py::TestLambdaCDM::test_tofromformat_model_instance", "astropy/cosmology/tests/test_flrw.py::TestFLRW::test_init_subclass", "astropy/cosmology/tests/test_flrw.py::TestFlatwCDM::test_Neff", "astropy/c...
[ "astropy/cosmology/tests/test_flrw.py::TestFLRW::test_Otot0", "astropy/cosmology/tests/test_flrw.py::TestwpwaCDM::test_Otot0", "astropy/cosmology/tests/test_flrw.py::TestFlatLambdaCDM::test_Otot0", "astropy/cosmology/tests/test_flrw.py::Testw0wzCDM::test_Otot0", "astropy/cosmology/tests/test_flrw.py::TestLa...
[ { "path": "docs/changes/cosmology/#####.feature.rst", "old_path": "/dev/null", "new_path": "b/docs/changes/cosmology/#####.feature.rst", "metadata": "diff --git a/docs/changes/cosmology/#####.feature.rst b/docs/changes/cosmology/#####.feature.rst\nnew file mode 100644\nindex 0000000000..41520e9961\n...
{ "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": "Ode" }, { "type": "field", "name": "Onu" }, { "type": "field", ...
diff --git a/docs/changes/cosmology/#####.feature.rst b/docs/changes/cosmology/#####.feature.rst new file mode 100644 index 0000000000..41520e9961 --- /dev/null +++ b/docs/changes/cosmology/#####.feature.rst @@ -0,0 +1,2 @@ +Add methods ``Otot`` and ``Otot0`` to FLRW cosmologies to calculate the total +energy density o...
astropy/astropy
astropy__astropy-12313
https://github.com/astropy/astropy/pull/12313
diff --git a/astropy/cosmology/io/row.py b/astropy/cosmology/io/row.py new file mode 100644 index 000000000000..1581e050b09d --- /dev/null +++ b/astropy/cosmology/io/row.py @@ -0,0 +1,139 @@ +# Licensed under a 3-clause BSD style license - see LICENSE.rst + +import copy + +import numpy as np + +from astropy.table impor...
diff --git a/astropy/cosmology/io/tests/test_row.py b/astropy/cosmology/io/tests/test_row.py new file mode 100644 index 000000000000..9ad1b7f151ce --- /dev/null +++ b/astropy/cosmology/io/tests/test_row.py @@ -0,0 +1,117 @@ +# Licensed under a 3-clause BSD style license - see LICENSE.rst + +# THIRD PARTY +import pytest...
[ { "path": "docs/changes/cosmology/12313.feature.rst", "old_path": "/dev/null", "new_path": "b/docs/changes/cosmology/12313.feature.rst", "metadata": "diff --git a/docs/changes/cosmology/12313.feature.rst b/docs/changes/cosmology/12313.feature.rst\nnew file mode 100644\nindex 000000000000..fa7179584d...
5.1
546219ca17648b763e2a8632a29a410f49e81340
[]
[ "astropy/cosmology/tests/test_connect.py::TestCosmologyToFromFormat::test_to_ecsv_bad_index[Planck18_arXiv_v2]", "astropy/cosmology/tests/test_connect.py::TestCosmologyToFromFormat::test_to_table_cls[WMAP5-Table]", "astropy/cosmology/tests/test_connect.py::TestCosmologyToFromFormat::test_to_table_cls[WMAP3-Tabl...
[ { "path": "docs/changes/cosmology/#####.feature.rst", "old_path": "/dev/null", "new_path": "b/docs/changes/cosmology/#####.feature.rst", "metadata": "diff --git a/docs/changes/cosmology/#####.feature.rst b/docs/changes/cosmology/#####.feature.rst\nnew file mode 100644\nindex 0000000000..fa7179584d\n...
{ "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": "to_row" }, { "type": "file", "name": "astropy/cosmology/io/row.py" }, ...
diff --git a/docs/changes/cosmology/#####.feature.rst b/docs/changes/cosmology/#####.feature.rst new file mode 100644 index 0000000000..fa7179584d --- /dev/null +++ b/docs/changes/cosmology/#####.feature.rst @@ -0,0 +1,2 @@ +Register "astropy.row" into Cosmology's to/from format I/O, allowing a +Cosmology instance to b...
astropy/astropy
astropy__astropy-12479
https://github.com/astropy/astropy/pull/12479
diff --git a/astropy/cosmology/flrw.py b/astropy/cosmology/flrw.py index a36c150ae34c..0ca7b1300cd6 100644 --- a/astropy/cosmology/flrw.py +++ b/astropy/cosmology/flrw.py @@ -1420,8 +1420,7 @@ class FlatFLRWMixin(FlatCosmologyMixin): but ``FlatLambdaCDM`` **will** be flat. """ - Ode0 = Parameter(doc="Ome...
diff --git a/astropy/cosmology/tests/test_parameter.py b/astropy/cosmology/tests/test_parameter.py index 4660e95dae2d..f6a1bce59d4d 100644 --- a/astropy/cosmology/tests/test_parameter.py +++ b/astropy/cosmology/tests/test_parameter.py @@ -6,7 +6,9 @@ # IMPORTS # STDLIB +import ast import inspect +import sys # T...
[ { "path": "docs/changes/cosmology/12479.feature.rst", "old_path": "/dev/null", "new_path": "b/docs/changes/cosmology/12479.feature.rst", "metadata": "diff --git a/docs/changes/cosmology/12479.feature.rst b/docs/changes/cosmology/12479.feature.rst\nnew file mode 100644\nindex 000000000000..f48871bb0f...
5.1
bf35e6f60b644fe305f806b891630079bcd1d321
[ "astropy/cosmology/tests/test_parameter.py::TestParameter::test_Parameter_validate[Example2]", "astropy/cosmology/tests/test_parameter.py::TestParameter::test_Parameter_doesnt_change_with_generic_class", "astropy/cosmology/tests/test_parameter.py::TestParameter::test_Parameter_not_unique[Example1]", "astropy/...
[ "astropy/cosmology/tests/test_parameter.py::TestParameter::test_Parameter_clone[Example2]", "astropy/cosmology/tests/test_parameter.py::TestParameter::test_Parameter_repr_roundtrip[Example1]", "astropy/cosmology/tests/test_parameter.py::TestParameter::test_Parameter_repr[Example1]", "astropy/cosmology/tests/t...
[ { "path": "docs/changes/cosmology/#####.feature.rst", "old_path": "/dev/null", "new_path": "b/docs/changes/cosmology/#####.feature.rst", "metadata": "diff --git a/docs/changes/cosmology/#####.feature.rst b/docs/changes/cosmology/#####.feature.rst\nnew file mode 100644\nindex 0000000000..f48871bb0f\n...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
diff --git a/docs/changes/cosmology/#####.feature.rst b/docs/changes/cosmology/#####.feature.rst new file mode 100644 index 0000000000..f48871bb0f --- /dev/null +++ b/docs/changes/cosmology/#####.feature.rst @@ -0,0 +1,6 @@ +A method ``clone`` has been added to ``Parameter`` to quickly deep copy the +object and change ...