Skip to content

Commit

Permalink
debugging chunk position
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisj committed Apr 4, 2024
1 parent 4b8f900 commit 3f734be
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
16 changes: 11 additions & 5 deletions src/annotation/frontend_source.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ export class AnnotationGeometryChunkSource extends SliceViewChunkSource<

addChunk(key: string, chunk: AnnotationGeometryChunk) {
super.addChunk(key, chunk);
// console.log("add chunk", key);
console.log("addChunk", key);
// TODO: process local deletions
}

Expand Down Expand Up @@ -638,9 +638,15 @@ export class MultiscaleAnnotationSource
const chunk = chunks.get(tempChunk.join());
if (chunk !== undefined) {
console.log(
"we got a chunk",
chunk.chunkGridPosition,
source.spec.chunkDataSize,
"chunk exists",
tempChunk.join(),
'size',
source.spec.chunkDataSize.toString(),
);
} else {
console.log(
"no chunk for key",
tempChunk.join(),
);
}
}
Expand Down Expand Up @@ -732,7 +738,7 @@ export class MultiscaleAnnotationSource
// currently not working well because the chunk calculation is off so we end up using a low
// level chunk
const chunk = source.chunks.get(sortChunk.join(","));
console.log("checking for chunk", sortChunk.join(","));
// console.log("checking for chunk", sortChunk.join(","));
if (chunk) {
const { data } = chunk;
if (data === undefined) continue;
Expand Down
2 changes: 1 addition & 1 deletion src/ui/annotations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ export class AnnotationLayerView extends Tab {
refCounted.registerDisposer(
source.chunkManager.chunkQueueManager.visibleChunksChanged.add(
debounce(() => {
console.log("calling force update view!");
// console.log("calling force update view!");
this.forceUpdateView();
}, 1000),
),
Expand Down

0 comments on commit 3f734be

Please sign in to comment.