navis-org / pymaid

Python library to interface with CATMAID servers. Fully interoperable with navis.
https://pymaid.readthedocs.io/en/latest/
GNU General Public License v3.0
24 stars 11 forks source link

Enabling sets as arguments to pymaid functions #198

Closed jasper-tms closed 4 years ago

jasper-tms commented 4 years ago

Sets could not previously be passed as arguments to functions that call _make_iterable due to _make_iterable not handling sets correctly. This commit just casts sets to lists within _make_iterable (in the same way that dicts get handled) so that sets get handled properly and can now be used as arguments to pymaid functions.

schlegelp commented 4 years ago

Hi Jasper. Thanks for the tweak!

FYI: I'm preparing pymaid to depend on navis similar to how rcatmaid depends on Greg's nat. Basic implementation is done but there are likely yet undiscovered bugs that I need to sort out before I can push this. For your pull request: I'll make sure to propagate that functionality into navis.