File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed
fragnet-search/src/main/java/org/squonk/fragnet/service/v2 Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -392,12 +392,15 @@ void findCalculations(Exchange exch) {
392392
393393 List <Map <String , String >> list = new ArrayList <>();
394394 for (Calculator .Calculation calc : Calculator .Calculation .values ()) {
395- Map <String , String > map = new LinkedHashMap <>();
396- map .put ("id" , calc .toString ());
397- map .put ("name" , calc .propname );
398- map .put ("description" , calc .description );
399- map .put ("type" , calc .type );
400- list .add (map );
395+ // don't add the morgan fingerprints as they cause a strange RDKit crash in the servlet
396+ if (!calc .name ().startsWith ("SIM_MORGAN" )) {
397+ Map <String , String > map = new LinkedHashMap <>();
398+ map .put ("id" , calc .toString ());
399+ map .put ("name" , calc .propname );
400+ map .put ("description" , calc .description );
401+ map .put ("type" , calc .type );
402+ list .add (map );
403+ }
401404 }
402405
403406 message .setBody (list );
You can’t perform that action at this time.
0 commit comments