Logging dependencies cleanup
This commit is contained in:
parent
58053812c4
commit
c57d1e26ef
@ -53,7 +53,7 @@ public class MergeDataAction extends ManyToOneAction<Table, Table> {
|
|||||||
@Override
|
@Override
|
||||||
protected Table execute(String nodeName, Map<String, Table> data, Meta meta) {
|
protected Table execute(String nodeName, Map<String, Table> data, Meta meta) {
|
||||||
Table res = mergeDataSets(nodeName, data.values());
|
Table res = mergeDataSets(nodeName, data.values());
|
||||||
return new ListTable(res.getFormat(), res.sort("Uset", true));
|
return new ListTable(res.getFormat(), TableTransform.sort(res, "Uset", true));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -22,10 +22,7 @@ import hep.dataforge.exceptions.ContentException;
|
|||||||
import hep.dataforge.io.ColumnedDataWriter;
|
import hep.dataforge.io.ColumnedDataWriter;
|
||||||
import hep.dataforge.meta.Laminate;
|
import hep.dataforge.meta.Laminate;
|
||||||
import hep.dataforge.meta.Meta;
|
import hep.dataforge.meta.Meta;
|
||||||
import hep.dataforge.tables.DataPoint;
|
import hep.dataforge.tables.*;
|
||||||
import hep.dataforge.tables.ListTable;
|
|
||||||
import hep.dataforge.tables.MapPoint;
|
|
||||||
import hep.dataforge.tables.Table;
|
|
||||||
import hep.dataforge.values.Value;
|
import hep.dataforge.values.Value;
|
||||||
import javafx.util.Pair;
|
import javafx.util.Pair;
|
||||||
import org.apache.commons.math3.analysis.interpolation.SplineInterpolator;
|
import org.apache.commons.math3.analysis.interpolation.SplineInterpolator;
|
||||||
@ -40,7 +37,6 @@ import java.util.TreeMap;
|
|||||||
import java.util.concurrent.CopyOnWriteArrayList;
|
import java.util.concurrent.CopyOnWriteArrayList;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
|
||||||
* @author Darksnake
|
* @author Darksnake
|
||||||
*/
|
*/
|
||||||
@TypedActionDef(name = "monitor", inputType = Table.class, outputType = Table.class)
|
@TypedActionDef(name = "monitor", inputType = Table.class, outputType = Table.class)
|
||||||
@ -200,7 +196,7 @@ public class MonitorCorrectAction extends OneToOneAction<Table, Table> {
|
|||||||
String monitorFileName = meta.getString("monitorFile", "monitor");
|
String monitorFileName = meta.getString("monitorFile", "monitor");
|
||||||
OutputStream stream = buildActionOutput(monitorFileName);
|
OutputStream stream = buildActionOutput(monitorFileName);
|
||||||
ListTable data = new ListTable(monitorPoints);
|
ListTable data = new ListTable(monitorPoints);
|
||||||
ColumnedDataWriter.writeDataSet(stream, data.sort("Timestamp", true), "Monitor points", monitorNames);
|
ColumnedDataWriter.writeDataSet(stream, TableTransform.sort(data, "Timestamp", true), "Monitor points", monitorNames);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -18,6 +18,7 @@ import hep.dataforge.stat.fit.ParamSet;
|
|||||||
import hep.dataforge.stat.fit.UpperLimitGenerator;
|
import hep.dataforge.stat.fit.UpperLimitGenerator;
|
||||||
import hep.dataforge.tables.ListTable;
|
import hep.dataforge.tables.ListTable;
|
||||||
import hep.dataforge.tables.Table;
|
import hep.dataforge.tables.Table;
|
||||||
|
import hep.dataforge.tables.TableTransform;
|
||||||
import hep.dataforge.workspace.AbstractTask;
|
import hep.dataforge.workspace.AbstractTask;
|
||||||
import hep.dataforge.workspace.TaskModel;
|
import hep.dataforge.workspace.TaskModel;
|
||||||
|
|
||||||
@ -81,7 +82,7 @@ public class NumassFitScanSummaryTask extends AbstractTask<Table> {
|
|||||||
pars.getValue("E0"),
|
pars.getValue("E0"),
|
||||||
pars.getValue("trap"));
|
pars.getValue("trap"));
|
||||||
});
|
});
|
||||||
Table res = builder.build().sort("msterile2", true);
|
Table res = TableTransform.sort(builder.build(), "msterile2", true);
|
||||||
|
|
||||||
|
|
||||||
OutputStream stream = buildActionOutput(nodeName);
|
OutputStream stream = buildActionOutput(nodeName);
|
||||||
|
@ -7,6 +7,7 @@ import hep.dataforge.description.TypedActionDef;
|
|||||||
import hep.dataforge.meta.Laminate;
|
import hep.dataforge.meta.Laminate;
|
||||||
import hep.dataforge.meta.MetaBuilder;
|
import hep.dataforge.meta.MetaBuilder;
|
||||||
import hep.dataforge.tables.Table;
|
import hep.dataforge.tables.Table;
|
||||||
|
import hep.dataforge.tables.TableTransform;
|
||||||
import hep.dataforge.workspace.SingleActionTask;
|
import hep.dataforge.workspace.SingleActionTask;
|
||||||
import hep.dataforge.workspace.TaskModel;
|
import hep.dataforge.workspace.TaskModel;
|
||||||
|
|
||||||
@ -48,7 +49,7 @@ public class NumassTableFilterTask extends SingleActionTask<Table, Table> {
|
|||||||
double uLo = inputMeta.getDouble("filter.from", 0);
|
double uLo = inputMeta.getDouble("filter.from", 0);
|
||||||
double uHi = inputMeta.getDouble("filter.to", Double.POSITIVE_INFINITY);
|
double uHi = inputMeta.getDouble("filter.to", Double.POSITIVE_INFINITY);
|
||||||
getLogger().debug("Filtering finished");
|
getLogger().debug("Filtering finished");
|
||||||
return input.filter("Uset", uLo, uHi);
|
return TableTransform.filter(input, "Uset", uLo, uHi);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user