Skip to content

Commit 8cedcb6

Browse files
committed
fix type on convert parameters
1 parent b2cb103 commit 8cedcb6

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "ProcessBasedModelling"
22
uuid = "ca969041-2cf3-4b10-bc21-86f4417093eb"
33
authors = ["Datseris <[email protected]>"]
4-
version = "1.0.2"
4+
version = "1.0.3"
55

66
[deps]
77
ModelingToolkit = "961ee093-0014-501f-94e3-6117800e7a78"

src/utils.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,8 @@ and default value the same as the value of `vars`. The macro leaves unaltered
135135
inputs that are of type `Num`, assumming they are already parameters.
136136
It also replaces [`LiteralParameter`](@ref) inputs with its literal values.
137137
This macro is extremely useful to convert e.g., keyword arguments into named parameters,
138-
while also allowing the user to give custom parameter names.
138+
while also allowing the user to give custom parameter names,
139+
or to leave some keywords as numeric literals.
139140
140141
Example:
141142
@@ -159,6 +160,7 @@ julia> default_value(A)
159160
160161
julia> C # the binding `C` still corresponds to parameter named `:X`!
161162
X
163+
```
162164
"""
163165
macro convert_to_parameters(vars...)
164166
expr = Expr(:block)

0 commit comments

Comments
 (0)