[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);
|
||||
GlobalContext.registerContext(numassContext);
|
||||
numassContext.loadPlugin("inr.numass:numass");
|
||||
numassContext.setIO(new NumassIO());
|
||||
return numassContext;
|
||||
}
|
||||
|
||||
|
@ -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) {
|
||||
@ -244,7 +245,7 @@ public class NumassPlugin extends BasicPlugin {
|
||||
}
|
||||
//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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user