global cleanup
This commit is contained in:
parent
6181407cd5
commit
7628386d56
@ -6,6 +6,7 @@ syntax: glob
|
|||||||
*.conflict
|
*.conflict
|
||||||
build/*
|
build/*
|
||||||
target/*
|
target/*
|
||||||
|
private/*
|
||||||
.gradle/*
|
.gradle/*
|
||||||
.nb-gradle/*
|
.nb-gradle/*
|
||||||
.idea/
|
.idea/
|
||||||
|
@ -17,11 +17,12 @@ package inr.numass.control.magnet;
|
|||||||
|
|
||||||
import hep.dataforge.control.ports.PortHandler;
|
import hep.dataforge.control.ports.PortHandler;
|
||||||
import hep.dataforge.exceptions.PortException;
|
import hep.dataforge.exceptions.PortException;
|
||||||
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
import java.util.HashSet;
|
import java.util.HashSet;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import java.util.function.Predicate;
|
import java.util.function.Predicate;
|
||||||
import org.slf4j.LoggerFactory;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
@ -85,7 +86,7 @@ public class SafeMagnetController extends MagnetController {
|
|||||||
super.setCurrent(current);
|
super.setCurrent(current);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static interface SafeMagnetCondition {
|
public interface SafeMagnetCondition {
|
||||||
|
|
||||||
boolean isSafe(int address, double current);
|
boolean isSafe(int address, double current);
|
||||||
|
|
||||||
|
@ -336,7 +336,7 @@ public class MspViewController implements Initializable, MspListener {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void shutdown() throws IOException, PortException, ControlException {
|
public void shutdown() throws IOException, ControlException {
|
||||||
getDevice().shutdown();
|
getDevice().shutdown();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -262,7 +262,7 @@ public class NumassPlugin extends BasicPlugin {
|
|||||||
} else if (an.hasMeta("transBuildAction")) {
|
} else if (an.hasMeta("transBuildAction")) {
|
||||||
Meta transBuild = an.getMeta("transBuildAction");
|
Meta transBuild = an.getMeta("transBuildAction");
|
||||||
try {
|
try {
|
||||||
return TransmissionInterpolator.fromAction((Context) context,
|
return TransmissionInterpolator.fromAction(context,
|
||||||
transBuild, transXName, transYName, nSmooth, w, stitchBorder);
|
transBuild, transXName, transYName, nSmooth, w, stitchBorder);
|
||||||
} catch (InterruptedException ex) {
|
} catch (InterruptedException ex) {
|
||||||
throw new RuntimeException("Transmission build failed");
|
throw new RuntimeException("Transmission build failed");
|
||||||
|
@ -215,7 +215,7 @@ public class ShowLossSpectrumAction extends OneToOneAction<FitState, FitState> {
|
|||||||
writer.println("***SPECTRUM SPREAD***");
|
writer.println("***SPECTRUM SPREAD***");
|
||||||
writer.println();
|
writer.println();
|
||||||
|
|
||||||
ParamSet parameters = input.getParameters().getSubSet(new String[]{"exPos", "ionPos", "exW", "ionW", "exIonRatio"});
|
ParamSet parameters = input.getParameters().getSubSet("exPos", "ionPos", "exW", "ionW", "exIonRatio");
|
||||||
NamedMatrix covariance = input.getCovariance();
|
NamedMatrix covariance = input.getCovariance();
|
||||||
Table spreadData = generateSpread(writer, name, parameters, covariance);
|
Table spreadData = generateSpread(writer, name, parameters, covariance);
|
||||||
ColumnedDataWriter.writeDataSet(System.out, spreadData, "", spreadData.getFormat().namesAsArray());
|
ColumnedDataWriter.writeDataSet(System.out, spreadData, "", spreadData.getFormat().namesAsArray());
|
||||||
@ -246,7 +246,7 @@ public class ShowLossSpectrumAction extends OneToOneAction<FitState, FitState> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public double calultateIonRatioError(String dataNeme, FitState state, double threshold) {
|
public double calultateIonRatioError(String dataNeme, FitState state, double threshold) {
|
||||||
ParamSet parameters = state.getParameters().getSubSet(new String[]{"exPos", "ionPos", "exW", "ionW", "exIonRatio"});
|
ParamSet parameters = state.getParameters().getSubSet("exPos", "ionPos", "exW", "ionW", "exIonRatio");
|
||||||
NamedMatrix covariance = state.getCovariance();
|
NamedMatrix covariance = state.getCovariance();
|
||||||
return calultateIonRatioError(dataNeme, parameters, covariance, threshold);
|
return calultateIonRatioError(dataNeme, parameters, covariance, threshold);
|
||||||
}
|
}
|
||||||
|
@ -259,7 +259,7 @@ public class NumassWorkbenchController implements Initializable, StagePaneHolder
|
|||||||
actionsConfig = new Configuration("actionlist");
|
actionsConfig = new Configuration("actionlist");
|
||||||
|
|
||||||
List<Configuration> actions = config.getMetaList("action").stream()
|
List<Configuration> actions = config.getMetaList("action").stream()
|
||||||
.<Configuration>map(m -> new Configuration(m)).collect(Collectors.toList());
|
.map(m -> new Configuration(m)).collect(Collectors.toList());
|
||||||
|
|
||||||
actionsConfig.attachNodeItem("action", actions);
|
actionsConfig.attachNodeItem("action", actions);
|
||||||
|
|
||||||
|
@ -22,7 +22,6 @@ import hep.dataforge.storage.commons.StorageManager;
|
|||||||
import hep.dataforge.storage.filestorage.FileStorage;
|
import hep.dataforge.storage.filestorage.FileStorage;
|
||||||
import org.apache.commons.daemon.Daemon;
|
import org.apache.commons.daemon.Daemon;
|
||||||
import org.apache.commons.daemon.DaemonContext;
|
import org.apache.commons.daemon.DaemonContext;
|
||||||
import org.apache.commons.daemon.DaemonInitException;
|
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
@ -67,7 +66,7 @@ public class NumassServerDaemon implements Daemon, Annotated {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void init(DaemonContext dc) throws DaemonInitException, Exception {
|
public void init(DaemonContext dc) throws Exception {
|
||||||
logger.info("Starting numass server daemon");
|
logger.info("Starting numass server daemon");
|
||||||
logger.info("Starting storage plugin");
|
logger.info("Starting storage plugin");
|
||||||
new StorageManager().startGlobal();
|
new StorageManager().startGlobal();
|
||||||
|
@ -1,21 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
||||||
<!--
|
|
||||||
Copyright 2015 Alexander Nozik.
|
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
you may not use this file except in compliance with the License.
|
|
||||||
You may obtain a copy of the License at
|
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
See the License for the specific language governing permissions and
|
|
||||||
limitations under the License.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog" prefer="system">
|
|
||||||
<system systemId="http://javafx.com/javafx/8.0.40" uri="www.oracle.com/technetwork/java/javase/overview/index.html"/>
|
|
||||||
<system systemId="http://javafx.com/javafx/8" uri="www.oracle.com/technetwork/java/javase/overview/index.html"/>
|
|
||||||
</catalog>
|
|
File diff suppressed because one or more lines are too long
@ -225,16 +225,16 @@ public class NumassLoaderTreeBuilder {
|
|||||||
|
|
||||||
public interface TreeItemValue {
|
public interface TreeItemValue {
|
||||||
|
|
||||||
public String getName();
|
String getName();
|
||||||
|
|
||||||
public String getTime();
|
String getTime();
|
||||||
|
|
||||||
public String getDescription();
|
String getDescription();
|
||||||
|
|
||||||
public NumassData getLoader();
|
NumassData getLoader();
|
||||||
|
|
||||||
public NumassStorage getStorage();
|
NumassStorage getStorage();
|
||||||
|
|
||||||
public boolean isLoader();
|
boolean isLoader();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -297,7 +297,7 @@ public class NumassLoaderViewComponent extends AnchorPane implements Initializab
|
|||||||
spectrumData.clear();
|
spectrumData.clear();
|
||||||
} else {
|
} else {
|
||||||
spectrumData.fillData(points.stream()
|
spectrumData.fillData(points.stream()
|
||||||
.<DataPoint>map((NMPoint point) -> getSpectrumPoint(point, lowChannel, highChannel, getDTime()))
|
.map((NMPoint point) -> getSpectrumPoint(point, lowChannel, highChannel, getDTime()))
|
||||||
.collect(Collectors.toList()));
|
.collect(Collectors.toList()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user