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