Skip to content

User Warnings When running tests #94

@julian-belina

Description

@julian-belina

Two of the tests give the following warnings:

test/test_properties.py::test_properties
C:\Programming\tsam\src\tsam\timeseriesaggregation.py:1217: UserWarning: Segmentation is turned off. All segments are consistent the time steps.
warnings.warn(

test/test_durationRepresentation.py::test_distributionMinMaxRepresentation
test/test_durationRepresentation.py::test_distributionMinMaxRepresentation
C:\Programming\tsam\src\tsam\utils\durationRepresentation.py:203: UserWarning: The cluster is too small to preserve the sum of the duration curve and additionally the min and max values of the original cluster members. The min max values of the cluster are not preserved. This does not necessarily mean that the min and max values of the original time series are not preserved.
warnings.warn(

Is this intended behaviour? If these warnings are being thrown correctly, I suggest that they be silenced for these tests.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions