Browse Source

enforce first model

JonStargaryen 4 năm trước cách đây
mục cha
commit
9bde4c40b0
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  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);
         },