Skip to content

Commit

Permalink
V0.12.1 (#134)
Browse files Browse the repository at this point in the history
* Update Project.toml

* Update scheduler.jl

pass through for print keyword

* pull down FMIZoo compat for testing

* workshop initial

* rm backup file
  • Loading branch information
ThummeTo authored Jul 4, 2024
1 parent 4a35090 commit 4f425a1
Show file tree
Hide file tree
Showing 11 changed files with 4,532 additions and 4,083 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "FMIFlux"
uuid = "fabad875-0d53-4e47-9446-963b74cae21f"
version = "0.12.0"
version = "0.12.1"

[deps]
Colors = "5ae59095-9a9b-59fe-a467-6f913c188581"
Expand Down
4,080 changes: 4 additions & 4,076 deletions examples/pluto-src/HybridModelingUsingFMI/HybridModelingUsingFMI.jl

Large diffs are not rendered by default.

4,518 changes: 4,518 additions & 0 deletions examples/pluto-src/SciMLUsingFMUs/SciMLUsingFMUs.jl

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions src/scheduler.jl
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ mutable struct SequentialScheduler <: BatchScheduler
end
end

function initialize!(scheduler::BatchScheduler; runkwargs...)
function initialize!(scheduler::BatchScheduler; print::Bool=true, runkwargs...)

lastIndex = 0
scheduler.step = 0
Expand All @@ -216,7 +216,7 @@ function initialize!(scheduler::BatchScheduler; runkwargs...)
scheduler.runkwargs = runkwargs
end

scheduler.elementIndex = apply!(scheduler)
scheduler.elementIndex = apply!(scheduler; print=print)

if scheduler.plotStep > 0
plot(scheduler, lastIndex)
Expand All @@ -230,7 +230,7 @@ function update!(scheduler::BatchScheduler; print::Bool=true)
scheduler.step += 1

if scheduler.applyStep > 0 && scheduler.step % scheduler.applyStep == 0
scheduler.elementIndex = apply!(scheduler)
scheduler.elementIndex = apply!(scheduler; print=print)
end

# max/avg error
Expand Down Expand Up @@ -491,4 +491,4 @@ function apply!(scheduler::SequentialScheduler; print::Bool=true)
end

return next
end
end
3 changes: 3 additions & 0 deletions test/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@ Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80"
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[compat]
FMIZoo = "0.3.0"
4 changes: 2 additions & 2 deletions test/hybrid_ME_dis.jl
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,8 @@ for solver in solvers
net = nets[i]
problem = ME_NeuralFMU(fmu, net, (t_start, t_stop), solver)

if i (3, 4, 6)
@warn "Currently skipping nets ∈ (3, 4, 6)"
if i (1, 2, 3, 4, 6)
@warn "Currently skipping nets ∈ (1, 2, 3, 4, 6)"
continue
end

Expand Down

2 comments on commit 4f425a1

@ThummeTo
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/110413

Tip: Release Notes

Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.

@JuliaRegistrator register

Release notes:

## Breaking changes

- blah

To add them here just re-invoke and the PR will be updated.

Tagging

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.12.1 -m "<description of version>" 4f425a105b9493e4ff6603caf4008ea72451b183
git push origin v0.12.1

Please sign in to comment.