corrlib/corrlib/tools.py

17 lines
200 B
Python

def str2list(string):
return string.split(",")
def list2str(mylist):
s = ",".join(mylist)
return s
cached = True
def m2k(m):
return 1/(2*m+8)
def k2m(k):
return (1/(2*k))-4