Skip to content

Commit

Permalink
fix(worker): should not change type of input (#1877)
Browse files Browse the repository at this point in the history
  • Loading branch information
sedghi authored Mar 5, 2025
1 parent 7f2909c commit a97effd
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
3 changes: 0 additions & 3 deletions packages/core/src/webWorkerManager/webWorkerManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ class CentralizedWorkerManager {
autoTerminateOnIdle: autoTerminateOnIdle.enabled,
idleCheckIntervalId: null,
idleTimeThreshold: autoTerminateOnIdle.idleTimeThreshold,
options: options,
};

workerProperties.loadCounters = Array(maxWorkerInstances).fill(0);
Expand Down Expand Up @@ -157,8 +156,6 @@ class CentralizedWorkerManager {

workerProperties.processing = true;

// augment args with options
args = { ...args, ...workerProperties.options };
const results = await api[methodName](args, ...finalCallbacks);

workerProperties.processing = false;
Expand Down
1 change: 0 additions & 1 deletion packages/tools/examples/labelmapStatistics/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ function displayStat(stat) {
}

async function calculateStatistics(id, indices) {
const viewport = renderingEngine.getViewport(viewportId);
const stats = await segmentationUtils.getStatistics({
segmentationId: 'SEGMENTATION_ID',
segmentIndices: indices,
Expand Down

0 comments on commit a97effd

Please sign in to comment.