[no commit message]
This commit is contained in:
parent
9c5116316a
commit
a41468a2e9
@ -36,7 +36,6 @@ public class Numass {
|
|||||||
Context numassContext = new Context(parent, "numass", meta);
|
Context numassContext = new Context(parent, "numass", meta);
|
||||||
GlobalContext.registerContext(numassContext);
|
GlobalContext.registerContext(numassContext);
|
||||||
numassContext.loadPlugin("inr.numass:numass");
|
numassContext.loadPlugin("inr.numass:numass");
|
||||||
numassContext.setIO(new NumassIO());
|
|
||||||
return numassContext;
|
return numassContext;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -71,6 +71,7 @@ public class NumassPlugin extends BasicPlugin {
|
|||||||
@Override
|
@Override
|
||||||
public void attach(Context context) {
|
public void attach(Context context) {
|
||||||
// StorageManager.buildFrom(context);
|
// StorageManager.buildFrom(context);
|
||||||
|
context.setIO(new NumassIO());
|
||||||
FitManager fm = context.provide("fitting", FitPlugin.class).getFitManager();
|
FitManager fm = context.provide("fitting", FitPlugin.class).getFitManager();
|
||||||
loadModels(fm.getModelManager());
|
loadModels(fm.getModelManager());
|
||||||
loadMath(MathPlugin.buildFrom(context));
|
loadMath(MathPlugin.buildFrom(context));
|
||||||
@ -94,7 +95,7 @@ public class NumassPlugin extends BasicPlugin {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void detach() {
|
public void detach() {
|
||||||
|
//TODO clean up
|
||||||
}
|
}
|
||||||
|
|
||||||
private void loadMath(MathPlugin math) {
|
private void loadMath(MathPlugin math) {
|
||||||
@ -243,8 +244,8 @@ public class NumassPlugin extends BasicPlugin {
|
|||||||
sp.setCaching(true);
|
sp.setCaching(true);
|
||||||
}
|
}
|
||||||
//Adding trapping energy dependence
|
//Adding trapping energy dependence
|
||||||
|
|
||||||
if(meta.hasValue("transmission.trapping")){
|
if (meta.hasValue("transmission.trapping")) {
|
||||||
BivariateFunction trap = MathPlugin.buildFrom(context).buildBivariateFunction(meta.getString("transmussion.trapping"));
|
BivariateFunction trap = MathPlugin.buildFrom(context).buildBivariateFunction(meta.getString("transmussion.trapping"));
|
||||||
sp.setTrappingFunction(trap);
|
sp.setTrappingFunction(trap);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user