Explorar el Código

enforce first model

JonStargaryen hace 4 años
padre
commit
9bde4c40b0
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      src/servers/model/server/api.ts

+ 2 - 1
src/servers/model/server/api.ts

@@ -136,7 +136,8 @@ const QueryMap = {
             const tests = getAtomsTests(p.atom_site);
             const ligands = Queries.combinators.merge(tests.map(test => Queries.generators.atoms({
                 ...test,
-                groupBy: (ctx) => StructureProperties.residue.key(ctx.element)
+                unitTest: ctx => StructureProperties.unit.model_num(ctx.element) === 1,
+                groupBy: ctx => StructureProperties.residue.key(ctx.element)
             })));
             return Queries.filters.first(ligands);
         },