Skip to content

Commit

Permalink
fix type on convert parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
Datseris committed Mar 13, 2024
1 parent b2cb103 commit 8cedcb6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "ProcessBasedModelling"
uuid = "ca969041-2cf3-4b10-bc21-86f4417093eb"
authors = ["Datseris <datseris.george@gmail.com>"]
version = "1.0.2"
version = "1.0.3"

[deps]
ModelingToolkit = "961ee093-0014-501f-94e3-6117800e7a78"
Expand Down
4 changes: 3 additions & 1 deletion src/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,8 @@ and default value the same as the value of `vars`. The macro leaves unaltered
inputs that are of type `Num`, assumming they are already parameters.
It also replaces [`LiteralParameter`](@ref) inputs with its literal values.
This macro is extremely useful to convert e.g., keyword arguments into named parameters,
while also allowing the user to give custom parameter names.
while also allowing the user to give custom parameter names,
or to leave some keywords as numeric literals.
Example:
Expand All @@ -159,6 +160,7 @@ julia> default_value(A)
julia> C # the binding `C` still corresponds to parameter named `:X`!
X
```
"""
macro convert_to_parameters(vars...)
expr = Expr(:block)
Expand Down

0 comments on commit 8cedcb6

Please sign in to comment.