Skip to content
This repository was archived by the owner on Mar 17, 2021. It is now read-only.

Commit a389041

Browse files
committed
Merge branch 'read-the-docs' into 'dev'
label_norm tags See merge request !160
2 parents 52bdb9e + dd4407e commit a389041

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

niftynet/layer/discrete_label_normalisation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ def __init__(self,
4040
@property
4141
def key(self):
4242
# provide a readable key for the label mapping item
43-
key_from = "{}_{}-from".format(self.image_name, self.modalities[0])
44-
key_to = "{}_{}-to".format(self.image_name, self.modalities[0])
43+
key_from = "{}:{}:from".format(self.image_name, self.modalities[0])
44+
key_to = "{}:{}:to".format(self.image_name, self.modalities[0])
4545
return standardise_string(key_from), standardise_string(key_to)
4646

4747
def layer_op(self, image, mask=None):

0 commit comments

Comments
 (0)