Dataset Viewer
Auto-converted to Parquet Duplicate
task_id
string
instance_id
string
split
string
repo
string
base_commit
string
problem_statement
string
prompt
string
workspace_paths_json
string
gold_patch
string
test_patch
string
fail_to_pass_json
string
pass_to_pass_json
string
hints_text
string
version
string
difficulty
string
image
string
eval_script
string
eval_type
string
log_parser
string
environment_setup_commit
string
source_dataset
string
marshmallow-code__marshmallow-1343
marshmallow-code__marshmallow-1343
dev
marshmallow-code/marshmallow
2be2d83a1a9a6d3d9b85804f3ab545cecc409bb0
[version 2.20.0] TypeError: 'NoneType' object is not subscriptable After update from version 2.19.5 to 2.20.0 I got error for code like: ```python from marshmallow import Schema, fields, validates class Bar(Schema): value = fields.String() @validates('value') # <- issue here def validate_valu...
You are a software engineering agent inside a full git checkout of the repo. Resolve the GitHub issue by exploring and editing files with your tools (ls, glob, grep, read_file, write_file, edit_file, execute). Prefer minimal correct edits. Do not modify tests unless necessary. When finished, stop calling tools and repl...
["src/marshmallow/schema.py"]
diff --git a/src/marshmallow/schema.py b/src/marshmallow/schema.py --- a/src/marshmallow/schema.py +++ b/src/marshmallow/schema.py @@ -877,7 +877,7 @@ def _invoke_field_validators(self, unmarshal, data, many): for idx, item in enumerate(data): try: value = ...
diff --git a/tests/test_marshalling.py b/tests/test_marshalling.py --- a/tests/test_marshalling.py +++ b/tests/test_marshalling.py @@ -2,7 +2,7 @@ import pytest -from marshmallow import fields, Schema +from marshmallow import fields, Schema, validates from marshmallow.marshalling import Marshaller, Unmarshaller, ...
["tests/test_marshalling.py::TestUnmarshaller::test_deserialize_wrong_nested_type_with_validates_method"]
["tests/test_marshalling.py::test_missing_is_falsy", "tests/test_marshalling.py::TestMarshaller::test_prefix", "tests/test_marshalling.py::TestMarshaller::test_marshalling_generator", "tests/test_marshalling.py::TestMarshaller::test_default_to_missing", "tests/test_marshalling.py::TestMarshaller::test_serialize_fields_...
Thanks for reporting. I was able to reproduce this on 2.20.0. This is likely a regression from https://github.com/marshmallow-code/marshmallow/pull/1323 . I don't have time to look into it now. Would appreciate a PR.
2.20
swebench/sweb.eval.x86_64.marshmallow-code_1776_marshmallow-1343:latest
#!/bin/bash set -uxo pipefail source /opt/miniconda3/bin/activate conda activate testbed cd /testbed git config --global --add safe.directory /testbed cd /testbed git status git show git -c core.fileMode=false diff 2be2d83a1a9a6d3d9b85804f3ab545cecc409bb0 source /opt/miniconda3/bin/activate conda activate testbed pytho...
pass_and_fail
parse_log_marshmallow
7015fc4333a2f32cd58c3465296e834acd4496ff
SWE-bench/SWE-bench_Lite
marshmallow-code__marshmallow-1359
marshmallow-code__marshmallow-1359
dev
marshmallow-code/marshmallow
b40a0f4e33823e6d0f341f7e8684e359a99060d1
3.0: DateTime fields cannot be used as inner field for List or Tuple fields Between releases 3.0.0rc8 and 3.0.0rc9, `DateTime` fields have started throwing an error when being instantiated as inner fields of container fields like `List` or `Tuple`. The snippet below works in <=3.0.0rc8 and throws the error below in >=3...
You are a software engineering agent inside a full git checkout of the repo. Resolve the GitHub issue by exploring and editing files with your tools (ls, glob, grep, read_file, write_file, edit_file, execute). Prefer minimal correct edits. Do not modify tests unless necessary. When finished, stop calling tools and repl...
["src/marshmallow/fields.py"]
diff --git a/src/marshmallow/fields.py b/src/marshmallow/fields.py --- a/src/marshmallow/fields.py +++ b/src/marshmallow/fields.py @@ -1114,7 +1114,7 @@ def _bind_to_schema(self, field_name, schema): super()._bind_to_schema(field_name, schema) self.format = ( self.format - or g...
diff --git a/tests/test_fields.py b/tests/test_fields.py --- a/tests/test_fields.py +++ b/tests/test_fields.py @@ -169,6 +169,20 @@ class OtherSchema(MySchema): assert schema2.fields["foo"].key_field.root == schema2 assert schema2.fields["foo"].value_field.root == schema2 + # Regression test for ...
["tests/test_fields.py::TestParentAndName::test_datetime_list_inner_format"]
["tests/test_fields.py::test_field_aliases[Integer-Integer]", "tests/test_fields.py::test_field_aliases[String-String]", "tests/test_fields.py::test_field_aliases[Boolean-Boolean]", "tests/test_fields.py::test_field_aliases[Url-Url]", "tests/test_fields.py::TestField::test_repr", "tests/test_fields.py::TestField::test_...
Thanks for reporting. I don't think I'll have time to look into this until the weekend. Would you like to send a PR? I'm afraid I don't have any time either, and I don't really have enough context on the `_bind_to_schema` process to make sure I'm not breaking stuff. OK, no problem. @lafrech Will you have a chance to l...
3.0
swebench/sweb.eval.x86_64.marshmallow-code_1776_marshmallow-1359:latest
#!/bin/bash set -uxo pipefail source /opt/miniconda3/bin/activate conda activate testbed cd /testbed git config --global --add safe.directory /testbed cd /testbed git status git show git -c core.fileMode=false diff b40a0f4e33823e6d0f341f7e8684e359a99060d1 source /opt/miniconda3/bin/activate conda activate testbed pytho...
pass_and_fail
parse_log_marshmallow
8b3a32614fd4a74e93e9a63a042e74c1fea34466
SWE-bench/SWE-bench_Lite
pvlib__pvlib-python-1072
pvlib__pvlib-python-1072
dev
pvlib/pvlib-python
04a523fafbd61bc2e49420963b84ed8e2bd1b3cf
temperature.fuentes errors when given tz-aware inputs on pandas>=1.0.0 **Describe the bug** When the weather timeseries inputs to `temperature.fuentes` have tz-aware index, an internal call to `np.diff(index)` returns an array of `Timedelta` objects instead of an array of nanosecond ints, throwing an error immediately...
You are a software engineering agent inside a full git checkout of the repo. Resolve the GitHub issue by exploring and editing files with your tools (ls, glob, grep, read_file, write_file, edit_file, execute). Prefer minimal correct edits. Do not modify tests unless necessary. When finished, stop calling tools and repl...
["pvlib/temperature.py"]
diff --git a/pvlib/temperature.py b/pvlib/temperature.py --- a/pvlib/temperature.py +++ b/pvlib/temperature.py @@ -599,8 +599,9 @@ def fuentes(poa_global, temp_air, wind_speed, noct_installed, module_height=5, # n.b. the way Fuentes calculates the first timedelta makes it seem like # the value doesn't matter ...
diff --git a/pvlib/tests/test_temperature.py b/pvlib/tests/test_temperature.py --- a/pvlib/tests/test_temperature.py +++ b/pvlib/tests/test_temperature.py @@ -190,3 +190,17 @@ def test_fuentes(filename, inoct): night_difference = expected_tcell[is_night] - actual_tcell[is_night] assert night_difference.max() ...
["pvlib/tests/test_temperature.py::test_fuentes_timezone[Etc/GMT+5]"]
["pvlib/tests/test_temperature.py::test_sapm_cell", "pvlib/tests/test_temperature.py::test_sapm_module", "pvlib/tests/test_temperature.py::test_sapm_cell_from_module", "pvlib/tests/test_temperature.py::test_sapm_ndarray", "pvlib/tests/test_temperature.py::test_sapm_series", "pvlib/tests/test_temperature.py::test_pvsyst...
0.7
swebench/sweb.eval.x86_64.pvlib_1776_pvlib-python-1072:latest
#!/bin/bash set -uxo pipefail source /opt/miniconda3/bin/activate conda activate testbed cd /testbed git config --global --add safe.directory /testbed cd /testbed git status git show git -c core.fileMode=false diff 04a523fafbd61bc2e49420963b84ed8e2bd1b3cf source /opt/miniconda3/bin/activate conda activate testbed pytho...
pass_and_fail
parse_log_pvlib
6e5148f59c5050e8f7a0084b7ae39e93b80f72e6
SWE-bench/SWE-bench_Lite
pvlib__pvlib-python-1154
pvlib__pvlib-python-1154
dev
pvlib/pvlib-python
0b8f24c265d76320067a5ee908a57d475cd1bb24
pvlib.irradiance.reindl() model generates NaNs when GHI = 0 **Describe the bug** The reindl function should give zero sky diffuse when GHI is zero. Instead it generates NaN or Inf values due to "term3" having a quotient that divides by GHI. **Expected behavior** The reindl function should result in zero sky diff...
You are a software engineering agent inside a full git checkout of the repo. Resolve the GitHub issue by exploring and editing files with your tools (ls, glob, grep, read_file, write_file, edit_file, execute). Prefer minimal correct edits. Do not modify tests unless necessary. When finished, stop calling tools and repl...
["pvlib/irradiance.py"]
diff --git a/pvlib/irradiance.py b/pvlib/irradiance.py --- a/pvlib/irradiance.py +++ b/pvlib/irradiance.py @@ -886,8 +886,9 @@ def reindl(surface_tilt, surface_azimuth, dhi, dni, ghi, dni_extra, # these are the () and [] sub-terms of the second term of eqn 8 term1 = 1 - AI term2 = 0.5 * (1 + tools.cosd(s...
diff --git a/pvlib/tests/test_irradiance.py b/pvlib/tests/test_irradiance.py --- a/pvlib/tests/test_irradiance.py +++ b/pvlib/tests/test_irradiance.py @@ -203,7 +203,7 @@ def test_reindl(irrad_data, ephem_data, dni_et): 40, 180, irrad_data['dhi'], irrad_data['dni'], irrad_data['ghi'], dni_et, ephem_da...
["pvlib/tests/test_irradiance.py::test_reindl"]
["pvlib/tests/test_irradiance.py::test_get_extra_radiation[asce-300-1383.636203]", "pvlib/tests/test_irradiance.py::test_get_extra_radiation[asce-300.0-1383.636203]", "pvlib/tests/test_irradiance.py::test_get_extra_radiation[asce-testval2-1383.636203]", "pvlib/tests/test_irradiance.py::test_get_extra_radiation[asce-tes...
Verified. Looks like an easy fix. Verified. Looks like an easy fix.
0.8
swebench/sweb.eval.x86_64.pvlib_1776_pvlib-python-1154:latest
#!/bin/bash set -uxo pipefail source /opt/miniconda3/bin/activate conda activate testbed cd /testbed git config --global --add safe.directory /testbed cd /testbed git status git show git -c core.fileMode=false diff 0b8f24c265d76320067a5ee908a57d475cd1bb24 source /opt/miniconda3/bin/activate conda activate testbed pytho...
pass_and_fail
parse_log_pvlib
ef8ad2fee9840a77d14b0dfd17fc489dd85c9b91
SWE-bench/SWE-bench_Lite
pvlib__pvlib-python-1606
pvlib__pvlib-python-1606
dev
pvlib/pvlib-python
c78b50f4337ecbe536a961336ca91a1176efc0e8
golden-section search fails when upper and lower bounds are equal **Describe the bug** I was using pvlib for sometime now and until now I was always passing a big dataframe containing readings of a long period. Because of some changes in our software architecture, I need to pass the weather readings as a single readin...
You are a software engineering agent inside a full git checkout of the repo. Resolve the GitHub issue by exploring and editing files with your tools (ls, glob, grep, read_file, write_file, edit_file, execute). Prefer minimal correct edits. Do not modify tests unless necessary. When finished, stop calling tools and repl...
["pvlib/tools.py"]
diff --git a/pvlib/tools.py b/pvlib/tools.py --- a/pvlib/tools.py +++ b/pvlib/tools.py @@ -341,6 +341,8 @@ def _golden_sect_DataFrame(params, lower, upper, func, atol=1e-8): -------- pvlib.singlediode._pwr_optfcn """ + if np.any(upper - lower < 0.): + raise ValueError('upper >= lower is require...
diff --git a/pvlib/tests/test_tools.py b/pvlib/tests/test_tools.py --- a/pvlib/tests/test_tools.py +++ b/pvlib/tests/test_tools.py @@ -45,6 +45,22 @@ def test__golden_sect_DataFrame_vector(): v, x = tools._golden_sect_DataFrame(params, lower, upper, _obj_test_golden_sect) ...
["pvlib/tests/test_tools.py::test__golden_sect_DataFrame_vector"]
["pvlib/tests/test_tools.py::test_build_kwargs[keys0-input_dict0-expected0]", "pvlib/tests/test_tools.py::test_build_kwargs[keys1-input_dict1-expected1]", "pvlib/tests/test_tools.py::test_build_kwargs[keys2-input_dict2-expected2]", "pvlib/tests/test_tools.py::test_build_kwargs[keys3-input_dict3-expected3]", "pvlib/test...
Confirmed. This appears to be an oversight in `pvlib.tools._golden_section_DataFrame` involving error messaging, likely introduced with #1089 . In this code when processing the content of `data`, photocurrent is 0., hence the shunt resistance is infinite and v_oc is 0. That sets the range for the golden section sear...
0.8
swebench/sweb.eval.x86_64.pvlib_1776_pvlib-python-1606:latest
#!/bin/bash set -uxo pipefail source /opt/miniconda3/bin/activate conda activate testbed cd /testbed git config --global --add safe.directory /testbed cd /testbed git status git show git -c core.fileMode=false diff c78b50f4337ecbe536a961336ca91a1176efc0e8 source /opt/miniconda3/bin/activate conda activate testbed pytho...
pass_and_fail
parse_log_pvlib
ef8ad2fee9840a77d14b0dfd17fc489dd85c9b91
SWE-bench/SWE-bench_Lite
pvlib__pvlib-python-1707
pvlib__pvlib-python-1707
dev
pvlib/pvlib-python
40e9e978c170bdde4eeee1547729417665dbc34c
regression: iam.physical returns nan for aoi > 90° when n = 1 **Describe the bug** For pvlib==0.9.5, when n = 1 (no reflection) and aoi > 90°, we get nan as result. **To Reproduce** ```python import pvlib pvlib.iam.physical(aoi=100, n=1) ``` returns `nan`. **Expected behavior** The result should be `0`, as...
You are a software engineering agent inside a full git checkout of the repo. Resolve the GitHub issue by exploring and editing files with your tools (ls, glob, grep, read_file, write_file, edit_file, execute). Prefer minimal correct edits. Do not modify tests unless necessary. When finished, stop calling tools and repl...
["pvlib/iam.py"]
diff --git a/pvlib/iam.py b/pvlib/iam.py --- a/pvlib/iam.py +++ b/pvlib/iam.py @@ -175,8 +175,12 @@ def physical(aoi, n=1.526, K=4.0, L=0.002, *, n_ar=None): n2costheta2 = n2 * costheta # reflectance of s-, p-polarized, and normal light by the first interface - rho12_s = ((n1costheta1 - n2costheta2) / (n...
diff --git a/pvlib/tests/test_iam.py b/pvlib/tests/test_iam.py --- a/pvlib/tests/test_iam.py +++ b/pvlib/tests/test_iam.py @@ -51,6 +51,18 @@ def test_physical(): assert_series_equal(iam, expected) +def test_physical_n1_L0(): + aoi = np.array([0, 22.5, 45, 67.5, 90, 100, np.nan]) + expected = np.array([1...
["pvlib/tests/test_iam.py::test_physical_n1_L0"]
["pvlib/tests/test_iam.py::test_ashrae", "pvlib/tests/test_iam.py::test_ashrae_scalar", "pvlib/tests/test_iam.py::test_physical", "pvlib/tests/test_iam.py::test_physical_ar", "pvlib/tests/test_iam.py::test_physical_noar", "pvlib/tests/test_iam.py::test_physical_scalar", "pvlib/tests/test_iam.py::test_martin_ruiz", "pvl...
0.9
swebench/sweb.eval.x86_64.pvlib_1776_pvlib-python-1707:latest
#!/bin/bash set -uxo pipefail source /opt/miniconda3/bin/activate conda activate testbed cd /testbed git config --global --add safe.directory /testbed cd /testbed git status git show git -c core.fileMode=false diff 40e9e978c170bdde4eeee1547729417665dbc34c source /opt/miniconda3/bin/activate conda activate testbed pytho...
pass_and_fail
parse_log_pvlib
6072e0982c3c0236f532ddfa48fbf461180d834e
SWE-bench/SWE-bench_Lite
pvlib__pvlib-python-1854
pvlib__pvlib-python-1854
dev
pvlib/pvlib-python
27a3a07ebc84b11014d3753e4923902adf9a38c0
PVSystem with single Array generates an error **Is your feature request related to a problem? Please describe.** When a PVSystem has a single Array, you can't assign just the Array instance when constructing the PVSystem. ``` mount = pvlib.pvsystem.FixedMount(surface_tilt=35, surface_azimuth=180) array = pvlib....
You are a software engineering agent inside a full git checkout of the repo. Resolve the GitHub issue by exploring and editing files with your tools (ls, glob, grep, read_file, write_file, edit_file, execute). Prefer minimal correct edits. Do not modify tests unless necessary. When finished, stop calling tools and repl...
["pvlib/pvsystem.py"]
diff --git a/pvlib/pvsystem.py b/pvlib/pvsystem.py --- a/pvlib/pvsystem.py +++ b/pvlib/pvsystem.py @@ -101,10 +101,11 @@ class PVSystem: Parameters ---------- - arrays : iterable of Array, optional - List of arrays that are part of the system. If not specified - a single array is created fr...
diff --git a/pvlib/tests/test_pvsystem.py b/pvlib/tests/test_pvsystem.py --- a/pvlib/tests/test_pvsystem.py +++ b/pvlib/tests/test_pvsystem.py @@ -1887,8 +1887,6 @@ def test_PVSystem_multiple_array_creation(): assert pv_system.arrays[0].module_parameters == {} assert pv_system.arrays[1].module_parameters == {...
["pvlib/tests/test_pvsystem.py::test_PVSystem_single_array"]
["pvlib/tests/test_pvsystem.py::test_PVSystem_get_iam[ashrae-model_params0]", "pvlib/tests/test_pvsystem.py::test_PVSystem_get_iam[physical-model_params1]", "pvlib/tests/test_pvsystem.py::test_PVSystem_get_iam[martin_ruiz-model_params2]", "pvlib/tests/test_pvsystem.py::test_PVSystem_multi_array_get_iam", "pvlib/tests/t...
0.9
swebench/sweb.eval.x86_64.pvlib_1776_pvlib-python-1854:latest
#!/bin/bash set -uxo pipefail source /opt/miniconda3/bin/activate conda activate testbed cd /testbed git config --global --add safe.directory /testbed cd /testbed git status git show git -c core.fileMode=false diff 27a3a07ebc84b11014d3753e4923902adf9a38c0 source /opt/miniconda3/bin/activate conda activate testbed pytho...
pass_and_fail
parse_log_pvlib
6072e0982c3c0236f532ddfa48fbf461180d834e
SWE-bench/SWE-bench_Lite
pydicom__pydicom-1139
pydicom__pydicom-1139
dev
pydicom/pydicom
b9fb05c177b685bf683f7f57b2d57374eb7d882d
Make PersonName3 iterable ```python from pydicom import Dataset ds = Dataset() ds.PatientName = 'SomeName' 'S' in ds.PatientName ``` ``` Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: argument of type 'PersonName3' is not iterable ``` I'm not really sure if this is ...
You are a software engineering agent inside a full git checkout of the repo. Resolve the GitHub issue by exploring and editing files with your tools (ls, glob, grep, read_file, write_file, edit_file, execute). Prefer minimal correct edits. Do not modify tests unless necessary. When finished, stop calling tools and repl...
["pydicom/valuerep.py"]
diff --git a/pydicom/valuerep.py b/pydicom/valuerep.py --- a/pydicom/valuerep.py +++ b/pydicom/valuerep.py @@ -1,6 +1,5 @@ # Copyright 2008-2018 pydicom authors. See LICENSE file for details. """Special classes for DICOM value representations (VR)""" -from copy import deepcopy from decimal import Decimal import re ...
diff --git a/pydicom/tests/test_valuerep.py b/pydicom/tests/test_valuerep.py --- a/pydicom/tests/test_valuerep.py +++ b/pydicom/tests/test_valuerep.py @@ -427,6 +427,62 @@ def test_hash(self): ) assert hash(pn1) == hash(pn2) + def test_next(self): + """Test that the next function works on ...
["pydicom/tests/test_valuerep.py::TestPersonName::test_next", "pydicom/tests/test_valuerep.py::TestPersonName::test_iterator", "pydicom/tests/test_valuerep.py::TestPersonName::test_contains"]
["pydicom/tests/test_valuerep.py::TestTM::test_pickling", "pydicom/tests/test_valuerep.py::TestDT::test_pickling", "pydicom/tests/test_valuerep.py::TestDA::test_pickling", "pydicom/tests/test_valuerep.py::TestDS::test_empty_value", "pydicom/tests/test_valuerep.py::TestDS::test_float_values", "pydicom/tests/test_valuere...
I think it is reasonable to support at least some `str` methods (definitely `__contains__` for the example above), but there are many that don't make a lot of sense in this context though - e.g. `join`, `ljust`, `maketrans`, `splitlines` just to name a few, but I suppose each would either never be actually used or woul...
2.0
swebench/sweb.eval.x86_64.pydicom_1776_pydicom-1139:latest
#!/bin/bash set -uxo pipefail source /opt/miniconda3/bin/activate conda activate testbed cd /testbed git config --global --add safe.directory /testbed cd /testbed git status git show git -c core.fileMode=false diff b9fb05c177b685bf683f7f57b2d57374eb7d882d source /opt/miniconda3/bin/activate conda activate testbed pytho...
pass_and_fail
parse_log_pydicom
9d69811e539774f296c2f289839147e741251716
SWE-bench/SWE-bench_Lite
pydicom__pydicom-1256
pydicom__pydicom-1256
dev
pydicom/pydicom
49a3da4a3d9c24d7e8427a25048a1c7d5c4f7724
from_json does not correctly convert BulkDataURI's in SQ data elements **Describe the bug** When a DICOM object contains large data elements in SQ elements and is converted to JSON, those elements are correctly turned into BulkDataURI's. However, when the JSON is converted back to DICOM using from_json, the BulkDataUR...
You are a software engineering agent inside a full git checkout of the repo. Resolve the GitHub issue by exploring and editing files with your tools (ls, glob, grep, read_file, write_file, edit_file, execute). Prefer minimal correct edits. Do not modify tests unless necessary. When finished, stop calling tools and repl...
["pydicom/jsonrep.py"]
diff --git a/pydicom/jsonrep.py b/pydicom/jsonrep.py --- a/pydicom/jsonrep.py +++ b/pydicom/jsonrep.py @@ -226,7 +226,8 @@ def get_sequence_item(self, value): value_key = unique_value_keys[0] elem = DataElement.from_json( self.dataset_class, key, vr, - ...
diff --git a/pydicom/tests/test_json.py b/pydicom/tests/test_json.py --- a/pydicom/tests/test_json.py +++ b/pydicom/tests/test_json.py @@ -354,3 +354,25 @@ def bulk_data_reader(tag, vr, value): ds = Dataset().from_json(json.dumps(json_data), bulk_data_reader) assert b'xyzzy' == ds[0x00091002].value ...
["pydicom/tests/test_json.py::TestBinary::test_bulk_data_reader_is_called_within_SQ"]
["pydicom/tests/test_json.py::TestPersonName::test_json_pn_from_file", "pydicom/tests/test_json.py::TestPersonName::test_pn_components_to_json", "pydicom/tests/test_json.py::TestPersonName::test_pn_components_from_json", "pydicom/tests/test_json.py::TestPersonName::test_empty_value", "pydicom/tests/test_json.py::TestPe...
2.1
swebench/sweb.eval.x86_64.pydicom_1776_pydicom-1256:latest
#!/bin/bash set -uxo pipefail source /opt/miniconda3/bin/activate conda activate testbed cd /testbed git config --global --add safe.directory /testbed cd /testbed git status git show git -c core.fileMode=false diff 49a3da4a3d9c24d7e8427a25048a1c7d5c4f7724 source /opt/miniconda3/bin/activate conda activate testbed pytho...
pass_and_fail
parse_log_pydicom
506ecea8f378dc687d5c504788fc78810a190b7a
SWE-bench/SWE-bench_Lite
pydicom__pydicom-1413
pydicom__pydicom-1413
dev
pydicom/pydicom
f909c76e31f759246cec3708dadd173c5d6e84b1
Error : a bytes-like object is required, not 'MultiValue' Hello, I am getting following error while updating the tag LongTrianglePointIndexList (0066,0040), **TypeError: a bytes-like object is required, not 'MultiValue'** I noticed that the error gets produced only when the VR is given as "OL" , works fine with...
You are a software engineering agent inside a full git checkout of the repo. Resolve the GitHub issue by exploring and editing files with your tools (ls, glob, grep, read_file, write_file, edit_file, execute). Prefer minimal correct edits. Do not modify tests unless necessary. When finished, stop calling tools and repl...
["pydicom/dataelem.py"]
diff --git a/pydicom/dataelem.py b/pydicom/dataelem.py --- a/pydicom/dataelem.py +++ b/pydicom/dataelem.py @@ -433,13 +433,24 @@ def value(self) -> Any: @value.setter def value(self, val: Any) -> None: """Convert (if necessary) and set the value of the element.""" + # Ignore backslash characte...
diff --git a/pydicom/tests/test_valuerep.py b/pydicom/tests/test_valuerep.py --- a/pydicom/tests/test_valuerep.py +++ b/pydicom/tests/test_valuerep.py @@ -1546,3 +1546,16 @@ def test_set_value(vr, pytype, vm0, vmN, keyword): elem = ds[keyword] assert elem.value == list(vmN) assert list(vmN) == elem.value...
["pydicom/tests/test_valuerep.py::test_assigning_bytes[OD-bytes-vm017-vmN17-DoubleFloatPixelData]", "pydicom/tests/test_valuerep.py::test_assigning_bytes[OL-bytes-vm019-vmN19-TrackPointIndexList]", "pydicom/tests/test_valuerep.py::test_assigning_bytes[OV-bytes-vm020-vmN20-SelectorOVValue]"]
["pydicom/tests/test_valuerep.py::TestTM::test_pickling", "pydicom/tests/test_valuerep.py::TestTM::test_pickling_tm_from_time", "pydicom/tests/test_valuerep.py::TestTM::test_str_and_repr", "pydicom/tests/test_valuerep.py::TestTM::test_new_empty_str", "pydicom/tests/test_valuerep.py::TestTM::test_new_str_conversion", "p...
Also tried following code to get the byte string, but same error. 1. data=array.array('L', indexData).tostring() # to convert to long -> same error 2. data=array.array('Q', indexData).tostring() # to convert to long long -> same error O* VRs should be `bytes`. Use `array.tobytes()` instead of `tostring()`? A...
2.1
swebench/sweb.eval.x86_64.pydicom_1776_pydicom-1413:latest
#!/bin/bash set -uxo pipefail source /opt/miniconda3/bin/activate conda activate testbed cd /testbed git config --global --add safe.directory /testbed cd /testbed git status git show git -c core.fileMode=false diff f909c76e31f759246cec3708dadd173c5d6e84b1 source /opt/miniconda3/bin/activate conda activate testbed pytho...
pass_and_fail
parse_log_pydicom
506ecea8f378dc687d5c504788fc78810a190b7a
SWE-bench/SWE-bench_Lite
pydicom__pydicom-1694
pydicom__pydicom-1694
dev
pydicom/pydicom
f8cf45b6c121e5a4bf4a43f71aba3bc64af3db9c
Dataset.to_json_dict can still generate exceptions when suppress_invalid_tags=True **Describe the bug** I'm using `Dataset.to_json_dict(suppress_invalid_tags=True)` and can live with losing invalid tags. Unfortunately, I can still trigger an exception with something like `2.0` in an `IS` field. **Expected behavio...
You are a software engineering agent inside a full git checkout of the repo. Resolve the GitHub issue by exploring and editing files with your tools (ls, glob, grep, read_file, write_file, edit_file, execute). Prefer minimal correct edits. Do not modify tests unless necessary. When finished, stop calling tools and repl...
["pydicom/dataset.py"]
diff --git a/pydicom/dataset.py b/pydicom/dataset.py --- a/pydicom/dataset.py +++ b/pydicom/dataset.py @@ -2492,8 +2492,8 @@ def to_json_dict( json_dataset = {} for key in self.keys(): json_key = '{:08X}'.format(key) - data_element = self[key] try: + ...
diff --git a/pydicom/tests/test_json.py b/pydicom/tests/test_json.py --- a/pydicom/tests/test_json.py +++ b/pydicom/tests/test_json.py @@ -7,7 +7,7 @@ from pydicom import dcmread from pydicom.data import get_testdata_file -from pydicom.dataelem import DataElement +from pydicom.dataelem import DataElement, RawDataEl...
["pydicom/tests/test_json.py::TestDataSetToJson::test_suppress_invalid_tags_with_failed_dataelement"]
["pydicom/tests/test_json.py::TestPersonName::test_json_pn_from_file", "pydicom/tests/test_json.py::TestPersonName::test_pn_components_to_json", "pydicom/tests/test_json.py::TestPersonName::test_pn_components_from_json", "pydicom/tests/test_json.py::TestPersonName::test_empty_value", "pydicom/tests/test_json.py::TestPe...
2.3
swebench/sweb.eval.x86_64.pydicom_1776_pydicom-1694:latest
#!/bin/bash set -uxo pipefail source /opt/miniconda3/bin/activate conda activate testbed cd /testbed git config --global --add safe.directory /testbed cd /testbed git status git show git -c core.fileMode=false diff f8cf45b6c121e5a4bf4a43f71aba3bc64af3db9c source /opt/miniconda3/bin/activate conda activate testbed pytho...
pass_and_fail
parse_log_pydicom
a8be738418dee0a2b93c241fbd5e0bc82f4b8680
SWE-bench/SWE-bench_Lite
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
53