Ver Fonte

StructureQuery.run name tweak

David Sehnal há 6 anos atrás
pai
commit
ecb13e4180

+ 1 - 1
src/mol-app/ui/visualization/sequence-view.tsx

@@ -41,7 +41,7 @@ class EntitySequence extends React.Component<{ ctx: Context, seq: StructureSeque
         }
 
         const query = createQuery(this.props.seq.entityId, seqId);
-        const loci = StructureSelection.toLoci(StructureQuery.run1(query, this.props.structure));
+        const loci = StructureSelection.toLoci(StructureQuery.run(query, this.props.structure));
         if (loci.elements.length === 0) InteractivityEvents.HighlightLoci.dispatch(this.props.ctx, EmptyLoci);
         else InteractivityEvents.HighlightLoci.dispatch(this.props.ctx, loci);
     }

+ 1 - 1
src/mol-model/structure/query/query.ts

@@ -10,7 +10,7 @@ import { QueryContext } from './context';
 
 interface StructureQuery { (ctx: QueryContext): StructureSelection }
 namespace StructureQuery {
-    export function run1(query: StructureQuery, structure: Structure) {
+    export function run(query: StructureQuery, structure: Structure) {
         return query(new QueryContext(structure))
     }
 }

+ 2 - 2
src/perf-tests/structure.ts

@@ -331,7 +331,7 @@ export namespace PropertyAccess {
             radius: 5,
             wholeResidues: true
         });
-        const surr = StructureSelection.unionStructure(StructureQuery.run1(q1, a));
+        const surr = StructureSelection.unionStructure(StructureQuery.run(q1, a));
         console.timeEnd('symmetry')
 
         // for (const u of surr.units) {
@@ -372,7 +372,7 @@ export namespace PropertyAccess {
     // }
 
     function query(q: StructureQuery, s: Structure) {
-        return StructureQuery.run1(q, s);
+        return StructureQuery.run(q, s);
     }
 
     export async function run() {

+ 1 - 1
src/servers/model/server/query.ts

@@ -36,7 +36,7 @@ export async function resolveJob(job: Job, writer: Writer) {
         ? await job.queryDefinition.structureTransform(job.normalizedParams, wrappedStructure.structure)
         : wrappedStructure.structure;
     const query = job.queryDefinition.query(job.normalizedParams, structure);
-    const result = StructureSelection.unionStructure(StructureQuery.run1(query, structure));
+    const result = StructureSelection.unionStructure(StructureQuery.run(query, structure));
     perf.end('query');
 
     ConsoleLogger.logId(job.id, 'Query', 'Query finished.');