instance_id stringlengths 18 32 | text stringlengths 5.13k 1.02M | repo stringclasses 11
values | base_commit stringlengths 40 40 | problem_statement stringlengths 36 24.8k | hints_text stringlengths 0 38.1k | created_at stringlengths 20 20 | patch stringlengths 302 252k | test_patch stringlengths 347 33.9k | version stringclasses 55
values | FAIL_TO_PASS stringlengths 12 95.7k | PASS_TO_PASS stringlengths 2 271k | environment_setup_commit stringlengths 40 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
astropy__astropy-12318 | You will be provided with a partial code base and an issue statement explaining a problem to resolve.
<issue>
BlackBody bolometric flux is wrong if scale has units of dimensionless_unscaled
The `astropy.modeling.models.BlackBody` class has the wrong bolometric flux if `scale` argument is passed as a Quantity with `dime... | astropy/astropy | 43ce7895bb5b61d4fab2f9cc7d07016cf105f18e | BlackBody bolometric flux is wrong if scale has units of dimensionless_unscaled
The `astropy.modeling.models.BlackBody` class has the wrong bolometric flux if `scale` argument is passed as a Quantity with `dimensionless_unscaled` units, but the correct bolometric flux if `scale` is simply a float.
### Description
<... | I forgot who added that part of `BlackBody`. It was either @karllark or @astrofrog .
There are several problems here:
1. In `BlackBody.evaluate()`, there is an `if` statement that handles two special cases: either scale is dimensionless, and multiplies the original blackbody surface brightness, or `scale` has units ... | 2021-10-28T15:32:17Z | <patch>
diff --git a/astropy/modeling/physical_models.py b/astropy/modeling/physical_models.py
--- a/astropy/modeling/physical_models.py
+++ b/astropy/modeling/physical_models.py
@@ -27,7 +27,12 @@ class BlackBody(Fittable1DModel):
Blackbody temperature.
scale : float or `~astropy.units.Quantity` ['dime... | diff --git a/astropy/modeling/tests/test_physical_models.py b/astropy/modeling/tests/test_physical_models.py
--- a/astropy/modeling/tests/test_physical_models.py
+++ b/astropy/modeling/tests/test_physical_models.py
@@ -40,6 +40,17 @@ def test_blackbody_sefanboltzman_law():
assert_quantity_allclose(b.bolometric_flu... | 4.3 | ["astropy/modeling/tests/test_physical_models.py::test_blackbody_input_units", "astropy/modeling/tests/test_physical_models.py::test_blackbody_exceptions_and_warnings", "astropy/modeling/tests/test_physical_models.py::test_blackbody_dimensionless"] | ["astropy/modeling/tests/test_physical_models.py::test_blackbody_evaluate[temperature0]", "astropy/modeling/tests/test_physical_models.py::test_blackbody_evaluate[temperature1]", "astropy/modeling/tests/test_physical_models.py::test_blackbody_weins_law", "astropy/modeling/tests/test_physical_models.py::test_blackbody_s... | 298ccb478e6bf092953bca67a3d29dc6c35f6752 |
astropy__astropy-12825 | "You will be provided with a partial code base and an issue statement explaining a problem to resolv(...TRUNCATED) | astropy/astropy | 43ee5806e9c6f7d58c12c1cb9287b3c61abe489d | "SkyCoord in Table breaks aggregate on group_by\n### Description, actual behaviour, reproduction\r\n(...TRUNCATED) | "Hmm. Maybe the logic here needs fixing:\r\n\r\nhttps://github.com/astropy/astropy/blob/bcde23429a07(...TRUNCATED) | 2022-02-05T12:13:44Z | "<patch>\ndiff --git a/astropy/table/column.py b/astropy/table/column.py\n--- a/astropy/table/column(...TRUNCATED) | "diff --git a/astropy/table/tests/conftest.py b/astropy/table/tests/conftest.py\n--- a/astropy/table(...TRUNCATED) | 4.3 | "[\"astropy/table/tests/test_groups.py::test_table_aggregate[False]\", \"astropy/table/tests/test_gr(...TRUNCATED) | "[\"astropy/table/tests/test_groups.py::test_column_group_by[False]\", \"astropy/table/tests/test_gr(...TRUNCATED) | 298ccb478e6bf092953bca67a3d29dc6c35f6752 |
astropy__astropy-12842 | "You will be provided with a partial code base and an issue statement explaining a problem to resolv(...TRUNCATED) | astropy/astropy | 3a0cd2d8cd7b459cdc1e1b97a14f3040ccc1fffc | "No longer able to read BinnedTimeSeries with datetime column saved as ECSV after upgrading from 4.2(...TRUNCATED) | "I hope you don't mind me tagging you @taldcroft as it was your commit, maybe you can help me figure(...TRUNCATED) | 2022-02-12T12:38:10Z | "<patch>\ndiff --git a/astropy/time/core.py b/astropy/time/core.py\n--- a/astropy/time/core.py\n+++ (...TRUNCATED) | "diff --git a/astropy/io/ascii/tests/test_ecsv.py b/astropy/io/ascii/tests/test_ecsv.py\n--- a/astro(...TRUNCATED) | 4.3 | "[\"astropy/time/tests/test_basic.py::test_write_every_format_to_ecsv[datetime]\", \"astropy/time/te(...TRUNCATED) | "[\"astropy/io/ascii/tests/test_ecsv.py::astropy.io.ascii.tests.test_ecsv.test_round_trip_masked_tab(...TRUNCATED) | 298ccb478e6bf092953bca67a3d29dc6c35f6752 |
astropy__astropy-13073 | "You will be provided with a partial code base and an issue statement explaining a problem to resolv(...TRUNCATED) | astropy/astropy | 43ee5806e9c6f7d58c12c1cb9287b3c61abe489d | "Document reading True/False in ASCII table as bool not str\n<!-- This comments are hidden when you (...TRUNCATED) | "Hi!\r\n\r\nI'm wondering if something as simple as this is sufficient or if you think it needs its (...TRUNCATED) | 2022-04-06T16:29:58Z | "<patch>\ndiff --git a/astropy/io/ascii/core.py b/astropy/io/ascii/core.py\n--- a/astropy/io/ascii/c(...TRUNCATED) | "diff --git a/astropy/io/ascii/tests/test_read.py b/astropy/io/ascii/tests/test_read.py\n--- a/astro(...TRUNCATED) | 5.0 | ["astropy/io/ascii/tests/test_read.py::test_read_converters_simplified"] | "[\"astropy/io/ascii/tests/test_read.py::test_convert_overflow[True]\", \"astropy/io/ascii/tests/tes(...TRUNCATED) | cdf311e0714e611d48b0a31eb1f0e2cbffab7f23 |
astropy__astropy-13075 | "You will be provided with a partial code base and an issue statement explaining a problem to resolv(...TRUNCATED) | astropy/astropy | c660b079b6472920662ca4a0c731751a0342448c | "Register format ``html`` to ``Cosmology.write`` with nice mathjax\nCosmology can now read and write(...TRUNCATED) | "Hi. I am a new contributor and was wondering if this was still open for contribution? I would like (...TRUNCATED) | 2022-04-06T19:44:23Z | "<patch>\ndiff --git a/astropy/cosmology/io/__init__.py b/astropy/cosmology/io/__init__.py\n--- a/as(...TRUNCATED) | "diff --git a/astropy/cosmology/io/tests/test_.py b/astropy/cosmology/io/tests/test_.py\n--- a/astro(...TRUNCATED) | 5.0 | "[\"astropy/cosmology/io/tests/test_.py::test_expected_readwrite_io\", \"astropy/cosmology/io/tests/(...TRUNCATED) | [] | cdf311e0714e611d48b0a31eb1f0e2cbffab7f23 |
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-13417 | "You will be provided with a partial code base and an issue statement explaining a problem to resolv(...TRUNCATED) | astropy/astropy | 7539d76ceae146f930d4473107d9940d2fc0b74f | "FITS problem reading binary table with variable length columns\nI want to read a certain FITS file (...TRUNCATED) | "It took me a bit of time to figure out the issue, as I know almost nothing about VLA, and the `io.f(...TRUNCATED) | 2022-07-01T08:50:37Z | "<patch>\ndiff --git a/astropy/io/fits/column.py b/astropy/io/fits/column.py\n--- a/astropy/io/fits/(...TRUNCATED) | "diff --git a/astropy/io/fits/tests/test_table.py b/astropy/io/fits/tests/test_table.py\n--- a/astro(...TRUNCATED) | 5.0 | ["astropy/io/fits/tests/test_table.py::TestVLATables::test_multidim_VLA_tables"] | "[\"astropy/io/fits/tests/test_table.py::TestTableFunctions::test_constructor_copies_header\", \"ast(...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-13462 | "You will be provided with a partial code base and an issue statement explaining a problem to resolv(...TRUNCATED) | astropy/astropy | d441bfdbb8e6dc57a52d8c1b117cadd030f0657a | "TST: time/tests/test_precision.py failed in pyinstaller (computed error is different depending on t(...TRUNCATED) | "At a glance, I don't see any version change in numpy, hypothesis, etc. Is this transient? 🤔 (Res(...TRUNCATED) | 2022-07-16T16:57:17Z | "<patch>\ndiff --git a/astropy/time/utils.py b/astropy/time/utils.py\n--- a/astropy/time/utils.py\n+(...TRUNCATED) | "diff --git a/astropy/time/tests/test_basic.py b/astropy/time/tests/test_basic.py\n--- a/astropy/tim(...TRUNCATED) | 5.0 | ["astropy/time/tests/test_precision.py::test_day_frac_exact"] | "[\"astropy/time/tests/test_basic.py::TestBasic::test_different_dimensions\", \"astropy/time/tests/t(...TRUNCATED) | cdf311e0714e611d48b0a31eb1f0e2cbffab7f23 |
astropy__astropy-14253 | "You will be provided with a partial code base and an issue statement explaining a problem to resolv(...TRUNCATED) | astropy/astropy | dd2304672cdf4ea1b6f124f9f22ec5069a13c9f5 | "When should `info` be linked to a new object?\nMostly for @taldcroft - I noticed that in `Quantity`(...TRUNCATED) | "@mhvk - I basically agree with your assessment as being logical. I guess the only question is abou(...TRUNCATED) | 2023-01-04T19:59:52Z | "<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_info.py::TestQuantityInfo::test_unary_op\", \"astropy/units/te(...TRUNCATED) | "[\"astropy/units/tests/test_quantity.py::TestQuantityCreation::test_1\", \"astropy/units/tests/test(...TRUNCATED) | 5f74eacbcc7fff707a44d8eb58adaa514cb7dcb5 |
End of preview. Expand in Data Studio
No dataset card yet
- Downloads last month
- 2