Closed juguma closed 9 months ago
The issue reported in this ticket was resolved in https://github.com/ThummeTo/FMIFlux.jl/pull/114/ and can be closed.
I wonder whether in batchDataEvaluation
one should rethink whether index i-1
is valid for plotting https://github.com/ThummeTo/FMIFlux.jl/blob/177045b408fdeac2769778cc02c3fc3df21f364d/src/batch.jl#L526C34-L526C34 (since the i-range starts from 2 and there might be a reason behind that).
In src/batch.jl in function
batchDataSolution
it is written:instead it should be
If you call
batchDataSolution
with option plot=true, you immediately get an error, because there is nobatch[0]
. Furthermore, I don't see any reason why you want to plot any other batch than the one you just simulated.Below is a reduced variant of the juliacon_2023.ipynb, I know it is not minimal, but the error is obvious, any more reduction of the script to generate the error is not worth the effort.