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

invalid escape sequence '\(' #90

Open
julian-belina opened this issue Sep 18, 2024 · 0 comments
Open

invalid escape sequence '\(' #90

julian-belina opened this issue Sep 18, 2024 · 0 comments

Comments

@julian-belina
Copy link
Collaborator

julian-belina commented Sep 18, 2024

When running the test of tsam I get the following warnings associated with escape sequences:

test\test_assert_raises.py:21: 10 warnings
C:\Programming\tsam\test\test_assert_raises.py:21: SyntaxWarning: invalid escape sequence '('
"timeSeries has to be of type pandas.DataFrame() or of type np.array() in "

test\test_assert_raises.py:129: 10 warnings
C:\Programming\tsam\test\test_assert_raises.py:129: SyntaxWarning: invalid escape sequence '['
"clusterMethod needs to be one of the following: ['averaging', 'k_means', "

test\test_assert_raises.py:130: 10 warnings
C:\Programming\tsam\test\test_assert_raises.py:130: SyntaxWarning: invalid escape sequence ']'
"'k_medoids', 'k_maxoids', 'hierarchical', 'adjacent_periods']",

test\test_assert_raises.py:147: 10 warnings
C:\Programming\tsam\test\test_assert_raises.py:147: SyntaxWarning: invalid escape sequence '['
"extremePeriodMethod needs to be one of the following: ['None', 'append', "

test\test_assert_raises.py:148: 10 warnings
C:\Programming\tsam\test\test_assert_raises.py:148: SyntaxWarning: invalid escape sequence ']'
"'new_cluster_center', 'replace_cluster_center']",

It occurs on python 3.9 with numpy 2.0.2 but not on python 3.12

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