Dataset Viewer
Auto-converted to Parquet Duplicate
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.83k
9.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 ...
## Issue Description In **astropy v5.3**, the mask propagation logic for `NDDataRef` arithmetic operations fails with a `TypeError` when one of the operands does **not** have an associated mask (`mask=None`). This is a **regression from v5.2**, where the same operations work correctly. Specifically, when performing 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-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 ## Issue Description When subclassing `astropy.coordinates.SkyCoord` and adding custom properties that access non-existent attributes, the error message incorrectly reports that the custom property itself doesn't exist, rather than reporting the actual missing attribute within the propert...
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-14539
c0a24c1dc957a3b565294213f435fefb2ec99714
diff --git a/astropy/io/fits/diff.py b/astropy/io/fits/diff.py --- a/astropy/io/fits/diff.py +++ b/astropy/io/fits/diff.py @@ -1449,7 +1449,7 @@ def _diff(self): arrb.dtype, np.floating ): diffs = where_not_allclose(arra, arrb, rtol=self.rtol, atol=self.atol) - ...
diff --git a/astropy/io/fits/tests/test_diff.py b/astropy/io/fits/tests/test_diff.py --- a/astropy/io/fits/tests/test_diff.py +++ b/astropy/io/fits/tests/test_diff.py @@ -406,16 +406,17 @@ def test_identical_tables(self): c8 = Column("H", format="C", array=[0.0 + 1.0j, 2.0 + 3.0j]) c9 = Column("I", fo...
# Problem Statement: `io.fits.FITSDiff` Reports False Differences in Identical Files with VLA Columns ## Issue Description The `astropy.io.fits.FITSDiff` utility may report false differences when comparing FITS files that are identical, particularly when those files contain Variable-Length Array (VLA) columns. The is...
Seems due to the use of `Q`, only `P` is handled in the diff code. This: ``` --- astropy/io/fits/diff.py +++ astropy/io/fits/diff.py @@ -1449,7 +1449,7 @@ class TableDataDiff(_BaseDiff): arrb.dtype, np.floating ): diffs = where_not_allclose(arra, arrb, rtol=self.rto...
2023-03-16T18:45:19Z
5.1
["astropy/io/fits/tests/test_diff.py::TestDiff::test_identical_tables", "astropy/io/fits/tests/test_diff.py::TestDiff::test_different_table_data"]
["astropy/io/fits/tests/test_diff.py::TestDiff::test_identical_headers", "astropy/io/fits/tests/test_diff.py::TestDiff::test_slightly_different_headers", "astropy/io/fits/tests/test_diff.py::TestDiff::test_common_keywords", "astropy/io/fits/tests/test_diff.py::TestDiff::test_different_keyword_count", "astropy/io/fits/t...
5f74eacbcc7fff707a44d8eb58adaa514cb7dcb5
15 min - 1 hour
astropy/astropy
astropy__astropy-13453
19cc80471739bcb67b7e8099246b391c355023ee
diff --git a/astropy/io/ascii/html.py b/astropy/io/ascii/html.py --- a/astropy/io/ascii/html.py +++ b/astropy/io/ascii/html.py @@ -349,11 +349,13 @@ def write(self, table): cols = list(table.columns.values()) self.data.header.cols = cols + self.data.cols = cols if isinstance(self.d...
diff --git a/astropy/io/ascii/tests/test_html.py b/astropy/io/ascii/tests/test_html.py --- a/astropy/io/ascii/tests/test_html.py +++ b/astropy/io/ascii/tests/test_html.py @@ -717,6 +717,49 @@ def test_multi_column_write_table_html_fill_values_masked(): assert buffer_output.getvalue() == buffer_expected.getvalue() ...
## Issue Description The issue is that when writing an Astropy `Table` to HTML format using the `formats` parameter, custom formatting functions or format specifiers are ignored. The same `formats` parameter works correctly with other ASCII output formats like CSV, RST, and MRT, but the HTML writer fails to apply the ...
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...
2022-07-14T10:04:40Z
5.0
["astropy/io/ascii/tests/test_html.py::test_write_table_formatted_columns"]
["astropy/io/ascii/tests/test_html.py::test_listwriter", "astropy/io/ascii/tests/test_html.py::test_htmlinputter_no_bs4", "astropy/io/ascii/tests/test_html.py::test_multicolumn_write", "astropy/io/ascii/tests/test_html.py::test_write_no_multicols", "astropy/io/ascii/tests/test_html.py::test_write_table_html_fill_values...
cdf311e0714e611d48b0a31eb1f0e2cbffab7f23
15 min - 1 hour
astropy/astropy
astropy__astropy-7166
26d147868f8a891a6009a25cd6a8576d2e1bd747
diff --git a/astropy/utils/misc.py b/astropy/utils/misc.py --- a/astropy/utils/misc.py +++ b/astropy/utils/misc.py @@ -4,9 +4,6 @@ A "grab bag" of relatively small general-purpose utilities that don't have a clear module/package to live in. """ - - - import abc import contextlib import difflib @@ -27,7 +24,6 @@ ...
diff --git a/astropy/utils/tests/test_misc.py b/astropy/utils/tests/test_misc.py --- a/astropy/utils/tests/test_misc.py +++ b/astropy/utils/tests/test_misc.py @@ -80,14 +80,26 @@ def __call__(self, *args): "FOO" pass + @property + def bar(self): + "BAR" + ...
## Issue Description The `InheritDocstrings` metaclass in `astropy.utils.misc` fails to properly inherit docstrings for properties because it uses `inspect.isfunction()` to detect callable attributes eligible for docstring inheritance. Since `inspect.isfunction()` returns `False` for property descriptors, properties a...
This was as implemented back in #2159. I don't see any `inspect.isproperty`. Do you have any suggestions? I guess it should work with [inspect.isdatadescriptor](https://docs.python.org/3/library/inspect.html#inspect.isdatadescriptor). And I wonder if this class is still needed, it seems that it started with #2136 for...
2018-02-07T15:05:31Z
1.3
["astropy/utils/tests/test_misc.py::test_inherit_docstrings"]
["astropy/utils/tests/test_misc.py::test_isiterable", "astropy/utils/tests/test_misc.py::test_signal_number_to_name_no_failure", "astropy/utils/tests/test_misc.py::test_skip_hidden", "astropy/utils/tests/test_misc.py::test_JsonCustomEncoder", "astropy/utils/tests/test_misc.py::test_check_broadcast", "astropy/utils/test...
848c8fa21332abd66b44efe3cb48b72377fb32cc
<15 min fix
astropy/astropy
astropy__astropy-13977
5250b2442501e6c671c6b380536f1edb352602d1
diff --git a/astropy/units/quantity.py b/astropy/units/quantity.py --- a/astropy/units/quantity.py +++ b/astropy/units/quantity.py @@ -633,53 +633,70 @@ def __array_ufunc__(self, function, method, *inputs, **kwargs): Returns ------- - result : `~astropy.units.Quantity` + result : `~ast...
diff --git a/astropy/units/tests/test_quantity.py b/astropy/units/tests/test_quantity.py --- a/astropy/units/tests/test_quantity.py +++ b/astropy/units/tests/test_quantity.py @@ -505,11 +505,10 @@ def test_incompatible_units(self): def test_non_number_type(self): q1 = u.Quantity(11.412, unit=u.meter) - ...
# Enhanced Problem Statement ## Issue Description The core issue is that `astropy.units.Quantity.__array_ufunc__()` raises a `ValueError` instead of returning `NotImplemented` when it encounters incompatible inputs (specifically custom array-like objects with incompatible units). This prevents Python's operator dispa...
@byrdie - I think you are right that really one should return `NotImplemented`. In general, the idea is indeed that one only works on classes that are recognized, while in the implementation that we have (which I wrote...) essentially everything that has a `unit` attribute is treated as a `Quantity`. I think it is a go...
2022-11-01T22:24:58Z
5.1
["astropy/units/tests/test_quantity_ufuncs.py::TestUfuncReturnsNotImplemented::TestBinaryUfuncs::test_full[None-duck_quantity0-quantity0-add]", "astropy/units/tests/test_quantity_ufuncs.py::TestUfuncReturnsNotImplemented::TestBinaryUfuncs::test_full[None-duck_quantity0-quantity0-less]", "astropy/units/tests/test_quanti...
["astropy/units/tests/test_quantity.py::TestQuantityCreation::test_1", "astropy/units/tests/test_quantity.py::TestQuantityCreation::test_2", "astropy/units/tests/test_quantity.py::TestQuantityCreation::test_3", "astropy/units/tests/test_quantity.py::TestQuantityCreation::test_nan_inf", "astropy/units/tests/test_quantit...
5f74eacbcc7fff707a44d8eb58adaa514cb7dcb5
15 min - 1 hour
astropy/astropy
astropy__astropy-14182
a5917978be39d13cd90b517e1de4e7a539ffaa48
"diff --git a/astropy/io/ascii/rst.py b/astropy/io/ascii/rst.py\n--- a/astropy/io/ascii/rst.py\n+++ (...TRUNCATED)
"diff --git a/astropy/io/ascii/tests/test_rst.py b/astropy/io/ascii/tests/test_rst.py\n--- a/astropy(...TRUNCATED)
"## Issue Description\n\nThe `astropy` package currently supports writing `Table` objects in Restruc(...TRUNCATED)
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::te(...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)
"# Issue Description\n\nWhen structured NumPy arrays (arrays with multiple named fields in their dty(...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-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\nAn `IndexError: tuple index out of range` is occurring in the `identify_for(...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
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)
"# Enhanced Problem Statement: Improper Float Formatting in `io.fits.Card`\n\n## Issue Description\n(...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
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
4