Last active
May 13, 2021 08:25
-
-
Save ian-quinn/ce183b5767ca64278a71cd8a3a72b3ba to your computer and use it in GitHub Desktop.
[component_dynamo] Useful dynamo python scripts #dynamo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Cull Null from Dynamo list data | |
def ClearList(_list): | |
out = [] | |
for _list1 in _list: | |
if _list1 is None: | |
continue | |
if isinstance(_list1, list): | |
_list1 = ClearList(_list1) | |
if not _list1: | |
continue | |
out.append(_list1) | |
return out |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment