Skip to content

Commit

Permalink
noise--
Browse files Browse the repository at this point in the history
  • Loading branch information
sbittrich committed Aug 23, 2023
1 parent 2133a34 commit 8cabf4a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 13 deletions.
5 changes: 4 additions & 1 deletion src/viewer/helpers/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ export class ModelLoader {
? (await this.plugin.builders.data.readFile({ file: Asset.File(fileOrUrl), isBinary, label: props?.dataLabel })).data
: await this.plugin.builders.data.download({ url: fileOrUrl, isBinary, label: props?.dataLabel });

return await this.handleTrajectory<P, S>(data, format, props, matrix, reprProvider, params) as any;
const hierarchy = await this.handleTrajectory<P, S>(data, format, props, matrix, reprProvider, params) as any;

return hierarchy;
}

async parse<P = any, S = {}>(parse: ParseParams, props?: PresetProps & { dataLabel?: string }, matrix?: Mat4, reprProvider?: TrajectoryHierarchyPresetProvider<P, S>, params?: P) {
Expand Down Expand Up @@ -71,6 +73,7 @@ export class ModelLoader {

return selector;
}

}

constructor(private plugin: PluginContext) {
Expand Down
9 changes: 4 additions & 5 deletions src/viewer/helpers/preset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ export type EmptyProps = {
} & BaseProps

type ValidationProps = {
kind: 'validation',
colorTheme?: string,
kind: 'validation'
colorTheme?: string
showClashes?: boolean
} & BaseProps

Expand All @@ -82,14 +82,13 @@ type StandardProps = {
} & BaseProps

type SymmetryProps = {
kind: 'symmetry',
kind: 'symmetry'
symmetryIndex?: number
} & BaseProps

type FeatureProps = {
kind: 'feature',
target: Target,
alpha: number
target: Target
} & BaseProps

type DensityProps = {
Expand Down
7 changes: 0 additions & 7 deletions src/viewer/helpers/selection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,13 +203,6 @@ export function rangeToTest(asymId: string, residues: number[], operatorName?: s
}
}

export function targetsToLoci(targets: Target[], structure: Structure): StructureElement.Loci {
const expression = targetsToExpression(targets);
const query = compile<StructureSelection>(expression);
const selection = query(new QueryContext(structure));
return StructureSelection.toLociWithSourceUnits(selection);
}

export function targetToLoci(target: Target, structure: Structure): StructureElement.Loci {
const expression = targetToExpression(target);
const query = compile<StructureSelection>(expression);
Expand Down

0 comments on commit 8cabf4a

Please sign in to comment.