Fixing Bayesian tools

This commit is contained in:
darksnake 2017-06-14 20:11:39 +03:00
parent 248cd5f64a
commit 693dd09a1c

View File

@ -47,7 +47,7 @@ public class PlotFitResultAction extends OneToOneAction<FitResult, FitResult> {
@Override @Override
protected FitResult execute(Context context, String name, FitResult input, Laminate metaData) { protected FitResult execute(Context context, String name, FitResult input, Laminate metaData) {
FitState state = input.getState().orElseThrow(()->new UnsupportedOperationException("Can't work with fit result not containing state, sorry! Will fix it later")); FitState state = input.optState().orElseThrow(()->new UnsupportedOperationException("Can't work with fit result not containing state, sorry! Will fix it later"));
NavigablePointSource data = input.getData(); NavigablePointSource data = input.getData();
if (!(state.getModel() instanceof XYModel)) { if (!(state.getModel() instanceof XYModel)) {