Skip to content

Commit

Permalink
Merge pull request #234 from ImagingDataCommons/feature/labelmap
Browse files Browse the repository at this point in the history
Add "labelmap" segmentations
  • Loading branch information
CPBridge authored Oct 4, 2024
2 parents 32c5c70 + 33d586f commit 74fb560
Show file tree
Hide file tree
Showing 16 changed files with 411,753 additions and 178,745 deletions.
7 changes: 6 additions & 1 deletion bin/create_iods_modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,15 @@ def _create_modules(directory):
except KeyError:
logger.error(f'keyword not found for attribute "{tag}"')
continue
try:
kw_path = [dictionary_keyword(t) for t in path]
except KeyError:
logger.error(f'keyword in path of attribute "{tag}" not found')
continue
mapping = {
'keyword': keyword,
'type': item['type'],
'path': [dictionary_keyword(t) for t in path],
'path': kw_path,
}
modules[item['moduleId']].append(mapping)
return modules
Expand Down
Loading

0 comments on commit 74fb560

Please sign in to comment.