Skip to content

Commit 006ae00

Browse files
committed
update history file
1 parent a1f916b commit 006ae00

File tree

3 files changed

+5
-10
lines changed

3 files changed

+5
-10
lines changed

HISTORY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ E.g. in
2020
end
2121
```
2222
`S` is inferred as a species, `V1` and `V2` as variables, and `p` as a parameter. The previous special cases for the `@observables`, `@compounds`, and `@differentials` options still hold. Finally, the `@require_declaration` options (described in more detail below) can now be used to require everything to be explicitly declared.
23-
- New formula for determining whether the default differentials have been used within an `@equations` option. Right now, if any expression `D(...)` is encountered (where `...`) can be anything, this is inferred as usage of the default differential D. E.g. in the following equations `D` is inferred as a differential with respect to the default independent variable:
23+
- New formula for determining whether the default differentials have been used within an `@equations` option. Now, if any expression `D(...)` is encountered (where `...` can be anything), this is inferred as usage of the default differential D. E.g. in the following equations `D` is inferred as a differential with respect to the default independent variable:
2424
```julia
2525
@reaction_network begin
2626
@equations D(V) + V ~ 1

src/dsl.jl

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ struct UndeclaredSymbolicError <: Exception
290290
msg::String
291291
end
292292

293-
function Base.showerror(io::IO, err::UndeclaredSymbolicError)
293+
function Base.showerror(io::IO, err::UndeclaredSymbolicError)
294294
print(io, "UndeclaredSymbolicError: ")
295295
print(io, err.msg)
296296
end
@@ -328,11 +328,6 @@ function make_reaction_system(ex::Expr; name = :(gensym(:ReactionSystem)))
328328
parameters_declared = extract_syms(options, :parameters)
329329
variables_declared = extract_syms(options, :variables)
330330

331-
# Reads equations.
332-
vars_extracted, add_default_diff, equations = read_equations_options(
333-
options, variables_declared; requiredec)
334-
variables = vcat(variables_declared, vars_extracted)
335-
336331
# Handle independent variables
337332
if haskey(options, :ivs)
338333
ivs = Tuple(extract_syms(options, :ivs))

test/dsl/dsl_options.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -447,19 +447,19 @@ let
447447
#end
448448

449449
# Species + differential.
450-
@test_throws false Exception @eval @reaction_network begin
450+
@test_throws Exception @eval @reaction_network begin
451451
@species X(t)
452452
@differentials X = Differential(t)
453453
end
454454

455455
# Parameter + differential.
456-
@test_throws false Exception @eval @reaction_network begin
456+
@test_throws Exception @eval @reaction_network begin
457457
@parameters X
458458
@differentials X = Differential(t)
459459
end
460460

461461
# Variable + differential.
462-
@test_throws false Exception @eval @reaction_network begin
462+
@test_throws Exception @eval @reaction_network begin
463463
@variables X(t)
464464
@differentials X = Differential(t)
465465
end

0 commit comments

Comments
 (0)