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

Populate created valid sim with real SXS data

This is nessesary to do proper testing of the new peak spec
parent 200ec30d
......@@ -84,6 +84,14 @@ def createValidSim():
Phaselm(l, m).createField(sim)
Amplm(l, m).createField(sim)
# Populate simulation with real fixture data
fixture = h5.File('{0:s}/fixture/SXS_BBH_0002_Res5.min.h5'.format(
os.path.dirname(os.path.abspath(__file__))), 'r')
for k in fixture.keys():
del(sim[k])
fixture.copy(fixture[k], sim)
fixture.close()
sim.close()
return f
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