Ejemplo n.º 1
0
                    "--config_list",
                    action='store',
                    type=str,
                    default="")

args = parser.parse_args()

twopDir = args.twop_dir

filename_template = args.filename_template

binSize = args.binSize

output_template = args.output

configList = fncs.getConfigList(args.config_list, twopDir)

configNum = len(configList)

assert configNum % binSize == 0, "Number of configurations " \
    + str( configNum ) + " not evenly divided by bin size " \
    + str( binSize ) + ".\n"

binNum = configNum / binSize

#############################################
# Fill matrices with values from data files #
#############################################

# Get real part of zero-momentum two-point functions
# twop[ c, t ]
Ejemplo n.º 2
0
threep_template = args.threep_template

mEff_filename = args.mEff_filename

mEff_fitStart = args.mEff_fit_start

mEff_fitEnd = args.mEff_fit_end

tsink = args.t_sink

output_template = args.output_template

# Get configurations from given list or from given threep
# directory if list not given

configList = fncs.getConfigList(args.config_list, threepDir)

configNum = len(configList)

# Set timestep and bin number from effective mass file

timestepNum, binNum = rw.detTimestepAndConfigNum(mEff_filename)

if configNum % binNum != 0:

    print "Number of configurations " + str( configNum ) \
        + " not evenly divided by number of bins " + str( binNum ) \
        + " in effective mass file " + mEff_filename + ".\n"

    exit()
Ejemplo n.º 3
0
parser.add_argument("config_list", action='store', type=str)

parser.add_argument("keywords", action='store', nargs=argp.REMAINDER)

args = parser.parse_args()

inputDir = args.input_dir

input_template = args.input_template

outputDir = args.output_dir

output_template = args.output_template

configList = fncs.getConfigList(args.config_list, inputDir)

keywords = args.keywords

configNum = len(configList)

###################################################
# Fill matrices with values from input data files #
###################################################

dataset, datasetName = rw.getHDF5File_wNames(inputDir, configList,
                                             input_template, *keywords)

print "Read data from HDF5 files"

##################################