Moved global autotranslate to an arg.

这个提交包含在:
Craig Warren
2019-11-05 14:14:57 +00:00
父节点 73c3762e45
当前提交 3c494f1399
共有 3 个文件被更改,包括 8 次插入3 次删除

查看文件

@@ -16,6 +16,7 @@
# You should have received a copy of the GNU General Public License
# along with gprMax. If not, see <http://www.gnu.org/licenses/>.
import logging
from string import Template
from pathlib import Path
@@ -23,6 +24,8 @@ import h5py
from ._version import __version__
log = logging.getLogger(__name__)
def store_outputs(G):
"""Stores field component values for every receiver and transmission line.
@@ -109,6 +112,7 @@ def write_hdf5_main_grid_outputfile(outputfile, G):
"""
write_data(outputfile, G)
log.info(f'Written output file: {outputfile.name}')
def write_hdf5_sub_grid_outputfile(outputfile, G):
@@ -138,6 +142,7 @@ def write_hdf5_sub_grid_outputfile(outputfile, G):
f.attrs['ratio'] = sg.ratio
f.attrs['interpolation'] = sg.interpolation
log.info(f'Written output file: {fp.name}')
def write_data(outputfile, G):
"""Write an output file in HDF5 format.