Skip to content

Pandas 3.0 errors #587

Description

@cdeline

Tests are failing with new Pandas 3.0 release. Until these can be addressed, set Pandas < 3.0 in pyproject.toml.

FAILED tests/test_bifacial_radiance.py::test_Radiance_high_azimuth_modelchains - TypeError: Invalid value '0' for dtype 'str'. Value should be a string or missing value, got 'int' instead.
FAILED tests/test_bifacial_radiance.py::test_Radiance_1axis_gendaylit_modelchains - TypeError: Invalid value '0' for dtype 'str'. Value should be a string or missing value, got 'int' instead.
FAILED tests/test_bifacial_radiance.py::test_1axis_gencumSky - TypeError: Invalid value '0' for dtype 'str'. Value should be a string or missing value, got 'int' instead.
FAILED tests/test_bifacial_radiance.py::test_readWeatherFile_extra - TypeError: Invalid value '0' for dtype 'str'. Value should be a string or missing value, got 'int' instead.
FAILED tests/test_bifacial_radiance.py::test_readWeatherFile_subhourly - TypeError: to_datetime() got an unexpected keyword argument 'infer_datetime_format'
FAILED tests/test_bifacial_radiance.py::test_nsrdb_readWeatherFile - ValueError: Invalid frequency: Y. Failed to parse with error message: ValueError("'Y' is no longer supported for of...
FAILED tests/test_bifacial_radiance.py::test_customObj - TypeError: Invalid value '0' for dtype 'str'. Value should be a string or missing value, got 'int' instead.
FAILED tests/test_bifacial_radiance.py::test_GH256_nomodule_error - TypeError: Invalid value '0' for dtype 'str'. Value should be a string or missing value, got 'int' instead.
FAILED tests/test_gencumsky.py::test_SingleModule_gencumsky_modelchain - TypeError: Invalid value '0' for dtype 'str'. Value should be a string or missing value, got 'int' instead.
FAILED tests/test_spectra.py::test_generate_spectra - TypeError: Invalid value '0' for dtype 'str'. Value should be a string or missing value, got 'int' instead.
FAILED tests/test_spectra.py::test_scale_spectra - TypeError: Invalid value '0' for dtype 'str'. Value should be a string or missing value, got 'int' instead.
FAILED tests/test_spectra.py::test_nonspectral_albedo - TypeError: Invalid value '0' for dtype 'str'. Value should be a string or missing value, got 'int' instead.
FAILED tests/test_spectra.py::test_integrated_spectrum - TypeError: Invalid value '0' for dtype 'str'. Value should be a string or missing value, got 'int' instead.
====================================== 13 failed, 50 passed in 120.22s (0:02:00) ======================================

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions