Skip to content

Commit 8f818d6

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent e4957b3 commit 8f818d6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

spectrafit/models/builtin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -954,7 +954,7 @@ def model_check(self, model: str) -> None:
954954
NotImplementedError: If the model is not implemented.
955955
956956
"""
957-
model_prefix = model.split("_")[0]
957+
model_prefix = model.split("_", maxsplit=1)[0]
958958

959959
# Check in main models list
960960
if (

0 commit comments

Comments
 (0)