caosadvancedtools.tools.strip_null_from_list module#
Remove null elements from list properties.
- caosadvancedtools.tools.strip_null_from_list.main()#
The main function of this script.
- caosadvancedtools.tools.strip_null_from_list.strip(dry_run: bool = False, strip_empty_string: bool = False) None#
Implementation of null element removal.
- Parameters:
dry_run (bool, default=False) – If True, only print indicative output, do not remove anything
strip_empty_string (bool, default=False) – If True, also strip empty strings.
Limitations
-----------
reasons (For efficiency)
their (this function only looks for properties which are LIST<> valued in)
``my_prop (Property definition. For example a) –
LIST<TEXT>`` is covered. On the other hand:
if
``other_prop –
DOUBLE``:
LIST<DOUBLE> (but a specific Entity uses other_prop as)
will (this)
found. (not be)