Explorar o código

enforce first model

JonStargaryen %!s(int64=4) %!d(string=hai) anos
pai
achega
9bde4c40b0
Modificáronse 1 ficheiros con 2 adicións e 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 tests = getAtomsTests(p.atom_site);
             const ligands = Queries.combinators.merge(tests.map(test => Queries.generators.atoms({
             const ligands = Queries.combinators.merge(tests.map(test => Queries.generators.atoms({
                 ...test,
                 ...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);
             return Queries.filters.first(ligands);
         },
         },