File tree Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -64,6 +64,7 @@ HomotopyContinuation = "f213a82b-91d6-5c5d-acf7-10f1c761b327"
64
64
LinearAlgebra = " 37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
65
65
NonlinearSolve = " 8913a72c-1f9b-4ce2-8d82-65094dcecaec"
66
66
OrdinaryDiffEq = " 1dea7af3-3e70-54e6-95c3-0bf5283fa5ed"
67
+ Plots = " 91a5bcdd-55d7-5caf-9e0b-520d859cae80"
67
68
Random = " 9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
68
69
SafeTestsets = " 1bc83da4-3b8d-516f-aca4-4fe02f6d838f"
69
70
SciMLBase = " 0bca4576-84f4-4d90-8ffe-ffa030f20462"
Original file line number Diff line number Diff line change @@ -699,6 +699,7 @@ function read_observed_options(options)
699
699
for obs_eq in observed_eqs. args
700
700
(obs_eq. args[1 ] != :~ ) && error (" Malformed observable formula :\" $(obs_eq) \" . Formula should contain two expressions separated by a '~'." )
701
701
(obs_eq. args[2 ] isa Symbol) || error (" Malformed observable formula :\" $(obs_eq) \" . Left hand side should be a single symbol." )
702
+ in (obs_eq. args[2 ], forbidden_symbols_error) && error (" A forbidden symbol ($(obs_eq. args[2 ]) ) was used as an observable name." )
702
703
push! (observed_vars. args, obs_eq. args[2 ])
703
704
end
704
705
else
Original file line number Diff line number Diff line change 447
447
end
448
448
(p,d), 0 <--> X1 + X2
449
449
end
450
+
451
+ # A forbidden symbol used as observable name.
452
+ @test_throws Exception @eval @reaction_network begin
453
+ @observables begin
454
+ t ~ X1 + X2
455
+ end
456
+ (p,d), 0 <--> X1 + X2
457
+ end
450
458
end
You can’t perform that action at this time.
0 commit comments