diff --git a/filtering/file.py b/filtering/file.py index 0313aa7..af7572d 100644 --- a/filtering/file.py +++ b/filtering/file.py @@ -127,8 +127,8 @@ def set_group(self, group): self._var_datasets = {} for v, t in self._vars.items(): if isinstance(t, Placeholder): - self._var_datasets[v] = self._group.require_dataset( - v, shape=(self.n,), dtype=t.value + self._var_datasets[v] = Placeholder( + self._group.require_dataset(v, shape=(self.n,), dtype=t.value) ) else: self._var_datasets[v] = self._group.require_dataset(