From 840845ce1ba4bafe85defdbd6bd90625dc7a8b4e Mon Sep 17 00:00:00 2001 From: Xiao Gui <xgui3783@gmail.com> Date: Thu, 1 Jun 2023 08:51:09 +0200 Subject: [PATCH] maint: remove fix of cort prof map --- src/atlasComponents/sapi/sapi.service.ts | 10 +++++----- src/atlasComponents/sapi/translateV3.ts | 10 ---------- 2 files changed, 5 insertions(+), 15 deletions(-) diff --git a/src/atlasComponents/sapi/sapi.service.ts b/src/atlasComponents/sapi/sapi.service.ts index 06c6808ea..7959d63fb 100644 --- a/src/atlasComponents/sapi/sapi.service.ts +++ b/src/atlasComponents/sapi/sapi.service.ts @@ -515,11 +515,11 @@ export class SAPI{ const map = await this.getLabelledMap(parcellation, template) for (const regionname in map.indices) { - if (parcellation.id === IDS.PARCELLATION.CORTICAL_LAYERS) { - if (regionname.includes("left") || regionname.includes("right")) { - continue - } - } + // if (parcellation.id === IDS.PARCELLATION.CORTICAL_LAYERS) { + // if (regionname.includes("left") || regionname.includes("right")) { + // continue + // } + // } for (const { volume: volumeIdx, fragment, label } of map.indices[regionname]) { const { providedVolumes } = map.volumes[volumeIdx] if (!("neuroglancer/precomputed" in providedVolumes)) { diff --git a/src/atlasComponents/sapi/translateV3.ts b/src/atlasComponents/sapi/translateV3.ts index 79775ba84..e92c14d9f 100644 --- a/src/atlasComponents/sapi/translateV3.ts +++ b/src/atlasComponents/sapi/translateV3.ts @@ -287,17 +287,7 @@ class TranslateV3 { segLayerSpec.layer.labelIndicies.push(label) segLayerSpec.region.push(region) } - const { ['@id']: mapId } = map for (const regionname in map.indices) { - /** - * temporary fix - * see https://github.com/FZJ-INM1-BDA/siibra-python/issues/317 - */ - if (mapId === "siibra-map-v0.0.1_bigbrain-cortical-labelled") { - if (regionname.includes("left") || regionname.includes("right")) { - continue - } - } for (const index of map.indices[regionname]) { const { volume:volumeIdx=0, fragment, label } = index if (!label) { -- GitLab