def str2list(s, separator=",", transform=float):
       """
       Convert comma-separated string into list
       """
       if not s:
           return []
       return list(map(transform, s.split(separator)))