repo stringclasses 12
values | instance_id stringlengths 18 32 | base_commit stringlengths 40 40 | patch stringlengths 344 252k | test_patch stringlengths 398 22.9k | problem_statement stringlengths 119 25.4k | hints_text stringlengths 1 55.7k ⌀ | created_at stringlengths 20 20 | version float64 0.12 2.02k | FAIL_TO_PASS stringlengths 12 120k | PASS_TO_PASS stringlengths 2 114k | environment_setup_commit stringclasses 89
values |
|---|---|---|---|---|---|---|---|---|---|---|---|
astropy/astropy | astropy__astropy-12057 | b6769c18c0881b6d290e543e9334c25043018b3f | diff --git a/astropy/nddata/nduncertainty.py b/astropy/nddata/nduncertainty.py
--- a/astropy/nddata/nduncertainty.py
+++ b/astropy/nddata/nduncertainty.py
@@ -395,6 +395,40 @@ def _propagate_multiply(self, other_uncert, result_data, correlation):
def _propagate_divide(self, other_uncert, result_data, correlation):... | diff --git a/astropy/nddata/tests/test_nduncertainty.py b/astropy/nddata/tests/test_nduncertainty.py
--- a/astropy/nddata/tests/test_nduncertainty.py
+++ b/astropy/nddata/tests/test_nduncertainty.py
@@ -4,7 +4,7 @@
import pytest
import numpy as np
-from numpy.testing import assert_array_equal
+from numpy.testing im... | Add helpers to convert between different types of uncertainties
Currently there no easy way to convert from an arbitrary uncertainty class to a different uncertainty class. This would be useful to be able to pass NDData objects to external libraries/tools which assume, for example, that uncertainties will always stored... | See also #10128 which is maybe not exactly the same need but related in the sense that there is currently no easy way to get uncertainties in a specific format (variance, std).
Very much from the left field, but in coordinate representations, we deal with this by insisting every representation can be transformed to/fro... | 2021-08-14T10:06:53Z | 4.3 | ["astropy/nddata/tests/test_nduncertainty.py::test_conversion_to_from_variance_supported[InverseVariance-<lambda>]", "astropy/nddata/tests/test_nduncertainty.py::test_conversion_to_from_variance_supported[StdDevUncertainty-<lambda>]", "astropy/nddata/tests/test_nduncertainty.py::test_conversion_to_from_variance_support... | ["astropy/nddata/tests/test_nduncertainty.py::test_assigning_uncertainty_to_parent_gives_correct_unit[InverseVariance-expected_unit2-CCDData]", "astropy/nddata/tests/test_nduncertainty.py::test_assigning_uncertainty_to_parent_gives_correct_unit[InverseVariance-expected_unit2-NDDataArray]", "astropy/nddata/tests/test_nd... | 298ccb478e6bf092953bca67a3d29dc6c35f6752 |
astropy/astropy | astropy__astropy-12842 | 3a0cd2d8cd7b459cdc1e1b97a14f3040ccc1fffc | diff --git a/astropy/time/core.py b/astropy/time/core.py
--- a/astropy/time/core.py
+++ b/astropy/time/core.py
@@ -34,7 +34,7 @@
from astropy.extern import _strptime
-__all__ = ['TimeBase', 'Time', 'TimeDelta', 'TimeInfo', 'update_leap_seconds',
+__all__ = ['TimeBase', 'Time', 'TimeDelta', 'TimeInfo', 'TimeInfoBas... | diff --git a/astropy/io/ascii/tests/test_ecsv.py b/astropy/io/ascii/tests/test_ecsv.py
--- a/astropy/io/ascii/tests/test_ecsv.py
+++ b/astropy/io/ascii/tests/test_ecsv.py
@@ -822,13 +822,13 @@ def _make_expected_values(cols):
'name': '2-d regular array',
'subtype': 'float16[2,2]'}]
-cols['scalar object'] ... | No longer able to read BinnedTimeSeries with datetime column saved as ECSV after upgrading from 4.2.1 -> 5.0+
<!-- 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/CONTRI... | I hope you don't mind me tagging you @taldcroft as it was your commit, maybe you can help me figure out if this is a bug or an evolution in `astropy.TimeSeries` that requires an alternative file format? I was pretty happy using ecsv formatted files to save complex data as they have been pretty stable, easy to visually ... | 2022-02-12T12:38:10Z | 4.3 | ["astropy/time/tests/test_basic.py::test_write_every_format_to_ecsv[byear]", "astropy/time/tests/test_basic.py::test_write_every_format_to_ecsv[datetime64]", "astropy/time/tests/test_basic.py::test_write_every_format_to_ecsv[datetime]"] | ["astropy/io/ascii/tests/test_ecsv.py::astropy.io.ascii.tests.test_ecsv.test_round_trip_masked_table_default", "astropy/io/ascii/tests/test_ecsv.py::test_bad_delimiter", "astropy/io/ascii/tests/test_ecsv.py::test_bad_delimiter_input", "astropy/io/ascii/tests/test_ecsv.py::test_bad_header_start", "astropy/io/ascii/tests... | 298ccb478e6bf092953bca67a3d29dc6c35f6752 |
astropy/astropy | astropy__astropy-12880 | b49ad06b4de9577648a55d499d914e08baeef2c6 | diff --git a/astropy/io/ascii/ecsv.py b/astropy/io/ascii/ecsv.py
--- a/astropy/io/ascii/ecsv.py
+++ b/astropy/io/ascii/ecsv.py
@@ -129,7 +129,9 @@ def get_cols(self, lines):
match = re.match(ecsv_header_re, lines[0].strip(), re.VERBOSE)
if not match:
raise core.InconsistentTableError(no_h... | diff --git a/astropy/io/ascii/tests/test_ecsv.py b/astropy/io/ascii/tests/test_ecsv.py
--- a/astropy/io/ascii/tests/test_ecsv.py
+++ b/astropy/io/ascii/tests/test_ecsv.py
@@ -21,6 +21,7 @@
from astropy.units import QuantityInfo
from astropy.utils.exceptions import AstropyUserWarning
+from astropy.utils.compat impor... | No longer able to read BinnedTimeSeries with datetime column saved as ECSV after upgrading from 4.2.1 -> 5.0+
<!-- 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/CONTRI... | I hope you don't mind me tagging you @taldcroft as it was your commit, maybe you can help me figure out if this is a bug or an evolution in `astropy.TimeSeries` that requires an alternative file format? I was pretty happy using ecsv formatted files to save complex data as they have been pretty stable, easy to visually ... | 2022-02-21T13:57:37Z | 4.3 | ["astropy/io/ascii/tests/test_ecsv.py::test_read_bad_datatype_v09", "astropy/io/ascii/tests/test_ecsv.py::test_read_complex_v09"] | ["astropy/io/ascii/tests/test_ecsv.py::astropy.io.ascii.tests.test_ecsv.test_round_trip_masked_table_default", "astropy/io/ascii/tests/test_ecsv.py::test_bad_delimiter", "astropy/io/ascii/tests/test_ecsv.py::test_bad_delimiter_input", "astropy/io/ascii/tests/test_ecsv.py::test_bad_header_start", "astropy/io/ascii/tests... | 298ccb478e6bf092953bca67a3d29dc6c35f6752 |
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]),
+ ... | 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 you might ... | null | 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_arith_oper", "astropy/modeling/tests/test_separable.py::test_cdot", "astropy/modeling/tests/test_separable.py::test_coord_matrix", "astropy/modeling/tests/test_separable.py::test_cstack", "astropy/modeling/tests/test_separable.py::test_custom_model_separable", "astropy/m... | 298ccb478e6bf092953bca67a3d29dc6c35f6752 |
astropy/astropy | astropy__astropy-13032 | d707b792d3ca45518a53b4a395c81ee86bd7b451 | diff --git a/astropy/modeling/bounding_box.py b/astropy/modeling/bounding_box.py
--- a/astropy/modeling/bounding_box.py
+++ b/astropy/modeling/bounding_box.py
@@ -694,6 +694,12 @@ def _validate_dict(self, bounding_box: dict):
for key, value in bounding_box.items():
self[key] = value
+ @proper... | diff --git a/astropy/modeling/tests/test_bounding_box.py b/astropy/modeling/tests/test_bounding_box.py
--- a/astropy/modeling/tests/test_bounding_box.py
+++ b/astropy/modeling/tests/test_bounding_box.py
@@ -12,7 +12,7 @@
_ignored_interval, _Interval, _SelectorArgument,
... | Incorrect ignored usage in `ModelBoundingBox`
<!-- 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 out our code of conduct,
htt... | You just can't differentiate between a robot and the very best of humans.
*(A special day message.)* | 2022-03-31T16:32:46Z | 4.3 | ["astropy/modeling/tests/test_bounding_box.py::TestCompoundBoundingBox::test___repr__", "astropy/modeling/tests/test_bounding_box.py::TestModelBoundingBox::test_bounding_box_ignore"] | ["astropy/modeling/tests/test_bounding_box.py::TestCompoundBoundingBox::test___contains__", "astropy/modeling/tests/test_bounding_box.py::TestCompoundBoundingBox::test___eq__", "astropy/modeling/tests/test_bounding_box.py::TestCompoundBoundingBox::test___getitem__", "astropy/modeling/tests/test_bounding_box.py::TestCom... | 298ccb478e6bf092953bca67a3d29dc6c35f6752 |
astropy/astropy | astropy__astropy-13068 | 2288ecd4e9c4d3722d72b7f4a6555a34f4f04fc7 | diff --git a/astropy/time/core.py b/astropy/time/core.py
--- a/astropy/time/core.py
+++ b/astropy/time/core.py
@@ -655,9 +655,6 @@ def precision(self):
@precision.setter
def precision(self, val):
del self.cache
- if not isinstance(val, int) or val < 0 or val > 9:
- raise ValueError(... | diff --git a/astropy/time/tests/test_basic.py b/astropy/time/tests/test_basic.py
--- a/astropy/time/tests/test_basic.py
+++ b/astropy/time/tests/test_basic.py
@@ -259,6 +259,20 @@ def test_precision(self):
assert t.iso == '2010-01-01 00:00:00.000000000'
assert t.tai.utc.iso == '2010-01-01 00:00:00.000... | Time from astropy.time not precise
Hello,
I encounter difficulties with Time. I'm working on a package to perform photometry and occultation.
For this last case, data need times values accurately estimated. Of course, data coming from different camera will will have different time format in the header.
to manage th... | 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-04-05T19:35:35Z | 5 | ["astropy/time/tests/test_basic.py::TestBasic::test_precision_input"] | ["astropy/time/tests/test_basic.py::TestBasic::test_all_scale_transforms", "astropy/time/tests/test_basic.py::TestBasic::test_copy_time[2455197.5]", "astropy/time/tests/test_basic.py::TestBasic::test_copy_time[value1]", "astropy/time/tests/test_basic.py::TestBasic::test_creating_all_formats", "astropy/time/tests/test_b... | cdf311e0714e611d48b0a31eb1f0e2cbffab7f23 |
astropy/astropy | astropy__astropy-13158 | b185ca184f8dd574531dcc21e797f00537fefa6a | "diff --git a/astropy/modeling/bounding_box.py b/astropy/modeling/bounding_box.py\n--- a/astropy/mod(...TRUNCATED) | "diff --git a/astropy/modeling/tests/test_models_quantities.py b/astropy/modeling/tests/test_models_(...TRUNCATED) | "Model evaluation fails if any model parameter is a `MagUnit` type value\n<!-- This comments are hid(...TRUNCATED) | "Note that the simple change of https://github.com/astropy/astropy/blob/675dc03e138d5c6a1cb6936a6b2c(...TRUNCATED) | 2022-04-22T17:32:23Z | 5 | "[\"astropy/modeling/tests/test_models_quantities.py::test_Schechter1D_errors\", \"astropy/modeling/(...TRUNCATED) | "[\"astropy/modeling/tests/test_models_quantities.py::test_compound_model_input_units_equivalencies_(...TRUNCATED) | cdf311e0714e611d48b0a31eb1f0e2cbffab7f23 |
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) | "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 | 5 | "[\"astropy/table/tests/test_mixin.py::test_ndarray_mixin[False]\", \"astropy/table/tests/test_table(...TRUNCATED) | "[\"astropy/table/tests/test_mixin.py::test_add_column[arrayswap]\", \"astropy/table/tests/test_mixi(...TRUNCATED) | cdf311e0714e611d48b0a31eb1f0e2cbffab7f23 |
astropy/astropy | astropy__astropy-13390 | 1e75f298aef2540240c63b4075d06851d55fc19a | "diff --git a/astropy/table/column.py b/astropy/table/column.py\n--- a/astropy/table/column.py\n+++ (...TRUNCATED) | "diff --git a/astropy/table/tests/test_column.py b/astropy/table/tests/test_column.py\n--- a/astropy(...TRUNCATED) | "BUG: Table test failures with np 1.23.0rc3\n```\n==================================================(...TRUNCATED) | "Related details: https://github.com/astropy/astroquery/issues/2440#issuecomment-1155588504\nxref ht(...TRUNCATED) | 2022-06-23T20:06:08Z | 5 | "[\"astropy/table/tests/test_column.py::TestColumn::test_quantity_comparison[MaskedColumn]\", \"astr(...TRUNCATED) | "[\"astropy/table/tests/test_column.py::TestAttrEqual::test_10[Column]\", \"astropy/table/tests/test(...TRUNCATED) | cdf311e0714e611d48b0a31eb1f0e2cbffab7f23 |
astropy/astropy | astropy__astropy-13438 | 4bd88be61fdf4185b9c198f7e689a40041e392ee | "diff --git a/astropy/table/jsviewer.py b/astropy/table/jsviewer.py\n--- a/astropy/table/jsviewer.py(...TRUNCATED) | "diff --git a/astropy/table/tests/test_jsviewer.py b/astropy/table/tests/test_jsviewer.py\n--- a/ast(...TRUNCATED) | "[Security] Jquery 3.1.1 is vulnerable to untrusted code execution\n<!-- This comments are hidden wh(...TRUNCATED) | "Welcome to Astropy 👋 and thank you for your first issue!\n\nA project member will respond to you(...TRUNCATED) | 2022-07-07T07:29:35Z | 5 | "[\"astropy/table/tests/test_jsviewer.py::test_write_jsviewer_default\", \"astropy/table/tests/test_(...TRUNCATED) | ["astropy/table/tests/test_jsviewer.py::test_write_jsviewer_overwrite"] | cdf311e0714e611d48b0a31eb1f0e2cbffab7f23 |
End of preview. Expand in Data Studio
README.md exists but content is empty.
- Downloads last month
- 3