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

User Warnings When running tests #94

Open
julian-belina opened this issue Oct 15, 2024 · 1 comment
Open

User Warnings When running tests #94

julian-belina opened this issue Oct 15, 2024 · 1 comment

Comments

@julian-belina
Copy link
Collaborator

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.

@julian-belina
Copy link
Collaborator Author

@l-kotzur, Are these warnings intentional?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant