diff --git a/LadybugTools_Engine/Python/src/ladybugtools_toolkit/external_comfort/material.py b/LadybugTools_Engine/Python/src/ladybugtools_toolkit/external_comfort/material.py index 30fe35af..f4d00195 100644 --- a/LadybugTools_Engine/Python/src/ladybugtools_toolkit/external_comfort/material.py +++ b/LadybugTools_Engine/Python/src/ladybugtools_toolkit/external_comfort/material.py @@ -193,7 +193,7 @@ def get_identifier(material_identifier: str) -> str: material_identifier = re.sub(keep_characters, "_", material_identifier).replace("__", "_").rstrip() # prepend `Material_` to identifiers which start with a number - if re.match("^\d", material_identifier): + if re.match(r"^\d", material_identifier): material_identifier = f"Material_{material_identifier}" return material_identifier diff --git a/LadybugTools_Engine/Python/tests/test_wind.py b/LadybugTools_Engine/Python/tests/test_wind.py index 5c62e496..acb3a4e6 100644 --- a/LadybugTools_Engine/Python/tests/test_wind.py +++ b/LadybugTools_Engine/Python/tests/test_wind.py @@ -181,7 +181,8 @@ def test_bin_data(): def test_prevailing(): """_""" - assert TEST_WIND.prevailing()[0] == (355.0, 5.0) + assert TEST_WIND.prevailing(ignore_calm=False)[0] == (355.0, 5.0) + assert TEST_WIND.prevailing()[0] == (205.0, 215.0) def test_probabilities():