Skip to content

Commit 9be5b28

Browse files
committed
fixup
1 parent 08cd4d9 commit 9be5b28

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/sdist/amici/sbml_import.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1990,7 +1990,7 @@ def _process_observables(
19901990
name
19911991
for sigma in sigmas.values()
19921992
for symbol in sp.sympify(sigma).free_symbols
1993-
if (name := str(symbol)).startswith("noiseParameter")
1993+
if re.match(r"noiseParameter\d+$", (name := str(symbol)))
19941994
}
19951995
)
19961996
self.symbols[SymbolId.NOISE_PARAMETER] = {
@@ -2005,7 +2005,7 @@ def _process_observables(
20052005
name
20062006
for obs in observables.values()
20072007
for symbol in sp.sympify(obs["formula"]).free_symbols
2008-
if (name := str(symbol)).startswith("observableParameter")
2008+
if re.match(r"observableParameter\d+", (name := str(symbol)))
20092009
}
20102010
)
20112011
self.symbols[SymbolId.OBSERVABLE_PARAMETER] = {

0 commit comments

Comments
 (0)