Fixes in tasks
This commit is contained in:
parent
c5389c4e15
commit
ffbf97dc0c
@ -35,7 +35,7 @@ public class NumassFitScanSummaryTask extends AbstractTask<Table> {
|
||||
Action<FitState, Table> action = new FitSummaryAction().withContext(model.getWorkspace().getContext());
|
||||
DataNode<FitState> input = data.getCheckedNode("fitscan", FitState.class);
|
||||
input.nodeStream().forEach(node ->
|
||||
builder.putData(node.getName(), action.run((DataNode<FitState>) node, model.meta()).getData()));
|
||||
builder.putData(node.getName(), action.run(node, model.meta()).getData()));
|
||||
|
||||
// if (data.nodeStream().count() > 1) {
|
||||
//merge tables if there is more than one
|
||||
|
@ -31,11 +31,11 @@ public class NumassFitScanTask extends AbstractTask<FitState> {
|
||||
Value scanValues = config.getValue("scanValues", Value.of("[2.5e5, 1e6, 2.25e6, 4e6, 6.25e6, 9e6]"));
|
||||
Action<Table, FitState> action = new FitAction().withContext(model.getContext()).withParentProcess(callback.workName());
|
||||
DataTree.Builder<FitState> resultBuilder = DataTree.builder(FitState.class);
|
||||
DataNode<?> sourceNode = data.getNode("prepare").get();
|
||||
DataNode<Table> sourceNode = data.getCheckedNode("prepare", Table.class);
|
||||
|
||||
if (config.hasNode("merge")) {
|
||||
//use merged data and ignore raw data
|
||||
sourceNode = sourceNode.getNode("merge").get();
|
||||
sourceNode = sourceNode.getCheckedNode("merge", Table.class);
|
||||
}
|
||||
|
||||
//do fit
|
||||
|
@ -17,6 +17,7 @@ import java.util.stream.Collectors;
|
||||
/**
|
||||
* Created by darksnake on 12-Aug-16.
|
||||
*/
|
||||
@Deprecated
|
||||
public class NumassJavaGrindLauncher {
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
|
Loading…
Reference in New Issue
Block a user