Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pvlib/pvlib-python in dev set failed for Gold Patch #274

Open
thaiminhpv opened this issue Dec 16, 2024 · 1 comment
Open

pvlib/pvlib-python in dev set failed for Gold Patch #274

thaiminhpv opened this issue Dec 16, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@thaiminhpv
Copy link
Contributor

Describe the bug

pvlib/pvlib-python in dev set isn't working

Steps/Code to Reproduce

python -m swebench.harness.run_evaluation \
    --predictions_path gold \
    --max_workers 1 \
    --instance_ids pvlib__pvlib-python-1707 pvlib__pvlib-python-1072 pvlib__pvlib-python-1606 pvlib__pvlib-python-1854 pvlib__pvlib-python-1154 \
    --run_id validate-gold \
    --split dev

Expected Results

It should pass all

Actual Results

None of them pass.

All the logs ends up with this error:

+ git apply -v -
Checking patch pvlib/tests/test_iam.py...
Applied patch pvlib/tests/test_iam.py cleanly.
+ pytest -rA pvlib/tests/test_iam.py
ImportError while loading conftest '/testbed/pvlib/tests/conftest.py'.
pvlib/__init__.py:3: in <module>
    from pvlib import (  # noqa: F401
pvlib/ivtools/__init__.py:7: in <module>
    from pvlib.ivtools import sde, sdm, utils  # noqa: F401
pvlib/ivtools/sdm.py:15: in <module>
    from pvlib.pvsystem import calcparams_pvsyst, singlediode, v_from_i
pvlib/pvsystem.py:21: in <module>
    from pvlib import (atmosphere, iam, inverter, irradiance,
pvlib/singlediode.py:59: in <module>
    NsVbi=np.Inf, breakdown_factor=0., breakdown_voltage=-5.5,
/opt/miniconda3/envs/testbed/lib/python3.9/site-packages/numpy/__init__.py:397: in __getattr__
    raise AttributeError(
E   AttributeError: `np.Inf` was removed in the NumPy 2.0 release. Use `np.inf` instead.
+ git checkout 40e9e978c170bdde4eeee1547729417665dbc34c pvlib/tests/test_iam.py
Updated 1 path from e6a4d8e

System Information

> pip list | grep swebench
swebench                          2.1.7
@thaiminhpv thaiminhpv added the bug Something isn't working label Dec 16, 2024
@thaiminhpv thaiminhpv changed the title pvlib/pvlib-python failed for Gold Patch pvlib/pvlib-python in dev set failed for Gold Patch Dec 16, 2024
@Ryker-shi
Copy link

same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants