Skip to content

Commit 19e072b

Browse files
committed
fix set/define_timeseries
1 parent a3c4528 commit 19e072b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

NetworkDynamicsInspector/src/NetworkDynamicsInspector.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -323,10 +323,10 @@ To automaticially create commands see [`dump_app_state()`](@ref).
323323
function 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
356356
end

0 commit comments

Comments
 (0)