Added writing of an attribute with the gprMax version number to the HD5 output file.

这个提交包含在:
Craig Warren
2016-04-18 17:51:33 +01:00
父节点 cea95c3523
当前提交 f6844ed31c

查看文件

@@ -19,6 +19,7 @@
import h5py
import numpy as np
import gprMax
from gprMax.constants import floattype
from gprMax.grid import Ix, Iy, Iz
@@ -35,6 +36,7 @@ def prepare_hdf5(outputfile, G):
"""
f = h5py.File(outputfile, 'w')
f.attrs['gprMax'] = gprMax.__version__
f.attrs['Title'] = G.title
f.attrs['Iterations'] = G.iterations
f.attrs['nx, ny, nz'] = (G.nx, G.ny, G.nz)