File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 ] = {
You can’t perform that action at this time.
0 commit comments