Skip to content

Commit

Permalink
Keep initial sampling variables as a placeholder until written
Browse files Browse the repository at this point in the history
  • Loading branch information
angus-g committed Nov 16, 2021
1 parent 437937f commit 074cc81
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions filtering/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 074cc81

Please sign in to comment.