From a41468a2e9ced695de5f3c0b297125f72a2b6af9 Mon Sep 17 00:00:00 2001 From: Alexander Nozik Date: Thu, 4 Aug 2016 22:52:48 +0300 Subject: [PATCH] [no commit message] --- numass-main/src/main/java/inr/numass/Numass.java | 1 - numass-main/src/main/java/inr/numass/NumassPlugin.java | 7 ++++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/numass-main/src/main/java/inr/numass/Numass.java b/numass-main/src/main/java/inr/numass/Numass.java index 0ecfd250..293359f5 100644 --- a/numass-main/src/main/java/inr/numass/Numass.java +++ b/numass-main/src/main/java/inr/numass/Numass.java @@ -36,7 +36,6 @@ public class Numass { Context numassContext = new Context(parent, "numass", meta); GlobalContext.registerContext(numassContext); numassContext.loadPlugin("inr.numass:numass"); - numassContext.setIO(new NumassIO()); return numassContext; } diff --git a/numass-main/src/main/java/inr/numass/NumassPlugin.java b/numass-main/src/main/java/inr/numass/NumassPlugin.java index 4b72c4d8..f38ce310 100644 --- a/numass-main/src/main/java/inr/numass/NumassPlugin.java +++ b/numass-main/src/main/java/inr/numass/NumassPlugin.java @@ -71,6 +71,7 @@ public class NumassPlugin extends BasicPlugin { @Override public void attach(Context context) { // StorageManager.buildFrom(context); + context.setIO(new NumassIO()); FitManager fm = context.provide("fitting", FitPlugin.class).getFitManager(); loadModels(fm.getModelManager()); loadMath(MathPlugin.buildFrom(context)); @@ -94,7 +95,7 @@ public class NumassPlugin extends BasicPlugin { @Override public void detach() { - + //TODO clean up } private void loadMath(MathPlugin math) { @@ -243,8 +244,8 @@ public class NumassPlugin extends BasicPlugin { sp.setCaching(true); } //Adding trapping energy dependence - - if(meta.hasValue("transmission.trapping")){ + + if (meta.hasValue("transmission.trapping")) { BivariateFunction trap = MathPlugin.buildFrom(context).buildBivariateFunction(meta.getString("transmussion.trapping")); sp.setTrappingFunction(trap); }