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
def get_com_file(self, n): gh.sanitize_scalar(n, 0, 2, True) return self.dir + "centeredpos_" + str(n) + ".txt"
def get_com_file(self, n): gh.sanitize_scalar(n, 0, 2, True) return self.dir+'centeredpos_' + str(n) + '.txt'
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