Fixed numass k-task
This commit is contained in:
parent
6da107c49a
commit
6b4dbfd23f
@ -181,8 +181,8 @@ fun addSetMarkers(frame: JFreeChartFrame, sets: Collection<NumassSet>) {
|
||||
sets.stream().forEach {
|
||||
val start = it.startTime;
|
||||
val stop = it.meta.optValue("end_time").map { it.timeValue() }
|
||||
.orElse(start.plusSeconds(3600))
|
||||
.minusSeconds(30)
|
||||
.orElse(start.plusSeconds(300))
|
||||
.minusSeconds(60)
|
||||
val marker = IntervalMarker(start.toEpochMilli().toDouble(), stop.toEpochMilli().toDouble(), paint)
|
||||
marker.label = it.name
|
||||
marker.labelFont = Font("Verdana", Font.BOLD, 20);
|
||||
|
@ -17,7 +17,7 @@ import inr.numass.data.analyzers.SmartAnalyzer
|
||||
import inr.numass.data.api.NumassSet
|
||||
|
||||
val selectDataTask = task("select") {
|
||||
model {
|
||||
model { meta ->
|
||||
data("*")
|
||||
configure(meta.getMetaOrEmpty("data"))
|
||||
}
|
||||
@ -27,9 +27,9 @@ val selectDataTask = task("select") {
|
||||
}
|
||||
|
||||
val monitorTableTask = task("monitor") {
|
||||
model {
|
||||
configure(meta.getMetaOrEmpty("analyzer"))
|
||||
model { meta ->
|
||||
dependsOn("select", meta)
|
||||
configure(meta.getMetaOrEmpty("analyzer"))
|
||||
}
|
||||
join<NumassSet, Table> {
|
||||
result { data ->
|
||||
|
Loading…
Reference in New Issue
Block a user