Provider revising
This commit is contained in:
parent
28f1503190
commit
5553d141ed
@ -117,7 +117,7 @@ public class PKT8Device extends PortSensor<PKT8Result> {
|
|||||||
//setup connection
|
//setup connection
|
||||||
if ("virtual".equals(portName)) {
|
if ("virtual".equals(portName)) {
|
||||||
getLogger().info("Starting {} using virtual debug port", getName());
|
getLogger().info("Starting {} using virtual debug port", getName());
|
||||||
handler = new PKT8VirtualPort("PKT8", meta().getNodeOrEmpty("debug"));
|
handler = new PKT8VirtualPort("PKT8", meta().getMetaOrEmpty("debug"));
|
||||||
} else {
|
} else {
|
||||||
handler = super.buildHandler(portName);
|
handler = super.buildHandler(portName);
|
||||||
}
|
}
|
||||||
|
@ -48,7 +48,7 @@ public class PlotFitResultAction extends OneToOneAction<FitState, FitState> {
|
|||||||
|
|
||||||
NavigablePointSource data = input.getDataSet();
|
NavigablePointSource data = input.getDataSet();
|
||||||
if (!(input.getModel() instanceof XYModel)) {
|
if (!(input.getModel() instanceof XYModel)) {
|
||||||
getReport(context, name).reportError("The fit model should be instance of XYModel for this action. Action failed!");
|
context.getLog(name).reportError("The fit model should be instance of XYModel for this action. Action failed!");
|
||||||
return input;
|
return input;
|
||||||
}
|
}
|
||||||
XYModel model = (XYModel) input.getModel();
|
XYModel model = (XYModel) input.getModel();
|
||||||
|
@ -65,7 +65,7 @@ public class DebunchAction extends OneToOneAction<RawNMFile, RawNMFile> {
|
|||||||
});
|
});
|
||||||
report(context, name, "File {} completed", source.getName());
|
report(context, name, "File {} completed", source.getName());
|
||||||
|
|
||||||
getReport(context, name).print(new PrintWriter(buildActionOutput(context, name)));
|
context.getLog(name).print(new PrintWriter(buildActionOutput(context, name)));
|
||||||
|
|
||||||
// res.configure(source.meta());
|
// res.configure(source.meta());
|
||||||
return res;
|
return res;
|
||||||
|
@ -72,7 +72,7 @@ public class SterileNeutrinoSpectrum extends AbstractParametricFunction {
|
|||||||
fss = new FSS(fssStream);
|
fss = new FSS(fssStream);
|
||||||
}
|
}
|
||||||
|
|
||||||
transmission = new NumassTransmission(context, configuration.getNodeOrEmpty("transmission"));
|
transmission = new NumassTransmission(context, configuration.getMetaOrEmpty("transmission"));
|
||||||
resolution = new NumassResolution(configuration.getMeta("resolution", Meta.empty()));
|
resolution = new NumassResolution(configuration.getMeta("resolution", Meta.empty()));
|
||||||
this.fast = configuration.getBoolean("fast", true);
|
this.fast = configuration.getBoolean("fast", true);
|
||||||
transRes = new TransRes();
|
transRes = new TransRes();
|
||||||
|
Loading…
Reference in New Issue
Block a user