コード例 #1
0
 def __init__(self, project_name, init_file='pyquan.ini'):
     self._project_name = project_name
     self._info = init.Info(init_file)
     self._path = init.Path(project_name, self._info)
     self._csv = self._info.csv
     self._runlist = self._path.runlist_cal
     info = self._info
     warnings.simplefilter('error', OptimizeWarning)
コード例 #2
0
def main(project_name=None, sample=None, RT=None):
    if not project_name:
        project_name, sample, RT = get_arguments()
    info = init.Info('pyquan.ini')
    csv = info.csv
    with open(init.Path(project_name, info).runlist_file, 'r') as runlist:
        for line in runlist:
            sample_name, on, a, b = csv.read_line(line)
            if sample_name == sample:
                print(a, b)
                return (RT * 60 - float(b)) * float(a)
    print('sample not in runlist')
    return
コード例 #3
0
def main():
    options = get_info()
    project_name = options.project_name.lower()
    sample = options.sample.lower()
    code = amdis.correct_code(options.code)
    info = init.Info('pyquan.ini')
    path = init.Path(project_name, info)
    removecode = RemoveCode(path, info, code)
    if sample == 'all':
        removecode.remove_all()
    else:
        removecode.remove_code(sample)
    print('\a')
    return
コード例 #4
0
ファイル: update_library.py プロジェクト: lycopoda/Pyquan
def main():
    info = init.Info('pyquan.ini')
    path = init.Path('dummy', info)
    try:
        amdis, lib = sys.argv
        amdis_path = make_path(path.library_dir, amdis, extension='msl')
        lib_path = make_path(path.library_dir, lib, extension='csv')
    except:
        print('AMDIS file, and library file defined in pyquan.ini are used')
        amdis_path = path.library_amdis
        lib_path = path.library_file_ref
    update_library(amdis_path, lib_path, info, path)
    print('{0} created or updated'.format(lib_path))
    return
コード例 #5
0
ファイル: runlist.py プロジェクト: lycopoda/Pyquan
 def __init__(self, project_name, info=None):
     if not info:
         info = init.Info("pyquan.ini")
     self._info = info
     self._path = init.Path(project_name, self._info)