Create function#
Create SAMB, QtDraw, and matrix#
Create command for model, matrix, and qtdraw.
- create_samb(models, topdir=None, verbose=False)[source]#
Create SAMB.
- Parameters:
models (str or [str] or dict or [dict]) – model file name(s) or dict(s).
topdir (str, optional) – top directory.
verbose (bool, optional) – verbose ?
- Returns:
(bool) – if no error occurs, return False.
Note
model name directory is created to store results in top directory.
if topdir is None, current directory is used.
- create_samb_matrix(select_inputs, topdir=None, verbose=False)[source]#
Create SAMB matrix (hr).
- Parameters:
select_inputs (str or [str] or dict or [dict]) – select input file name(s) or dict(s).
topdir (str, optional) – top directory.
verbose (bool, optional) – verbose ?
- Returns:
(bool) – if no error occurs, return False.
Note
matrix (and hr) file is created in model directory.
if topdir is None, current directory is used, which should contain model directory.
if input does not have “parameter” key, hr.dat is not created.
if input does not have “select” key, all SAMBs are used.
- create_samb_qtdraw(models, topdir=None, verbose=False)[source]#
Create SAMB QtDraw file.
- Parameters:
models (str or [str] or dict or [dict]) – model name(s) or dict(s).
topdir (str, optional) – top directory.
verbose (bool, optional) – verbose ?
- Returns:
(bool) – if no error occurs, return False.
Note
samb directory is created to store results in model directory.
if topdir is None, current directory is used, which should contain model directory.