Messaging cleanup
This commit is contained in:
parent
b54783aa4b
commit
a4a3255aec
@ -90,7 +90,7 @@ object TimeAnalyzerAction : OneToOneAction<NumassPoint, Table>() {
|
||||
|
||||
if (inputMeta.getBoolean("plotStat", true)) {
|
||||
|
||||
val statPlot = DataPlot(name).configure {
|
||||
val statPlot = DataPlot(name, adapter = Adapters.DEFAULT_XYERR_ADAPTER).configure {
|
||||
"showLine" to true
|
||||
"thickness" to 4
|
||||
"title" to "${name}_${input.voltage}"
|
||||
|
@ -14,6 +14,8 @@ import inr.numass.data.analyzers.TimeAnalyzer
|
||||
import inr.numass.data.api.SimpleNumassPoint
|
||||
import inr.numass.data.generateBlock
|
||||
import inr.numass.data.withDeadTime
|
||||
import org.apache.commons.math3.random.JDKRandomGenerator
|
||||
import org.apache.commons.math3.random.SynchronizedRandomGenerator
|
||||
import java.time.Instant
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
@ -28,10 +30,12 @@ fun main(args: Array<String>) {
|
||||
|
||||
val start = Instant.now()
|
||||
|
||||
val generator = SynchronizedRandomGenerator(JDKRandomGenerator(2223))
|
||||
|
||||
val point = (1..num).map {
|
||||
Global.generate {
|
||||
NumassGenerator
|
||||
.generateEvents(cr * (1.0 - 0.005 * it))
|
||||
.generateEvents(cr * (1.0 - 0.005 * it), rnd = generator)
|
||||
.withDeadTime { (dt * 1000).toLong() }
|
||||
.generateBlock(start.plusNanos(it * length), length)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user