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.07k 7.83k | 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 ... | # NDDataRef mask propagation failure in v5.3 when one operand lacks a mask
## Issue Description
In Astropy v5.3, the NDDataRef class fails when performing arithmetic operations (like multiply) with `handle_mask=np.bitwise_or` when one of the operands has a mask and the other doesn't. The code attempts to apply a bitwi... | 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-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... | # Enhanced Problem Statement: Subclassed SkyCoord Gives Misleading Attribute Access Message
## Issue Description
When subclassing `astropy.coordinates.SkyCoord` and adding custom properties, accessing a non-existent attribute within those properties results in a misleading error message. Instead of reporting the actua... | 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-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]),
+ ... | # Enhanced Problem Statement: Incorrect Separability Matrix Computation for Nested CompoundModels
## Issue Description
The `separability_matrix()` function in Astropy's modeling module incorrectly computes the separability matrix when a `CompoundModel` is nested inside another `CompoundModel` using the `&` (parallel) ... | 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-13033 | 298ccb478e6bf092953bca67a3d29dc6c35f6752 | diff --git a/astropy/timeseries/core.py b/astropy/timeseries/core.py
--- a/astropy/timeseries/core.py
+++ b/astropy/timeseries/core.py
@@ -55,6 +55,13 @@ class BaseTimeSeries(QTable):
_required_columns_relax = False
def _check_required_columns(self):
+ def as_scalar_or_list_str(obj):
+ if ... | diff --git a/astropy/timeseries/tests/test_sampled.py b/astropy/timeseries/tests/test_sampled.py
--- a/astropy/timeseries/tests/test_sampled.py
+++ b/astropy/timeseries/tests/test_sampled.py
@@ -395,6 +395,14 @@ def test_required_columns():
assert exc.value.args[0] == ("TimeSeries object is invalid - expected "
... | # Enhanced Problem Statement: TimeSeries Invalid Required Column Exception
## Issue Description
When a required column is removed from a TimeSeries object that has multiple required columns (beyond the default 'time' column), the exception message is misleading and confusing. The error message incorrectly states: `Val... | The relevant code that produces the misleading exception.
https://github.com/astropy/astropy/blob/00ccfe76113dca48d19396986872203dc2e978d7/astropy/timeseries/core.py#L77-L82
It works under the assumption that `time` is the only required column. So when a `TimeSeries` object has additional required columns, the me... | 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/tests/test_sampled.py::test_empty_initialization_invalid", "astropy/timeseries/tests/test_sampled.py::test_initialize_only_time", "astropy/timeseries/tests/test_sampled.py::test_initialization_with_data", "astropy/timeseries/tes... | 298ccb478e6bf092953bca67a3d29dc6c35f6752 | 15 min - 1 hour |
astropy/astropy | astropy__astropy-14598 | 80c3854a5f4f4a6ab86c03d9db7854767fcd83c1 | diff --git a/astropy/io/fits/card.py b/astropy/io/fits/card.py
--- a/astropy/io/fits/card.py
+++ b/astropy/io/fits/card.py
@@ -66,7 +66,7 @@ class Card(_Verify):
# followed by an optional comment
_strg = r"\'(?P<strg>([ -~]+?|\'\'|) *?)\'(?=$|/| )"
_comm_field = r"(?P<comm_field>(?P<sepr>/ *)(?P<comm>(.|... | diff --git a/astropy/io/fits/tests/test_header.py b/astropy/io/fits/tests/test_header.py
--- a/astropy/io/fits/tests/test_header.py
+++ b/astropy/io/fits/tests/test_header.py
@@ -582,6 +582,22 @@ def test_long_string_value_via_fromstring(self, capsys):
"CONTINUE '' / comments in line 1 comments with '... | # Enhanced Problem Statement: FITS Card Quote Handling Bug
## Issue Description
The `astropy.io.fits` module has an inconsistency when handling string values containing double single-quotes (`''`) in FITS cards. When a FITS Card object is converted to a string and then parsed back using `Card.fromstring()`, double sin... | Hello, I would like to be assigned to this issue if possible. Thank you.
Hi @ashtonw3,
We don't usually assign people to issues, mentioning here that you want to work on it is enough.
But on this specific issue I already have a fix and will open a PR soon, I was going to do that yesterday but I found another related ... | 2023-03-29T10:34:49Z | 5.2 | ["astropy/io/fits/tests/test_header.py::TestHeaderFunctions::test_long_string_value_with_quotes"] | ["astropy/io/fits/tests/test_header.py::test_shallow_copy", "astropy/io/fits/tests/test_header.py::test_init_with_header", "astropy/io/fits/tests/test_header.py::test_init_with_dict", "astropy/io/fits/tests/test_header.py::test_init_with_ordereddict", "astropy/io/fits/tests/test_header.py::TestHeaderFunctions::test_ren... | 362f6df12abf9bd769d4915fabf955c993ea22cf | 15 min - 1 hour |
astropy/astropy | astropy__astropy-14182 | a5917978be39d13cd90b517e1de4e7a539ffaa48 | diff --git a/astropy/io/ascii/rst.py b/astropy/io/ascii/rst.py
--- a/astropy/io/ascii/rst.py
+++ b/astropy/io/ascii/rst.py
@@ -27,7 +27,6 @@ def get_fixedwidth_params(self, line):
class SimpleRSTData(FixedWidthData):
- start_line = 3
end_line = -1
splitter_class = FixedWidthTwoLineDataSplitter
@@ -3... | diff --git a/astropy/io/ascii/tests/test_rst.py b/astropy/io/ascii/tests/test_rst.py
--- a/astropy/io/ascii/tests/test_rst.py
+++ b/astropy/io/ascii/tests/test_rst.py
@@ -2,7 +2,11 @@
from io import StringIO
+import numpy as np
+
+import astropy.units as u
from astropy.io import ascii
+from astropy.table import Q... | # Enhanced Problem Statement: Add Support for Header Rows in RestructuredText Output
## Issue Description
The Astropy library currently lacks support for multiple header rows in the RestructuredText (`ascii.rst`) output format, while this functionality already exists in other formats like `ascii.fixed_width`. When att... | 2022-12-16T11:13:37Z | 5.1 | ["astropy/io/ascii/tests/test_rst.py::test_rst_with_header_rows"] | ["astropy/io/ascii/tests/test_rst.py::test_read_normal", "astropy/io/ascii/tests/test_rst.py::test_read_normal_names", "astropy/io/ascii/tests/test_rst.py::test_read_normal_names_include", "astropy/io/ascii/tests/test_rst.py::test_read_normal_exclude", "astropy/io/ascii/tests/test_rst.py::test_read_unbounded_right_colu... | 5f74eacbcc7fff707a44d8eb58adaa514cb7dcb5 | 15 min - 1 hour | |
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 File Reader Case Sensitivity Issue
## Issue Description
Astropy's `ascii.qdp` format reader fails to correctly parse QDP files that contain lowercase commands, despite the fact that the actual QDP format is case-insensitive. Specifically, the parser's `_line_type` function in `astropy... | 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-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) | "# Enhanced Problem Statement: `Quantity.__array_ufunc__` Compatibility Issue with Custom Array Type(...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-13236 | 6ed769d58d89380ebaa1ef52b300691eefda8928 | "diff --git a/astropy/table/table.py b/astropy/table/table.py\n--- a/astropy/table/table.py\n+++ b/a(...TRUNCATED) | "diff --git a/astropy/table/tests/test_mixin.py b/astropy/table/tests/test_mixin.py\n--- a/astropy/t(...TRUNCATED) | "# Enhanced Problem Statement: Remove auto-transform of structured column into NdarrayMixin\n\n## Is(...TRUNCATED) | "@mhvk - I'm happy to do this PR if you think it is a good idea.\nI agree there no longer is any rea(...TRUNCATED) | 2022-05-09T14:16:30Z | 5.0 | "[\"astropy/table/tests/test_mixin.py::test_ndarray_mixin[False]\", \"astropy/table/tests/test_table(...TRUNCATED) | "[\"astropy/table/tests/test_mixin.py::test_attributes[arrayswap]\", \"astropy/table/tests/test_mixi(...TRUNCATED) | cdf311e0714e611d48b0a31eb1f0e2cbffab7f23 | 15 min - 1 hour |
astropy/astropy | astropy__astropy-13579 | 0df94ff7097961e92fd7812036a24b145bc13ca8 | "diff --git a/astropy/wcs/wcsapi/wrappers/sliced_wcs.py b/astropy/wcs/wcsapi/wrappers/sliced_wcs.py\(...TRUNCATED) | "diff --git a/astropy/wcs/wcsapi/wrappers/tests/test_sliced_wcs.py b/astropy/wcs/wcsapi/wrappers/tes(...TRUNCATED) | "# Enhanced Problem Statement: SlicedLowLevelWCS world_to_pixel Transformation Issue\n\n## Issue Des(...TRUNCATED) | "A slightly shorter script to reproduce the issue is this (starting from the definition of `fits_wcs(...TRUNCATED) | 2022-08-26T15:06:53Z | 5.0 | ["astropy/wcs/wcsapi/wrappers/tests/test_sliced_wcs.py::test_coupled_world_slicing"] | "[\"astropy/wcs/wcsapi/wrappers/tests/test_sliced_wcs.py::test_invalid_slices\", \"astropy/wcs/wcsap(...TRUNCATED) | cdf311e0714e611d48b0a31eb1f0e2cbffab7f23 | 1-4 hours |
End of preview. Expand in Data Studio
README.md exists but content is empty.
- Downloads last month
- 7