Cleaned up some imports and added correct license block.

这个提交包含在:
Craig Warren
2016-01-21 18:48:49 +00:00
父节点 c9bffbfa79
当前提交 5f035b19e8

查看文件

@@ -1,21 +1,28 @@
# Copyright (C) 2015, Craig Warren # Copyright (C) 2015-2016: The University of Edinburgh
# Authors: Craig Warren and Antonis Giannopoulos
# #
# This module is licensed under the Creative Commons Attribution-ShareAlike 4.0 International License. # This file is part of gprMax.
# To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/4.0/.
# #
# Please use the attribution at http://dx.doi.org/10.1190/1.3548506 # gprMax is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# gprMax is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with gprMax. If not, see <http://www.gnu.org/licenses/>.
import os
from collections import OrderedDict from collections import OrderedDict
import numpy as np import numpy as np
import h5py
from gprMax.constants import floattype from gprMax.constants import floattype
from gprMax.exceptions import CmdInputError from gprMax.exceptions import CmdInputError
moduledirectory = os.path.dirname(os.path.abspath(__file__))
def taguchi_code_blocks(inputfile, taguchinamespace): def taguchi_code_blocks(inputfile, taguchinamespace):
"""Looks for and processes a Taguchi code block (containing Python code) in the input file. It will ignore any lines that are comments, i.e. begin with a double hash (##), and any blank lines. """Looks for and processes a Taguchi code block (containing Python code) in the input file. It will ignore any lines that are comments, i.e. begin with a double hash (##), and any blank lines.