Skip to content

Commit

Permalink
testing only loading max resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisj committed Sep 3, 2024
1 parent e07da4e commit 8a14fcb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/datasource/precomputed/frontend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -336,10 +336,16 @@ export class PrecomputedMultiscaleVolumeChunkSource extends MultiscaleVolumeChun
getSources(volumeSourceOptions: VolumeSourceOptions) {
const modelResolution = this.info.scales[0].resolution;
const { rank } = this;
let gotFirst = false;
return transposeNestedArrays(
this.info.scales
.filter((x) => !x.hidden)
.filter((x) => x.key !== "placeholder")
.filter(() => {
const res = !gotFirst;
gotFirst = true;
return res;
})
.map((scaleInfo) => {
const { resolution } = scaleInfo;
const stride = rank + 1;
Expand Down

0 comments on commit 8a14fcb

Please sign in to comment.