numass/notebooks/jupyter-demo.ipynb
Alexander Nozik ef670f8418
Refactor visualization
Replace usage of Stream:toList because of glitches in scripting
2022-11-21 16:36:24 +03:00

2.3 KiB

In [ ]:
@file:Repository("https://repo.kotlin.link")
@file:Repository("*mavenLocal")
@file:DependsOn("ru.inr.mass:numass-workspace:0.1.3")
In [ ]:
val repo: DataTree<NumassDirectorySet> = Numass.readRepository("D:\\Work\\Numass\\data\\test")
repo
In [ ]:
val numassSet = repo["set_7"]!!
Plotly.plotNumassSet(numassSet, amplitudeBinSize = 8U, eventExtractor = NumassEventExtractor.TQDC)
In [ ]:
//numassSet.meta
In [ ]:
val point = numassSet.points.first { it.voltage == 14200.0}
In [ ]:
point
In [ ]:
Plotly.plotNumassBlock(point, amplitudeBinSize = 8U, eventExtractor = NumassEventExtractor.TQDC)
In [ ]: