Skip to content

Commit

Permalink
Swmr (#212)
Browse files Browse the repository at this point in the history
* for swmr compatibility
  • Loading branch information
Aaron Parsons authored and coretl committed Aug 1, 2017
1 parent cede243 commit 00d6de1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion malcolm/modules/excalibur/parts/vdswrapperpart.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ def configure(self, context, completed_steps, steps_to_do, part_info,
node_tree.append(base + "/{}_set_indices".format(axis))

with h5.File(self.vds_path, self.CREATE, libver="latest") as self.vds:
self.vds.swmr_mode = True
for node in self.required_nodes:
self.vds.require_group(node)
for node in node_tree:
Expand Down Expand Up @@ -173,7 +174,7 @@ def configure(self, context, completed_steps, steps_to_do, part_info,
for file_ in files]

# Open the VDS
self.vds = h5.File(self.vds_path, self.APPEND, libver="latest")
self.vds = h5.File(self.vds_path, self.APPEND, libver="latest",swmr=True)


# Return the dataset information
Expand Down

0 comments on commit 00d6de1

Please sign in to comment.