From dd4407ea1b05bfc7a3b0106b7731aa6cdb9a1a36 Mon Sep 17 00:00:00 2001 From: Wenqi Li Date: Wed, 13 Dec 2017 18:01:19 +0000 Subject: [PATCH] label_norm tags --- niftynet/layer/discrete_label_normalisation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/niftynet/layer/discrete_label_normalisation.py b/niftynet/layer/discrete_label_normalisation.py index c8517911..2650190e 100755 --- a/niftynet/layer/discrete_label_normalisation.py +++ b/niftynet/layer/discrete_label_normalisation.py @@ -40,8 +40,8 @@ def __init__(self, @property def key(self): # provide a readable key for the label mapping item - key_from = "{}_{}-from".format(self.image_name, self.modalities[0]) - key_to = "{}_{}-to".format(self.image_name, self.modalities[0]) + key_from = "{}:{}:from".format(self.image_name, self.modalities[0]) + key_to = "{}:{}:to".format(self.image_name, self.modalities[0]) return standardise_string(key_from), standardise_string(key_to) def layer_op(self, image, mask=None):