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); }