add a decoding method to transform bytes to string

This commit is contained in:
dr.yuri 2019-05-30 13:55:32 +03:00
parent 8ae6c30d6b
commit 00f346d40c

View file

@ -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"