コード例 #1
0
ファイル: gi_class_cube.py プロジェクト: hasanmoudud/darcoda
def map_MtoL(param, gp):
    gh.sanitize_scalar(param, 0, 1, gp.debug)
    scale = gp.MtoLmax - gp.MtoLmin
    MtoL = param * scale + gp.MtoLmin
    return MtoL
コード例 #2
0
 def get_com_file(self, n):
     gh.sanitize_scalar(n, 0, 2, True)
     return self.dir + "centeredpos_" + str(n) + ".txt"
コード例 #3
0
ファイル: gi_class_files.py プロジェクト: hasanmoudud/darcoda
 def get_com_file(self, n):
     gh.sanitize_scalar(n, 0, 2, True)
     return self.dir+'centeredpos_' + str(n) + '.txt'
コード例 #4
0
ファイル: gi_class_cube.py プロジェクト: PascalSteger/darcoda
def map_MtoL(param, gp):
    gh.sanitize_scalar(param, 0, 1, gp.debug)
    scale = gp.MtoLmax - gp.MtoLmin
    MtoL = param*scale+gp.MtoLmin
    return MtoL