From 88034479e3f9d5e841daf786bc79668e7eafac7d Mon Sep 17 00:00:00 2001 From: Zak V Date: Thu, 16 Jul 2020 16:58:30 -0400 Subject: [PATCH] Run.set_group() now creates the group if necessary. --- lyse/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lyse/__init__.py b/lyse/__init__.py index 6163b8a..67ce126 100644 --- a/lyse/__init__.py +++ b/lyse/__init__.py @@ -147,7 +147,7 @@ def _create_group_if_not_exists(self, h5_path, location, groupname): def set_group(self, groupname): self.group = groupname - self._create_group_if_not_exists(self.h5_path, '/', 'results') + self._create_group_if_not_exists(self.h5_path, '/results', self.group) # restore no_write attribute now we have set the group if self._no_group is not None and self._no_group[0]: self.no_write = self._no_group[1]