From 00f346d40cb6f4602756e90a62f278adca4891fd Mon Sep 17 00:00:00 2001 From: "dr.yuri" Date: Thu, 30 May 2019 13:55:32 +0300 Subject: [PATCH] add a decoding method to transform bytes to string --- openmc/lattice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openmc/lattice.py b/openmc/lattice.py index 281cc3addd..429d8b691b 100644 --- a/openmc/lattice.py +++ b/openmc/lattice.py @@ -142,7 +142,7 @@ class Lattice(IDManagerMixin, metaclass=ABCMeta): pitch = group['pitch'][()] outer = group['outer'][()] if ('orientation' in group.keys()): - orientation = group['orientation'][()] + orientation = group['orientation'][()].decode() else: orientation = "oy"