Skip to content
Snippets Groups Projects
Commit 60447c2a authored by Xiao Gui's avatar Xiao Gui
Browse files

hotfix: temporarily disable colin 27

parent 5cd97c37
No related branches found
No related tags found
No related merge requests found
# v2.3.5
## Under the hood stuff
- Temporarily disable Colin 27 template.
\ No newline at end of file
...@@ -51,20 +51,6 @@ ...@@ -51,20 +51,6 @@
} }
] ]
}, },
{
"@id": "minds/core/referencespace/v1.0.0/7f39f7be-445b-47c0-9791-e971c0b6d992",
"name": "MNI Colin 27",
"availableIn": [
{
"@id": "minds/core/parcellationatlas/v1.0.0/94c1125b-b87e-45e4-901c-00daee7f2579-25",
"name": "Cytoarchitectonic maps - v2.5"
},
{
"@id": "juelich/iav/atlas/v1.0.0/8",
"name": "Cytoarchitectonic Maps - v1.18"
}
]
},
{ {
"@id": "minds/core/referencespace/v1.0.0/a1655b99-82f1-420f-a3c2-fe80fd4c8588", "@id": "minds/core/referencespace/v1.0.0/a1655b99-82f1-420f-a3c2-fe80fd4c8588",
"name": "Big Brain (Histology)", "name": "Big Brain (Histology)",
...@@ -102,13 +88,6 @@ ...@@ -102,13 +88,6 @@
"originalDatasetFormats": [{ "originalDatasetFormats": [{
"name": "probability map" "name": "probability map"
}] }]
},
{
"@id": "minds/core/referencespace/v1.0.0/7f39f7be-445b-47c0-9791-e971c0b6d992",
"name": "MNI Colin 27",
"originalDatasetFormats": [{
"name": "probability map"
}]
} }
] ]
}, },
...@@ -146,13 +125,6 @@ ...@@ -146,13 +125,6 @@
"originalDatasetFormats": [{ "originalDatasetFormats": [{
"name": "probability map" "name": "probability map"
}] }]
},
{
"@id": "minds/core/referencespace/v1.0.0/7f39f7be-445b-47c0-9791-e971c0b6d992",
"name": "MNI Colin 27",
"originalDatasetFormats": [{
"name": "probability map"
}]
} }
] ]
}, },
......
...@@ -257,9 +257,11 @@ export class RenderViewOriginDatasetLabelPipe implements PipeTransform{ ...@@ -257,9 +257,11 @@ export class RenderViewOriginDatasetLabelPipe implements PipeTransform{
} }
export const regionInOtherTemplateSelector = createSelector( export const regionInOtherTemplateSelector = createSelector(
viewerStateGetSelectedAtlas,
viewerStateFetchedTemplatesSelector, viewerStateFetchedTemplatesSelector,
viewerStateSelectedTemplateSelector, viewerStateSelectedTemplateSelector,
(fetchedTemplates, templateSelected, prop) => { (atlas, fetchedTemplates, templateSelected, prop) => {
const atlasTemplateSpacesIds = atlas.templateSpaces.map(({ ['@id']: id }) => id)
const { region: regionOfInterest } = prop const { region: regionOfInterest } = prop
const returnArr = [] const returnArr = []
...@@ -268,7 +270,13 @@ export const regionInOtherTemplateSelector = createSelector( ...@@ -268,7 +270,13 @@ export const regionInOtherTemplateSelector = createSelector(
const regionOfInterestId = getIdFromFullId(regionOfInterest.fullId) const regionOfInterestId = getIdFromFullId(regionOfInterest.fullId)
if (!templateSelected) return [] if (!templateSelected) return []
const selectedTemplateId = getIdFromFullId(templateSelected.fullId) const selectedTemplateId = getIdFromFullId(templateSelected.fullId)
const otherTemplates = fetchedTemplates.filter(({ fullId }) => getIdFromFullId(fullId) !== selectedTemplateId)
// need to ensure that the templates are defined in atlas definition
// atlas is the single source of truth
const otherTemplates = fetchedTemplates
.filter(({ fullId }) => getIdFromFullId(fullId) !== selectedTemplateId)
.filter(({ ['@id']: id }) => atlasTemplateSpacesIds.includes(id))
for (const template of otherTemplates) { for (const template of otherTemplates) {
for (const parcellation of template.parcellations) { for (const parcellation of template.parcellations) {
const flattenedRegions = flattenRegions(parcellation.regions) const flattenedRegions = flattenRegions(parcellation.regions)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment