Plots structure update
This commit is contained in:
parent
ad73dc8fe6
commit
7ba31edb13
@ -10,8 +10,6 @@ import hep.dataforge.meta.Meta
|
|||||||
import hep.dataforge.plots.PlotUtils
|
import hep.dataforge.plots.PlotUtils
|
||||||
import hep.dataforge.plots.data.TimePlot
|
import hep.dataforge.plots.data.TimePlot
|
||||||
import hep.dataforge.plots.data.TimePlottableGroup
|
import hep.dataforge.plots.data.TimePlottableGroup
|
||||||
import hep.dataforge.plots.fx.FXPlotFrame
|
|
||||||
import hep.dataforge.plots.fx.PlotContainer
|
|
||||||
import hep.dataforge.plots.jfreechart.JFreeChartFrame
|
import hep.dataforge.plots.jfreechart.JFreeChartFrame
|
||||||
import inr.numass.control.DeviceViewConnection
|
import inr.numass.control.DeviceViewConnection
|
||||||
import javafx.application.Platform
|
import javafx.application.Platform
|
||||||
|
@ -26,8 +26,6 @@ import hep.dataforge.meta.MetaBuilder
|
|||||||
import hep.dataforge.plots.PlotUtils
|
import hep.dataforge.plots.PlotUtils
|
||||||
import hep.dataforge.plots.data.TimePlot
|
import hep.dataforge.plots.data.TimePlot
|
||||||
import hep.dataforge.plots.data.TimePlottableGroup
|
import hep.dataforge.plots.data.TimePlottableGroup
|
||||||
import hep.dataforge.plots.fx.FXPlotFrame
|
|
||||||
import hep.dataforge.plots.fx.PlotContainer
|
|
||||||
import hep.dataforge.plots.jfreechart.JFreeChartFrame
|
import hep.dataforge.plots.jfreechart.JFreeChartFrame
|
||||||
import hep.dataforge.values.Value
|
import hep.dataforge.values.Value
|
||||||
import inr.numass.control.DeviceViewConnection
|
import inr.numass.control.DeviceViewConnection
|
||||||
|
@ -3,7 +3,6 @@ package inr.numass.control
|
|||||||
import hep.dataforge.kodex.KMetaBuilder
|
import hep.dataforge.kodex.KMetaBuilder
|
||||||
import hep.dataforge.plots.Plot
|
import hep.dataforge.plots.Plot
|
||||||
import hep.dataforge.plots.PlotFrame
|
import hep.dataforge.plots.PlotFrame
|
||||||
import hep.dataforge.plots.fx.PlotContainer
|
|
||||||
import hep.dataforge.plots.jfreechart.JFreeChartFrame
|
import hep.dataforge.plots.jfreechart.JFreeChartFrame
|
||||||
import hep.dataforge.values.Value
|
import hep.dataforge.values.Value
|
||||||
import javafx.beans.value.ObservableValue
|
import javafx.beans.value.ObservableValue
|
||||||
|
@ -4,7 +4,6 @@ import hep.dataforge.context.Context
|
|||||||
import hep.dataforge.context.Global
|
import hep.dataforge.context.Global
|
||||||
import hep.dataforge.grind.GrindShell
|
import hep.dataforge.grind.GrindShell
|
||||||
import hep.dataforge.grind.helpers.PlotHelper
|
import hep.dataforge.grind.helpers.PlotHelper
|
||||||
import hep.dataforge.plots.fx.FXPlotManager
|
|
||||||
import hep.dataforge.stat.fit.ParamSet
|
import hep.dataforge.stat.fit.ParamSet
|
||||||
import inr.numass.NumassPlugin
|
import inr.numass.NumassPlugin
|
||||||
import inr.numass.models.sterile.NumassResolution
|
import inr.numass.models.sterile.NumassResolution
|
||||||
|
@ -90,7 +90,7 @@ SpectrumInformation sign = new SpectrumInformation(spectrum);
|
|||||||
// cov = sign.getExpetedCovariance(allPars, config,"U2","E0","N","X");
|
// cov = sign.getExpetedCovariance(allPars, config,"U2","E0","N","X");
|
||||||
//
|
//
|
||||||
// printNamedMatrix(out, cov);
|
// printNamedMatrix(out, cov);
|
||||||
//PlotManager pm = new PlotManager();
|
//PlotPlugin pm = new PlotPlugin();
|
||||||
|
|
||||||
Map<String, UnivariateFunction> functions = new HashMap<>();
|
Map<String, UnivariateFunction> functions = new HashMap<>();
|
||||||
|
|
||||||
|
@ -66,7 +66,7 @@ allPars.setParValue("trap", 1d);
|
|||||||
allPars.setParError("trap", 0.01d);
|
allPars.setParError("trap", 0.01d);
|
||||||
allPars.setParDomain("trap", 0d, Double.POSITIVE_INFINITY);
|
allPars.setParDomain("trap", 0d, Double.POSITIVE_INFINITY);
|
||||||
|
|
||||||
// PlotManager pm = new PlotManager();
|
// PlotPlugin pm = new PlotPlugin();
|
||||||
// String plotTitle = "Tritium spectrum";
|
// String plotTitle = "Tritium spectrum";
|
||||||
// pm.plotFunction(ParametricUtils.getSpectrumFunction(spectrum, allPars), 14000, 18600, 500,plotTitle, null);
|
// pm.plotFunction(ParametricUtils.getSpectrumFunction(spectrum, allPars), 14000, 18600, 500,plotTitle, null);
|
||||||
// PrintNamed.printSpectrum(Out.onComplete, beta.trapping, allPars, 14000d, 18600d, 500);
|
// PrintNamed.printSpectrum(Out.onComplete, beta.trapping, allPars, 14000d, 18600d, 500);
|
||||||
|
@ -5,7 +5,6 @@ import hep.dataforge.context.Global
|
|||||||
import hep.dataforge.grind.Grind
|
import hep.dataforge.grind.Grind
|
||||||
import hep.dataforge.grind.GrindShell
|
import hep.dataforge.grind.GrindShell
|
||||||
import hep.dataforge.grind.helpers.PlotHelper
|
import hep.dataforge.grind.helpers.PlotHelper
|
||||||
import hep.dataforge.plots.fx.FXPlotManager
|
|
||||||
import hep.dataforge.stat.fit.ParamSet
|
import hep.dataforge.stat.fit.ParamSet
|
||||||
import hep.dataforge.utils.MetaMorph
|
import hep.dataforge.utils.MetaMorph
|
||||||
import hep.dataforge.values.Values
|
import hep.dataforge.values.Values
|
||||||
|
@ -6,7 +6,6 @@ import hep.dataforge.grind.GrindShell
|
|||||||
import hep.dataforge.io.ColumnedDataWriter
|
import hep.dataforge.io.ColumnedDataWriter
|
||||||
import hep.dataforge.maths.histogram.SimpleHistogram
|
import hep.dataforge.maths.histogram.SimpleHistogram
|
||||||
import hep.dataforge.meta.Meta
|
import hep.dataforge.meta.Meta
|
||||||
import hep.dataforge.plots.fx.FXPlotManager
|
|
||||||
import inr.numass.NumassPlugin
|
import inr.numass.NumassPlugin
|
||||||
import inr.numass.data.analyzers.TimeAnalyzer
|
import inr.numass.data.analyzers.TimeAnalyzer
|
||||||
import inr.numass.data.api.NumassSet
|
import inr.numass.data.api.NumassSet
|
||||||
|
@ -5,7 +5,6 @@ import hep.dataforge.context.Global
|
|||||||
import hep.dataforge.grind.Grind
|
import hep.dataforge.grind.Grind
|
||||||
import hep.dataforge.grind.GrindShell
|
import hep.dataforge.grind.GrindShell
|
||||||
import hep.dataforge.grind.helpers.PlotHelper
|
import hep.dataforge.grind.helpers.PlotHelper
|
||||||
import hep.dataforge.plots.fx.FXPlotManager
|
|
||||||
import inr.numass.NumassPlugin
|
import inr.numass.NumassPlugin
|
||||||
import inr.numass.data.PointAnalyzer
|
import inr.numass.data.PointAnalyzer
|
||||||
import inr.numass.data.analyzers.TimeAnalyzer
|
import inr.numass.data.analyzers.TimeAnalyzer
|
||||||
|
@ -6,7 +6,6 @@ import hep.dataforge.data.DataSet
|
|||||||
import hep.dataforge.grind.Grind
|
import hep.dataforge.grind.Grind
|
||||||
import hep.dataforge.grind.GrindShell
|
import hep.dataforge.grind.GrindShell
|
||||||
import hep.dataforge.meta.Meta
|
import hep.dataforge.meta.Meta
|
||||||
import hep.dataforge.plots.fx.FXPlotManager
|
|
||||||
import inr.numass.NumassPlugin
|
import inr.numass.NumassPlugin
|
||||||
import inr.numass.actions.TimeAnalyzedAction
|
import inr.numass.actions.TimeAnalyzedAction
|
||||||
import inr.numass.data.NumassDataUtils
|
import inr.numass.data.NumassDataUtils
|
||||||
|
@ -4,7 +4,6 @@ import hep.dataforge.context.Context
|
|||||||
import hep.dataforge.context.Global
|
import hep.dataforge.context.Global
|
||||||
import hep.dataforge.grind.GrindShell
|
import hep.dataforge.grind.GrindShell
|
||||||
import hep.dataforge.grind.helpers.PlotHelper
|
import hep.dataforge.grind.helpers.PlotHelper
|
||||||
import hep.dataforge.plots.fx.FXPlotManager
|
|
||||||
import hep.dataforge.tables.ValueMap
|
import hep.dataforge.tables.ValueMap
|
||||||
import inr.numass.NumassPlugin
|
import inr.numass.NumassPlugin
|
||||||
import inr.numass.data.PointAnalyzer
|
import inr.numass.data.PointAnalyzer
|
||||||
|
@ -7,7 +7,6 @@ import hep.dataforge.data.DataNode
|
|||||||
import hep.dataforge.grind.GrindShell
|
import hep.dataforge.grind.GrindShell
|
||||||
import hep.dataforge.io.ColumnedDataWriter
|
import hep.dataforge.io.ColumnedDataWriter
|
||||||
import hep.dataforge.meta.Meta
|
import hep.dataforge.meta.Meta
|
||||||
import hep.dataforge.plots.fx.FXPlotManager
|
|
||||||
import hep.dataforge.tables.ColumnTable
|
import hep.dataforge.tables.ColumnTable
|
||||||
import hep.dataforge.tables.Table
|
import hep.dataforge.tables.Table
|
||||||
import inr.numass.NumassPlugin
|
import inr.numass.NumassPlugin
|
||||||
|
@ -16,7 +16,6 @@ import hep.dataforge.io.ColumnedDataWriter
|
|||||||
import hep.dataforge.meta.Meta
|
import hep.dataforge.meta.Meta
|
||||||
import hep.dataforge.plots.data.PlotData
|
import hep.dataforge.plots.data.PlotData
|
||||||
import hep.dataforge.plots.data.PlottableGroup
|
import hep.dataforge.plots.data.PlottableGroup
|
||||||
import hep.dataforge.plots.fx.FXPlotManager
|
|
||||||
import hep.dataforge.tables.Table
|
import hep.dataforge.tables.Table
|
||||||
import hep.dataforge.tables.TableTransform
|
import hep.dataforge.tables.TableTransform
|
||||||
import hep.dataforge.tables.XYAdapter
|
import hep.dataforge.tables.XYAdapter
|
||||||
|
@ -24,7 +24,6 @@ import hep.dataforge.meta.Meta;
|
|||||||
import hep.dataforge.plotfit.PlotFitResultAction;
|
import hep.dataforge.plotfit.PlotFitResultAction;
|
||||||
import hep.dataforge.plots.PlotDataAction;
|
import hep.dataforge.plots.PlotDataAction;
|
||||||
import hep.dataforge.plots.fx.FXPlotUtils;
|
import hep.dataforge.plots.fx.FXPlotUtils;
|
||||||
import hep.dataforge.plots.fx.PlotContainer;
|
|
||||||
import hep.dataforge.plots.jfreechart.JFreeChartFrame;
|
import hep.dataforge.plots.jfreechart.JFreeChartFrame;
|
||||||
import hep.dataforge.stat.fit.FitManager;
|
import hep.dataforge.stat.fit.FitManager;
|
||||||
import hep.dataforge.stat.models.ModelManager;
|
import hep.dataforge.stat.models.ModelManager;
|
||||||
|
@ -7,7 +7,7 @@ import hep.dataforge.kodex.buildMeta
|
|||||||
import hep.dataforge.kodex.configure
|
import hep.dataforge.kodex.configure
|
||||||
import hep.dataforge.maths.histogram.UnivariateHistogram
|
import hep.dataforge.maths.histogram.UnivariateHistogram
|
||||||
import hep.dataforge.meta.Laminate
|
import hep.dataforge.meta.Laminate
|
||||||
import hep.dataforge.plots.PlotManager
|
import hep.dataforge.plots.PlotPlugin
|
||||||
import hep.dataforge.plots.data.PlotData
|
import hep.dataforge.plots.data.PlotData
|
||||||
import hep.dataforge.tables.Table
|
import hep.dataforge.tables.Table
|
||||||
import hep.dataforge.tables.ValueMap
|
import hep.dataforge.tables.ValueMap
|
||||||
@ -42,7 +42,7 @@ class TimeAnalyzedAction : OneToOneAction<NumassPoint, Table>() {
|
|||||||
val t0 = inputMeta.getDouble("t0", 30e3);
|
val t0 = inputMeta.getDouble("t0", 30e3);
|
||||||
val loChannel = inputMeta.getInt("window.lo", 500);
|
val loChannel = inputMeta.getInt("window.lo", 500);
|
||||||
val upChannel = inputMeta.getInt("window.up", 10000);
|
val upChannel = inputMeta.getInt("window.up", 10000);
|
||||||
val pm = context.getFeature(PlotManager::class.java);
|
val pm = context.getFeature(PlotPlugin::class.java);
|
||||||
|
|
||||||
|
|
||||||
val trueCR = analyzer.analyze(input, buildMeta {
|
val trueCR = analyzer.analyze(input, buildMeta {
|
||||||
|
@ -24,11 +24,8 @@ compileKotlin.kotlinOptions.jvmTarget = "1.8"
|
|||||||
dependencies {
|
dependencies {
|
||||||
compile project(':numass-core')
|
compile project(':numass-core')
|
||||||
compile "hep.dataforge:plots-jfc" //project(':dataforge-plots:plots-jfc')
|
compile "hep.dataforge:plots-jfc" //project(':dataforge-plots:plots-jfc')
|
||||||
compile "hep.dataforge:kodex"
|
compile "hep.dataforge:kodex-fx"
|
||||||
compile 'com.jcraft:jsch:0.1.54'
|
compile 'com.jcraft:jsch:0.1.54'
|
||||||
|
|
||||||
compile 'org.controlsfx:controlsfx:8.40.12'
|
|
||||||
compile "no.tornado:tornadofx:1.7.8"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
apply plugin: 'kotlin'
|
apply plugin: 'kotlin'
|
||||||
|
@ -28,7 +28,6 @@ import hep.dataforge.names.Name;
|
|||||||
import hep.dataforge.plots.PlotUtils;
|
import hep.dataforge.plots.PlotUtils;
|
||||||
import hep.dataforge.plots.data.PlotDataUtils;
|
import hep.dataforge.plots.data.PlotDataUtils;
|
||||||
import hep.dataforge.plots.data.XYPlot;
|
import hep.dataforge.plots.data.XYPlot;
|
||||||
import hep.dataforge.plots.fx.PlotContainer;
|
|
||||||
import hep.dataforge.plots.jfreechart.JFreeChartFrame;
|
import hep.dataforge.plots.jfreechart.JFreeChartFrame;
|
||||||
import hep.dataforge.storage.api.PointLoader;
|
import hep.dataforge.storage.api.PointLoader;
|
||||||
import hep.dataforge.storage.api.Storage;
|
import hep.dataforge.storage.api.Storage;
|
||||||
|
@ -11,7 +11,6 @@ import hep.dataforge.plots.data.PlotData
|
|||||||
import hep.dataforge.plots.data.PlotDataUtils
|
import hep.dataforge.plots.data.PlotDataUtils
|
||||||
import hep.dataforge.plots.data.PlottableGroup
|
import hep.dataforge.plots.data.PlottableGroup
|
||||||
import hep.dataforge.plots.data.TimePlot
|
import hep.dataforge.plots.data.TimePlot
|
||||||
import hep.dataforge.plots.fx.PlotContainer
|
|
||||||
import hep.dataforge.plots.jfreechart.JFreeChartFrame
|
import hep.dataforge.plots.jfreechart.JFreeChartFrame
|
||||||
import hep.dataforge.storage.commons.JSONMetaWriter
|
import hep.dataforge.storage.commons.JSONMetaWriter
|
||||||
import hep.dataforge.tables.Table
|
import hep.dataforge.tables.Table
|
||||||
|
@ -5,7 +5,6 @@ import hep.dataforge.kodex.configure
|
|||||||
import hep.dataforge.meta.Meta
|
import hep.dataforge.meta.Meta
|
||||||
import hep.dataforge.plots.Plot
|
import hep.dataforge.plots.Plot
|
||||||
import hep.dataforge.plots.data.PlotData
|
import hep.dataforge.plots.data.PlotData
|
||||||
import hep.dataforge.plots.fx.PlotContainer
|
|
||||||
import hep.dataforge.plots.jfreechart.JFreeChartFrame
|
import hep.dataforge.plots.jfreechart.JFreeChartFrame
|
||||||
import hep.dataforge.storage.api.PointLoader
|
import hep.dataforge.storage.api.PointLoader
|
||||||
import hep.dataforge.storage.api.ValueIndex
|
import hep.dataforge.storage.api.ValueIndex
|
||||||
|
@ -15,7 +15,7 @@ import tornadofx.*
|
|||||||
class Viewer : App(MainView::class) {
|
class Viewer : App(MainView::class) {
|
||||||
|
|
||||||
override fun start(stage: Stage) {
|
override fun start(stage: Stage) {
|
||||||
stage.icons += Image(Global::class.java.getResourceAsStream("/img/df.png"))
|
stage.icons += Image(Global::class.java.getResourceAsStream("/resource/img/df.png"))
|
||||||
(LoggerFactory.getLogger(Logger.ROOT_LOGGER_NAME) as Logger).level = Level.INFO
|
(LoggerFactory.getLogger(Logger.ROOT_LOGGER_NAME) as Logger).level = Level.INFO
|
||||||
Global.setDefaultContext(Global.instance())
|
Global.setDefaultContext(Global.instance())
|
||||||
StorageManager().startGlobal()
|
StorageManager().startGlobal()
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
package inr.numass.viewer.test
|
package inr.numass.viewer.test
|
||||||
|
|
||||||
import hep.dataforge.plots.data.PlotData
|
import hep.dataforge.plots.data.PlotData
|
||||||
import hep.dataforge.plots.fx.PlotContainer
|
|
||||||
import hep.dataforge.plots.jfreechart.JFreeChartFrame
|
import hep.dataforge.plots.jfreechart.JFreeChartFrame
|
||||||
import hep.dataforge.tables.ValueMap
|
import hep.dataforge.tables.ValueMap
|
||||||
import hep.dataforge.tables.XYAdapter
|
import hep.dataforge.tables.XYAdapter
|
||||||
|
Loading…
Reference in New Issue
Block a user