Numass tasks fix
This commit is contained in:
parent
bb9a3c6fa8
commit
72b046abfe
@ -8,13 +8,20 @@ import inr.numass.data.analyzers.SmartAnalyzer
|
|||||||
import inr.numass.data.api.NumassSet
|
import inr.numass.data.api.NumassSet
|
||||||
import inr.numass.utils.NumassUtils
|
import inr.numass.utils.NumassUtils
|
||||||
|
|
||||||
val selectDataTask = task("data") {
|
val selectDataTask = task("select") {
|
||||||
|
model {
|
||||||
|
data("*")
|
||||||
|
configure(meta.getMetaOrEmpty("data"))
|
||||||
|
}
|
||||||
transform { data ->
|
transform { data ->
|
||||||
CustomDataFilter(meta).filter<NumassSet>(data.checked(NumassSet::class.java))
|
CustomDataFilter(meta).filter<NumassSet>(data.checked(NumassSet::class.java))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
val monitorTableTask = task("monitor") {
|
val monitorTableTask = task("monitor") {
|
||||||
|
model {
|
||||||
|
dependsOn("select", meta)
|
||||||
|
}
|
||||||
join<NumassSet, Table> {
|
join<NumassSet, Table> {
|
||||||
result { data ->
|
result { data ->
|
||||||
val monitorVoltage = meta.getDouble("monitorVoltage", 16000.0);
|
val monitorVoltage = meta.getDouble("monitorVoltage", 16000.0);
|
||||||
|
Loading…
Reference in New Issue
Block a user