separate grind terminal
This commit is contained in:
parent
01c5419c32
commit
c63de01a42
@ -14,7 +14,7 @@ dependencies {
|
||||
compile project(':dataforge-fx')
|
||||
compile project(':dataforge-plots:plots-jfc')
|
||||
compile project(':numass-storage')
|
||||
compile project(':dataforge-grind')
|
||||
compile project(':dataforge-grind:grind-terminal')
|
||||
}
|
||||
|
||||
task listActions(dependsOn: classes, type: JavaExec) {
|
||||
|
@ -1,8 +1,8 @@
|
||||
package inr.numass
|
||||
|
||||
import hep.dataforge.context.Global
|
||||
import hep.dataforge.grind.GrindShell
|
||||
import hep.dataforge.grind.GrindWorkspaceBuilder
|
||||
import hep.dataforge.grind.terminal.GrindTerminal
|
||||
|
||||
/**
|
||||
* Created by darksnake on 29-Aug-16.
|
||||
@ -21,11 +21,11 @@ println "Starting Grind shell"
|
||||
|
||||
if(cfgPath) {
|
||||
try {
|
||||
new GrindShell().launch {
|
||||
GrindTerminal.dumb().launch {
|
||||
GrindWorkspaceBuilder numass = new GrindWorkspaceBuilder()
|
||||
.withSpec(NumassWorkspaceSpec)
|
||||
.from(new File(cfgPath))
|
||||
bind("numass", numass)
|
||||
shell.bind("numass", numass)
|
||||
}
|
||||
} catch (Exception ex) {
|
||||
ex.printStackTrace();
|
||||
|
@ -51,8 +51,8 @@ public class NumassFitTask extends SingleActionTask<Table, FitState> {
|
||||
}
|
||||
|
||||
@Override
|
||||
protected Action getAction(TaskModel model) {
|
||||
Action action = new FitAction();
|
||||
protected Action<Table, FitState> getAction(TaskModel model) {
|
||||
Action<Table, FitState> action = new FitAction();
|
||||
if (model.meta().getBoolean("fit.plot", false)) {
|
||||
return ActionUtils.compose(action, new PlotFitResultAction());
|
||||
} else {
|
||||
|
@ -25,6 +25,7 @@ import org.apache.commons.math3.analysis.UnivariateFunction;
|
||||
*
|
||||
* @author Alexander Nozik
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public class TestNeLossParametrisation {
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user