Strarted work on remote
This commit is contained in:
parent
1447ed5f70
commit
8be357b4ab
@ -30,7 +30,7 @@ class BoardController() : Controller(), AutoCloseable {
|
||||
val storageProperty = SimpleObjectProperty<Storage>(null)
|
||||
|
||||
val serverManagerProperty = objectBinding(contextProperty) {
|
||||
context.opt(ServerManager::class.java).orElse(null)
|
||||
context.opt(ServerManager::class.java)
|
||||
}
|
||||
|
||||
val devices: ObservableList<Device> = FXCollections.observableArrayList();
|
||||
|
@ -29,7 +29,7 @@ public class ServerRunner extends SimpleConfigurable implements AutoCloseable {
|
||||
public ServerRunner() throws IOException, ParseException {
|
||||
// Global.instance().getPluginManager().load(StorageManager.class);
|
||||
|
||||
Path configFile = context.getOutput().getFile(SERVER_CONFIG_PATH).getPath();
|
||||
Path configFile = context.getFile(SERVER_CONFIG_PATH).getPath();
|
||||
if (Files.exists(configFile)) {
|
||||
context.getLogger().info("Trying to read server configuration from {}", SERVER_CONFIG_PATH);
|
||||
configure(MetaFileReader.Companion.read(configFile));
|
||||
|
@ -12,7 +12,7 @@ if (!hasProperty('mainClass')) {
|
||||
|
||||
mainClassName = mainClass
|
||||
|
||||
version = "0.5.2 - SNAPSHOT"
|
||||
version = "0.5.3"
|
||||
|
||||
description = "The viewer for numass data"
|
||||
|
||||
|
@ -119,6 +119,7 @@ class SpectrumView : View(title = "Numass spectrum plot", icon = ImageView(dfIco
|
||||
val plot: DataPlot = frame[name] as DataPlot? ?: DataPlot(name).apply { frame.add(this) }
|
||||
|
||||
runGoal("spectrumData[$name]") {
|
||||
set.points.forEach { it.spectrum.start() }
|
||||
set.points.map { point ->
|
||||
val count = point.spectrum.await().countInWindow(loChannel.toShort(), upChannel.toShort());
|
||||
val seconds = point.length.toMillis() / 1000.0;
|
||||
|
Loading…
Reference in New Issue
Block a user