repo stringclasses 12
values | instance_id stringlengths 18 32 | base_commit stringlengths 40 40 | patch stringlengths 277 17.4k | test_patch stringlengths 367 26.6k | problem_statement stringlengths 3.91k 9.98k | hints_text stringlengths 0 15.4k | created_at stringdate 2013-01-25 05:19:16 2023-08-07 19:30:22 | version stringclasses 53
values | FAIL_TO_PASS stringlengths 12 32.6k | PASS_TO_PASS stringlengths 2 271k | environment_setup_commit stringclasses 80
values | difficulty stringclasses 4
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
astropy/astropy | astropy__astropy-14995 | b16c7d12ccbc7b2d20364b89fb44285bcbfede54 | diff --git a/astropy/nddata/mixins/ndarithmetic.py b/astropy/nddata/mixins/ndarithmetic.py
--- a/astropy/nddata/mixins/ndarithmetic.py
+++ b/astropy/nddata/mixins/ndarithmetic.py
@@ -520,10 +520,10 @@ def _arithmetic_mask(self, operation, operand, handle_mask, axis=None, **kwds):
elif self.mask is None and ope... | diff --git a/astropy/nddata/mixins/tests/test_ndarithmetic.py b/astropy/nddata/mixins/tests/test_ndarithmetic.py
--- a/astropy/nddata/mixins/tests/test_ndarithmetic.py
+++ b/astropy/nddata/mixins/tests/test_ndarithmetic.py
@@ -1310,3 +1310,42 @@ def test_raise_method_not_supported():
# raise error for unsupported ... | ## Issue Description
In **Astropy v5.3**, a regression has been introduced in the `NDDataRef` class during arithmetic operations involving mask propagation with `handle_mask=np.bitwise_or`. Specifically, when performing binary arithmetic (e.g., multiplication) between two `NDDataRef` instances where **one has a mask a... | Welcome to Astropy 👋 and thank you for your first issue!
A project member will respond to you as soon as possible; in the meantime, please double-check the [guidelines for submitting issues](https://github.com/astropy/astropy/blob/main/CONTRIBUTING.md#reporting-issues) and make sure you've provided the requested deta... | 2023-06-27T19:48:18Z | 5.2 | ["astropy/nddata/mixins/tests/test_ndarithmetic.py::test_nddata_bitmask_arithmetic"] | ["astropy/nddata/mixins/tests/test_ndarithmetic.py::test_arithmetics_data[data10-data20]", "astropy/nddata/mixins/tests/test_ndarithmetic.py::test_arithmetics_data[data11-data21]", "astropy/nddata/mixins/tests/test_ndarithmetic.py::test_arithmetics_data[data12-data22]", "astropy/nddata/mixins/tests/test_ndarithmetic.py... | 362f6df12abf9bd769d4915fabf955c993ea22cf | <15 min fix |
astropy/astropy | astropy__astropy-14365 | 7269fa3e33e8d02485a647da91a5a2a60a06af61 | diff --git a/astropy/io/ascii/qdp.py b/astropy/io/ascii/qdp.py
--- a/astropy/io/ascii/qdp.py
+++ b/astropy/io/ascii/qdp.py
@@ -68,7 +68,7 @@ def _line_type(line, delimiter=None):
_new_re = rf"NO({sep}NO)+"
_data_re = rf"({_decimal_re}|NO|[-+]?nan)({sep}({_decimal_re}|NO|[-+]?nan))*)"
_type_re = rf"^\s*((... | diff --git a/astropy/io/ascii/tests/test_qdp.py b/astropy/io/ascii/tests/test_qdp.py
--- a/astropy/io/ascii/tests/test_qdp.py
+++ b/astropy/io/ascii/tests/test_qdp.py
@@ -43,7 +43,18 @@ def test_get_tables_from_qdp_file(tmp_path):
assert np.isclose(table2["MJD_nerr"][0], -2.37847222222222e-05)
-def test_roundt... | # Enhanced Problem Statement: QDP Format Case Sensitivity Issue
## Issue Description
The `ascii.qdp` table format parser in Astropy incorrectly assumes that all QDP commands must be in uppercase, causing it to fail when processing valid QDP files that use lowercase or mixed-case commands. This violates the QDP standa... | Welcome to Astropy 👋 and thank you for your first issue!
A project member will respond to you as soon as possible; in the meantime, please double-check the [guidelines for submitting issues](https://github.com/astropy/astropy/blob/main/CONTRIBUTING.md#reporting-issues) and make sure you've provided the requested deta... | 2023-02-06T19:20:34Z | 5.1 | ["astropy/io/ascii/tests/test_qdp.py::test_roundtrip[True]"] | ["astropy/io/ascii/tests/test_qdp.py::test_get_tables_from_qdp_file", "astropy/io/ascii/tests/test_qdp.py::test_roundtrip[False]", "astropy/io/ascii/tests/test_qdp.py::test_read_example", "astropy/io/ascii/tests/test_qdp.py::test_roundtrip_example", "astropy/io/ascii/tests/test_qdp.py::test_roundtrip_example_comma", "a... | 5f74eacbcc7fff707a44d8eb58adaa514cb7dcb5 | 15 min - 1 hour |
astropy/astropy | astropy__astropy-14096 | 1a4462d72eb03f30dc83a879b1dd57aac8b2c18b | diff --git a/astropy/coordinates/sky_coordinate.py b/astropy/coordinates/sky_coordinate.py
--- a/astropy/coordinates/sky_coordinate.py
+++ b/astropy/coordinates/sky_coordinate.py
@@ -894,10 +894,8 @@ def __getattr__(self, attr):
if frame_cls is not None and self.frame.is_transformable_to(frame_cls):
... | diff --git a/astropy/coordinates/tests/test_sky_coord.py b/astropy/coordinates/tests/test_sky_coord.py
--- a/astropy/coordinates/tests/test_sky_coord.py
+++ b/astropy/coordinates/tests/test_sky_coord.py
@@ -2165,3 +2165,21 @@ def test_match_to_catalog_3d_and_sky():
npt.assert_array_equal(idx, [0, 1, 2, 3])
as... | ## Issue Description
The issue occurs when subclassing `astropy.coordinates.SkyCoord` and attempting to access a non-existent attribute within a custom property. Instead of receiving an error message indicating which attribute is missing (`random_attr`), the error misleadingly states that the property itself (`prop`) ... | This is because the property raises an `AttributeError`, which causes Python to call `__getattr__`. You can catch the `AttributeError` in the property and raise another exception with a better message.
The problem is it's a nightmare for debugging at the moment. If I had a bunch of different attributes in `prop(self)`,... | 2022-12-04T17:06:07Z | 5.1 | ["astropy/coordinates/tests/test_sky_coord.py::test_subclass_property_exception_error"] | ["astropy/coordinates/tests/test_sky_coord.py::test_is_transformable_to_str_input", "astropy/coordinates/tests/test_sky_coord.py::test_transform_to", "astropy/coordinates/tests/test_sky_coord.py::test_round_tripping[ICRS-ICRS-None-None-None-None]", "astropy/coordinates/tests/test_sky_coord.py::test_round_tripping[ICRS-... | 5f74eacbcc7fff707a44d8eb58adaa514cb7dcb5 | 15 min - 1 hour |
astropy/astropy | astropy__astropy-13236 | 6ed769d58d89380ebaa1ef52b300691eefda8928 | diff --git a/astropy/table/table.py b/astropy/table/table.py
--- a/astropy/table/table.py
+++ b/astropy/table/table.py
@@ -1239,13 +1239,6 @@ def _convert_data_to_col(self, data, copy=True, default_name=None, dtype=None, n
f'{fully_qualified_name} '
'did... | diff --git a/astropy/table/tests/test_mixin.py b/astropy/table/tests/test_mixin.py
--- a/astropy/table/tests/test_mixin.py
+++ b/astropy/table/tests/test_mixin.py
@@ -697,11 +697,13 @@ def test_skycoord_representation():
'1.0,90.0,0.0']
-def test_ndarray_mixin():
+@pytest.mark.parametriz... | ## Issue Description
When a structured NumPy array (`numpy.ndarray` with a structured `dtype`) is added to an Astropy `Table`, it is automatically transformed into an `NdarrayMixin` object. This behavior was originally introduced as a workaround due to limitations in handling structured dtypes with `Column` objects, p... | @mhvk - I'm happy to do this PR if you think it is a good idea.
I agree there no longer is any reason to put structured arrays into `NdarrayMixin` -- indeed, I thought I had already changed its use! So, yes, happy to go ahead and create structured columns directly.
So you think we should change it now, or do a release ... | 2022-05-09T14:16:30Z | 5.0 | ["astropy/table/tests/test_mixin.py::test_ndarray_mixin[False]", "astropy/table/tests/test_table.py::test_structured_masked_column"] | ["astropy/table/tests/test_mixin.py::test_attributes[arrayswap]", "astropy/table/tests/test_mixin.py::test_attributes[arraywrap]", "astropy/table/tests/test_mixin.py::test_attributes[cartesianrep]", "astropy/table/tests/test_mixin.py::test_attributes[earthlocation]", "astropy/table/tests/test_mixin.py::test_attributes[... | cdf311e0714e611d48b0a31eb1f0e2cbffab7f23 | 15 min - 1 hour |
astropy/astropy | astropy__astropy-12907 | d16bfe05a744909de4b27f5875fe0d4ed41ce607 | diff --git a/astropy/modeling/separable.py b/astropy/modeling/separable.py
--- a/astropy/modeling/separable.py
+++ b/astropy/modeling/separable.py
@@ -242,7 +242,7 @@ def _cstack(left, right):
cright = _coord_matrix(right, 'right', noutp)
else:
cright = np.zeros((noutp, right.shape[1]))
- ... | diff --git a/astropy/modeling/tests/test_separable.py b/astropy/modeling/tests/test_separable.py
--- a/astropy/modeling/tests/test_separable.py
+++ b/astropy/modeling/tests/test_separable.py
@@ -28,6 +28,13 @@
p1 = models.Polynomial1D(1, name='p1')
+cm_4d_expected = (np.array([False, False, True, True]),
+ ... | ## Issue Description
The `separability_matrix` function in `astropy.modeling.separable` does not correctly compute the separability of inputs and outputs when `CompoundModel` instances are nested within other compound operations (e.g., using the `&` operator). Specifically, when a previously created compound model (e.... | 2022-03-03T15:14:54Z | 4.3 | ["astropy/modeling/tests/test_separable.py::test_separable[compound_model6-result6]", "astropy/modeling/tests/test_separable.py::test_separable[compound_model9-result9]"] | ["astropy/modeling/tests/test_separable.py::test_coord_matrix", "astropy/modeling/tests/test_separable.py::test_cdot", "astropy/modeling/tests/test_separable.py::test_cstack", "astropy/modeling/tests/test_separable.py::test_arith_oper", "astropy/modeling/tests/test_separable.py::test_separable[compound_model0-result0]"... | 298ccb478e6bf092953bca67a3d29dc6c35f6752 | 15 min - 1 hour | |
astropy/astropy | astropy__astropy-14508 | a3f4ae6cd24d5ecdf49f213d77b3513dd509a06c | "diff --git a/astropy/io/fits/card.py b/astropy/io/fits/card.py\n--- a/astropy/io/fits/card.py\n+++ (...TRUNCATED) | "diff --git a/astropy/io/fits/tests/test_header.py b/astropy/io/fits/tests/test_header.py\n--- a/ast(...TRUNCATED) | "# Comprehensive Problem Statement: FITS Card Float Formatting Issue\n\n## Issue Description\nThe `i(...TRUNCATED) | "Agreed this is a bug. As far as I know, python floats by default now have reprs that use the right (...TRUNCATED) | 2023-03-09T11:08:51Z | 5.1 | "[\"astropy/io/fits/tests/test_header.py::TestHeaderFunctions::test_floating_point_string_representa(...TRUNCATED) | "[\"astropy/io/fits/tests/test_header.py::test_shallow_copy\", \"astropy/io/fits/tests/test_header.p(...TRUNCATED) | 5f74eacbcc7fff707a44d8eb58adaa514cb7dcb5 | 15 min - 1 hour |
astropy/astropy | astropy__astropy-14539 | c0a24c1dc957a3b565294213f435fefb2ec99714 | "diff --git a/astropy/io/fits/diff.py b/astropy/io/fits/diff.py\n--- a/astropy/io/fits/diff.py\n+++ (...TRUNCATED) | "diff --git a/astropy/io/fits/tests/test_diff.py b/astropy/io/fits/tests/test_diff.py\n--- a/astropy(...TRUNCATED) | "## Issue Description\n\nThe `astropy.io.fits.FITSDiff` utility can report incorrect differences bet(...TRUNCATED) | "Seems due to the use of `Q`, only `P` is handled in the diff code. This:\r\n```\r\n--- astropy/io/f(...TRUNCATED) | 2023-03-16T18:45:19Z | 5.1 | "[\"astropy/io/fits/tests/test_diff.py::TestDiff::test_identical_tables\", \"astropy/io/fits/tests/t(...TRUNCATED) | "[\"astropy/io/fits/tests/test_diff.py::TestDiff::test_identical_headers\", \"astropy/io/fits/tests/(...TRUNCATED) | 5f74eacbcc7fff707a44d8eb58adaa514cb7dcb5 | 15 min - 1 hour |
astropy/astropy | astropy__astropy-13977 | 5250b2442501e6c671c6b380536f1edb352602d1 | "diff --git a/astropy/units/quantity.py b/astropy/units/quantity.py\n--- a/astropy/units/quantity.py(...TRUNCATED) | "diff --git a/astropy/units/tests/test_quantity.py b/astropy/units/tests/test_quantity.py\n--- a/ast(...TRUNCATED) | "## Issue Description\n\nThe core issue is that `astropy.units.Quantity.__array_ufunc__()` raises a (...TRUNCATED) | "@byrdie - I think you are right that really one should return `NotImplemented`. In general, the ide(...TRUNCATED) | 2022-11-01T22:24:58Z | 5.1 | "[\"astropy/units/tests/test_quantity_ufuncs.py::TestUfuncReturnsNotImplemented::TestBinaryUfuncs::t(...TRUNCATED) | "[\"astropy/units/tests/test_quantity.py::TestQuantityCreation::test_1\", \"astropy/units/tests/test(...TRUNCATED) | 5f74eacbcc7fff707a44d8eb58adaa514cb7dcb5 | 15 min - 1 hour |
astropy/astropy | astropy__astropy-13033 | 298ccb478e6bf092953bca67a3d29dc6c35f6752 | "diff --git a/astropy/timeseries/core.py b/astropy/timeseries/core.py\n--- a/astropy/timeseries/core(...TRUNCATED) | "diff --git a/astropy/timeseries/tests/test_sampled.py b/astropy/timeseries/tests/test_sampled.py\n-(...TRUNCATED) | "## Issue Description\n\nThe `TimeSeries` class raises a misleading `ValueError` when required colum(...TRUNCATED) | "The relevant code that produces the misleading exception.\r\n\r\nhttps://github.com/astropy/astropy(...TRUNCATED) | 2022-03-31T23:28:27Z | 4.3 | ["astropy/timeseries/tests/test_sampled.py::test_required_columns"] | "[\"astropy/timeseries/tests/test_sampled.py::test_empty_initialization\", \"astropy/timeseries/test(...TRUNCATED) | 298ccb478e6bf092953bca67a3d29dc6c35f6752 | 15 min - 1 hour |
astropy/astropy | astropy__astropy-14309 | cdb66059a2feb44ee49021874605ba90801f9986 | "diff --git a/astropy/io/fits/connect.py b/astropy/io/fits/connect.py\n--- a/astropy/io/fits/connect(...TRUNCATED) | "diff --git a/astropy/io/fits/tests/test_connect.py b/astropy/io/fits/tests/test_connect.py\n--- a/a(...TRUNCATED) | "## Issue Description\n\nThe bug is an `IndexError: tuple index out of range` occurring in the `iden(...TRUNCATED) | cc @nstarman from #14274 | 2023-01-23T22:34:01Z | 5.1 | ["astropy/io/fits/tests/test_connect.py::test_is_fits_gh_14305"] | "[\"astropy/io/fits/tests/test_connect.py::TestSingleTable::test_simple\", \"astropy/io/fits/tests/t(...TRUNCATED) | 5f74eacbcc7fff707a44d8eb58adaa514cb7dcb5 | <15 min fix |
End of preview. Expand in Data Studio
README.md exists but content is empty.
- Downloads last month
- 4