Skip to content

Commit 9ba634b

Browse files
committed
Add commit about addition config variables that are defined in __init__
1 parent fd7eb7d commit 9ba634b

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

stumpy/config.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@
2121
"STUMPY_FASTMATH_FLAGS": {"nsz", "arcp", "contract", "afn", "reassoc"},
2222
}
2323

24+
# In addition to these configuration variables, there exist config variables
25+
# that have the default value of the fastmath flag of the njit functions. The
26+
# name of this config variable has the following format:
27+
# STUMPY_FASTMATH_<module_name>.<function_name>
28+
# See __init__.py for more details
29+
2430
STUMPY_THREADS_PER_BLOCK = _STUMPY_DEFAULTS["STUMPY_THREADS_PER_BLOCK"]
2531
STUMPY_MEAN_STD_NUM_CHUNKS = _STUMPY_DEFAULTS["STUMPY_MEAN_STD_NUM_CHUNKS"]
2632
STUMPY_MEAN_STD_MAX_ITER = _STUMPY_DEFAULTS["STUMPY_MEAN_STD_MAX_ITER"]
@@ -59,7 +65,9 @@ def _reset(var=None):
5965
elif var in config_vars:
6066
globals()[var] = _STUMPY_DEFAULTS[var]
6167
else: # pragma: no cover
62-
msg = f"Configuration reset was skipped for unrecognized '_STUMPY_DEFAULT[{var}]'"
68+
msg = (
69+
f"Configuration reset was skipped for unrecognized '_STUMPY_DEFAULT[{var}]'"
70+
)
6371
warnings.warn(msg)
6472

6573
return

0 commit comments

Comments
 (0)