Skip to content

Commit

Permalink
modify layer_id -> layer_subtype_id
Browse files Browse the repository at this point in the history
  • Loading branch information
tenzin3 committed Jul 5, 2024
1 parent 869d207 commit 3b6f1b8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/openpecha/pecha/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ def set_layer(

"""layer key is a tuple of layer label and layer id"""
""" A particular volume can have multiple layers with same label but different id"""
layer_id = get_uuid()[:4]
self.layers[base_name][(annotation_type, layer_id)] = layer
return layer_id
layer_subtype_id = get_uuid()[:4]
self.layers[base_name][(annotation_type, layer_subtype_id)] = layer
return layer_subtype_id

def set_metadata(self, metadata: Dict[str, str]):
if not self.metadata:
Expand Down

0 comments on commit 3b6f1b8

Please sign in to comment.