Skip to content
Snippets Groups Projects
Commit ecb13e41 authored by David Sehnal's avatar David Sehnal
Browse files

StructureQuery.run name tweak

parent e8ddbc0d
Branches
Tags
No related merge requests found
......@@ -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);
}
......
......@@ -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))
}
}
......
......@@ -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() {
......
......@@ -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.');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment