Skip to content

Commit

Permalink
fix publish ebrain result
Browse files Browse the repository at this point in the history
  • Loading branch information
xgui3783 committed Apr 2, 2024
1 parent b899711 commit 63c8a7e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
17 changes: 11 additions & 6 deletions backend/voluba_backend/ebrains_router/const.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
class RefSpaceName:
BIG_BRAIN = "Big Brain (2015 Release)"
WAXHOLM = "Waxholm Space of the Sprague Dawley v1.01"
ALLEN_CCFV3 = "Allen Mouse Common Coordinate Framework v3"

SPC_NAME_TO_ID_VOCAB = {
'BigBrain (2015)': 'minds/core/referencespace/v1.0.0/a1655b99-82f1-420f-a3c2-fe80fd4c8588',
'waxholm': 'minds/core/referencespace/v1.0.0/d5717c4a-0fa1-46e6-918c-b8003069ade8',
'allen': 'minds/core/referencespace/v1.0.0/265d32a0-3d84-40a5-926f-bf89f68212b9',
RefSpaceName.BIG_BRAIN: 'minds/core/referencespace/v1.0.0/a1655b99-82f1-420f-a3c2-fe80fd4c8588',
RefSpaceName.WAXHOLM: 'minds/core/referencespace/v1.0.0/d5717c4a-0fa1-46e6-918c-b8003069ade8',
RefSpaceName.ALLEN_CCFV3: 'minds/core/referencespace/v1.0.0/265d32a0-3d84-40a5-926f-bf89f68212b9',
}

class KG_IDS:
Expand All @@ -15,9 +20,9 @@ class KG_IDS:


SPC_NAME_TO_KG_ID = {
'BigBrain (2015)': KG_IDS.BIGBRAIN_CCSV_ID,
'waxholm': KG_IDS.WAXHOLM_CCSV_ID,
'allen': KG_IDS.ALLEN_CCSV_ID,
RefSpaceName.BIG_BRAIN: KG_IDS.BIGBRAIN_CCSV_ID,
RefSpaceName.WAXHOLM: KG_IDS.WAXHOLM_CCSV_ID,
RefSpaceName.ALLEN_CCFV3: KG_IDS.ALLEN_CCSV_ID,
}

class KG_INSTANCES:
Expand Down
3 changes: 1 addition & 2 deletions frontend/src/views/shareExport/shareExport.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -352,13 +352,12 @@ export class ShareExportComponent {
@Inject(VOLUBA_APP_CONFIG)
private appCfg: VolubaAppConfig
){
let flag = true
this.#publishProgress$.pipe(
takeUntil(this.destroyed$),
map(({ id }) => id),
distinctUntilChanged(),
switchMap(id => {
if (!id || flag) {
if (!id) {
return EMPTY
}
return interval(1000).pipe(
Expand Down

0 comments on commit 63c8a7e

Please sign in to comment.