Skip to content

Instantly share code, notes, and snippets.

@chuongmep
Created June 13, 2020 11:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chuongmep/471b5972f757e19e601a2bd3929be410 to your computer and use it in GitHub Desktop.
Save chuongmep/471b5972f757e19e601a2bd3929be410 to your computer and use it in GitHub Desktop.
def tolist(obj1):
if hasattr(obj1,"__iter__"): return obj1
else : return [obj1]
fams = UnwrapElement(tolist(IN[0]))
params = IN[1]
group = IN[2]
paramGroup = IN[3]
instance = IN[4]
logs = []
if not isinstance(params, list): params = [params]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment