instance_id stringlengths 18 32 | text stringlengths 4.44k 962k | repo stringclasses 12
values | base_commit stringlengths 40 40 | problem_statement stringlengths 143 24.8k | hints_text stringlengths 0 15.4k | created_at stringlengths 20 20 | patch stringlengths 294 17.4k | test_patch stringlengths 367 26.6k | version stringclasses 53
values | FAIL_TO_PASS stringlengths 12 32.6k | PASS_TO_PASS stringlengths 2 271k | environment_setup_commit stringclasses 80
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
astropy__astropy-12907 | You will be provided with a partial code base and an issue statement explaining a problem to resolve.
<issue>
Modeling's `separability_matrix` does not compute separability correctly for nested CompoundModels
Consider the following model:
```python
from astropy.modeling import models as m
from astropy.modeling.sep... | astropy/astropy | d16bfe05a744909de4b27f5875fe0d4ed41ce607 | Modeling's `separability_matrix` does not compute separability correctly for nested CompoundModels
Consider the following model:
```python
from astropy.modeling import models as m
from astropy.modeling.separable import separability_matrix
cm = m.Linear1D(10) & m.Linear1D(5)
```
It's separability matrix as y... | 2022-03-03T15:14:54Z | <patch>
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]),
+ ... | 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 | |
astropy__astropy-13033 | You will be provided with a partial code base and an issue statement explaining a problem to resolve.
<issue>
TimeSeries: misleading exception when required column check fails.
<!-- This comments are hidden when you submit the issue,
so you do not need to remove them! -->
<!-- Please be sure to check out our contri... | astropy/astropy | 298ccb478e6bf092953bca67a3d29dc6c35f6752 | TimeSeries: misleading exception when required column check fails.
<!-- This comments are hidden when you submit the issue,
so you do not need to remove them! -->
<!-- Please be sure to check out our contributing guidelines,
https://github.com/astropy/astropy/blob/main/CONTRIBUTING.md .
Please be sure to check ou... | 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 | <patch>
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):
+ ... | 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 "
... | 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 |
astropy__astropy-13236 | "You will be provided with a partial code base and an issue statement explaining a problem to resolv(...TRUNCATED) | astropy/astropy | 6ed769d58d89380ebaa1ef52b300691eefda8928 | "Consider removing auto-transform of structured column into NdarrayMixin\n<!-- This comments are hid(...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 | "<patch>\ndiff --git a/astropy/table/table.py b/astropy/table/table.py\n--- a/astropy/table/table.py(...TRUNCATED) | "diff --git a/astropy/table/tests/test_mixin.py b/astropy/table/tests/test_mixin.py\n--- a/astropy/t(...TRUNCATED) | 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 |
astropy__astropy-13398 | "You will be provided with a partial code base and an issue statement explaining a problem to resolv(...TRUNCATED) | astropy/astropy | 6500928dc0e57be8f06d1162eacc3ba5e2eff692 | "A direct approach to ITRS to Observed transformations that stays within the ITRS.\n<!-- This commen(...TRUNCATED) | "cc @StuartLittlefair, @adrn, @eteq, @eerovaher, @mhvk \nYes, would be good to address this recurrin(...TRUNCATED) | 2022-06-24T15:22:11Z | "<patch>\ndiff --git a/astropy/coordinates/builtin_frames/__init__.py b/astropy/coordinates/builtin_(...TRUNCATED) | "diff --git a/astropy/coordinates/tests/test_intermediate_transformations.py b/astropy/coordinates/t(...TRUNCATED) | 5.0 | "[\"astropy/coordinates/tests/test_intermediate_transformations.py::test_itrs_topo_to_altaz_with_ref(...TRUNCATED) | "[\"astropy/coordinates/tests/test_intermediate_transformations.py::test_icrs_gcrs[icoo0]\", \"astro(...TRUNCATED) | cdf311e0714e611d48b0a31eb1f0e2cbffab7f23 |
astropy__astropy-13453 | "You will be provided with a partial code base and an issue statement explaining a problem to resolv(...TRUNCATED) | astropy/astropy | 19cc80471739bcb67b7e8099246b391c355023ee | "ASCII table output to HTML does not support supplied \"formats\"\n<!-- This comments are hidden whe(...TRUNCATED) | "Welcome to Astropy 👋 and thank you for your first issue!\n\nA project member will respond to you(...TRUNCATED) | 2022-07-14T10:04:40Z | "<patch>\ndiff --git a/astropy/io/ascii/html.py b/astropy/io/ascii/html.py\n--- a/astropy/io/ascii/h(...TRUNCATED) | "diff --git a/astropy/io/ascii/tests/test_html.py b/astropy/io/ascii/tests/test_html.py\n--- a/astro(...TRUNCATED) | 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::t(...TRUNCATED) | cdf311e0714e611d48b0a31eb1f0e2cbffab7f23 |
astropy__astropy-13579 | "You will be provided with a partial code base and an issue statement explaining a problem to resolv(...TRUNCATED) | astropy/astropy | 0df94ff7097961e92fd7812036a24b145bc13ca8 | "Inconsistent behavior of `world_to_pixel` in `SlicedLowLevelWCS` \n<!-- This comments are hidden wh(...TRUNCATED) | "A slightly shorter script to reproduce the issue is this (starting from the definition of `fits_wcs(...TRUNCATED) | 2022-08-26T15:06:53Z | "<patch>\ndiff --git a/astropy/wcs/wcsapi/wrappers/sliced_wcs.py b/astropy/wcs/wcsapi/wrappers/slice(...TRUNCATED) | "diff --git a/astropy/wcs/wcsapi/wrappers/tests/test_sliced_wcs.py b/astropy/wcs/wcsapi/wrappers/tes(...TRUNCATED) | 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 |
astropy__astropy-13977 | "You will be provided with a partial code base and an issue statement explaining a problem to resolv(...TRUNCATED) | astropy/astropy | 5250b2442501e6c671c6b380536f1edb352602d1 | "Should `Quantity.__array_ufunc__()` return `NotImplemented` instead of raising `ValueError` if the (...TRUNCATED) | "@byrdie - I think you are right that really one should return `NotImplemented`. In general, the ide(...TRUNCATED) | 2022-11-01T22:24:58Z | "<patch>\ndiff --git a/astropy/units/quantity.py b/astropy/units/quantity.py\n--- a/astropy/units/qu(...TRUNCATED) | "diff --git a/astropy/units/tests/test_quantity.py b/astropy/units/tests/test_quantity.py\n--- a/ast(...TRUNCATED) | 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 |
astropy__astropy-14096 | "You will be provided with a partial code base and an issue statement explaining a problem to resolv(...TRUNCATED) | astropy/astropy | 1a4462d72eb03f30dc83a879b1dd57aac8b2c18b | "Subclassed SkyCoord gives misleading attribute access message\nI'm trying to subclass `SkyCoord`, a(...TRUNCATED) | "This is because the property raises an `AttributeError`, which causes Python to call `__getattr__`.(...TRUNCATED) | 2022-12-04T17:06:07Z | "<patch>\ndiff --git a/astropy/coordinates/sky_coordinate.py b/astropy/coordinates/sky_coordinate.py(...TRUNCATED) | "diff --git a/astropy/coordinates/tests/test_sky_coord.py b/astropy/coordinates/tests/test_sky_coord(...TRUNCATED) | 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/coo(...TRUNCATED) | 5f74eacbcc7fff707a44d8eb58adaa514cb7dcb5 |
astropy__astropy-14182 | "You will be provided with a partial code base and an issue statement explaining a problem to resolv(...TRUNCATED) | astropy/astropy | a5917978be39d13cd90b517e1de4e7a539ffaa48 | "Please support header rows in RestructuredText output\n### Description\r\n\r\nIt would be great if (...TRUNCATED) | 2022-12-16T11:13:37Z | "<patch>\ndiff --git a/astropy/io/ascii/rst.py b/astropy/io/ascii/rst.py\n--- a/astropy/io/ascii/rst(...TRUNCATED) | "diff --git a/astropy/io/ascii/tests/test_rst.py b/astropy/io/ascii/tests/test_rst.py\n--- a/astropy(...TRUNCATED) | 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 | |
astropy__astropy-14309 | "You will be provided with a partial code base and an issue statement explaining a problem to resolv(...TRUNCATED) | astropy/astropy | cdb66059a2feb44ee49021874605ba90801f9986 | "IndexError: tuple index out of range in identify_format (io.registry)\n<!-- This comments are hidde(...TRUNCATED) | cc @nstarman from #14274 | 2023-01-23T22:34:01Z | "<patch>\ndiff --git a/astropy/io/fits/connect.py b/astropy/io/fits/connect.py\n--- a/astropy/io/fit(...TRUNCATED) | "diff --git a/astropy/io/fits/tests/test_connect.py b/astropy/io/fits/tests/test_connect.py\n--- a/a(...TRUNCATED) | 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 |
End of preview. Expand in Data Studio
No dataset card yet
- Downloads last month
- 3