File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
NetworkDynamicsInspector/src Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -323,10 +323,10 @@ To automaticially create commands see [`dump_app_state()`](@ref).
323323function set_timeseries! (key; selcomp = NotSpecified (),
324324 states = NotSpecified (),
325325 rel = NotSpecified ())
326- if ! haskey (appstate (). tsplots, key)
327- appstate (). tsplots[key] = TimeseriesPlot ()
326+ if ! haskey (appstate (). tsplots[] , key)
327+ appstate (). tsplots[][ key] = TimeseriesPlot ()
328328 end
329- tsplot = appstate (). tsplots[key]
329+ tsplot = appstate (). tsplots[][ key]
330330 set_maybe! (tsplot. selcomp, selcomp)
331331 set_maybe! (tsplot. states, states)
332332 set_maybe! (tsplot. rel, rel)
@@ -349,8 +349,8 @@ function define_timeseries!(tsarray)
349349 else
350350 tskeys = keys (appstate (). tsplots[])
351351 end
352- for (key, ts ) in zip (tskeys, tsarray)
353- set_timeseries! (key; pop! ( tsargs) ... )
352+ for (key, tsargs ) in zip (tskeys, tsarray)
353+ set_timeseries! (key; tsargs... )
354354 end
355355 nothing
356356end
You can’t perform that action at this time.
0 commit comments