Plots to kotlin. Multiple fixes to control.

This commit is contained in:
Alexander Nozik 2018-04-01 21:59:58 +03:00
parent 4e19f1e0ed
commit d708afa5de

View File

@ -88,7 +88,7 @@ class MspDisplay() : DeviceDisplay<MspDevice>(), DeviceListener, NamedValueListe
configure(plotFrameMeta) configure(plotFrameMeta)
} }
} }
val plottables = PlotGroup().apply { val plottables = PlotGroup("peakJump").apply {
if (plotFrameMeta.hasMeta("peakJump.peak")) { if (plotFrameMeta.hasMeta("peakJump.peak")) {
for (peakMeta in plotFrameMeta.getMetaList("peakJump.peak")) { for (peakMeta in plotFrameMeta.getMetaList("peakJump.peak")) {
val mass = peakMeta.getString("mass") val mass = peakMeta.getString("mass")