File tree 1 file changed +7
-1
lines changed
msi.gama.core/src/msi/gama/kernel/batch/exploration/morris
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -190,8 +190,14 @@ public void explore(final IScope scope) {
190
190
// The output of simulations
191
191
Map <String , List <Double >> rebuilt_output = rebuildOutput (scope , res_outputs );
192
192
193
+ // TODO : verify if Morris sampling can lead to several identical points in the parameter space
194
+ int outsize = 0 ;
195
+ for (Map <String , List <Object >> m : res_outputs .values ()) {
196
+ outsize += m .values ().stream ().findFirst ().get ().size ();
197
+ }
198
+
193
199
// Prevent OutOfBounds when experiment ends before morris exploration is completed
194
- if (res_outputs .size () == MySamples .size ()) {
200
+ if (outsize == MySamples . size () && rebuilt_output . values (). stream (). findAny (). get () .size () == MySamples .size ()) {
195
201
196
202
List <String > output_names = rebuilt_output .keySet ().stream ().toList ();
197
203
You can’t perform that action at this time.
0 commit comments