Commit 4d0cec6c authored by Edward Fauchon-Jones's avatar Edward Fauchon-Jones
Browse files

Up field test class with dataset rewrite methods

One addition convinience method to facilitate the modification of
datasets fields.
parent 1e058a04
......@@ -220,6 +220,12 @@ class TestField(object):
nr.attrs[name] = value
nr.close()
def setNamedDataset(self, name, value):
"""Set the value of the named dataset"""
nr = h5.File(self.f.name)
nr[name][:] = value
nr.close()
def setNamedOutput(self, name, output):
"""Set the output line of `lvcnrcheck` for the named field"""
self.output = re.sub(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment