You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ifnotisinstance(sets, list) orlen(sets) ==0:
raiseValueError("Input parameter sets must be a non-empty list.")
I propose to change this to:
ifnotisinstance(sets, Iterable) orlen(sets) ==0:
raiseValueError("Input parameter sets must be a non-empty iterable.")
Which then allows inputs as tuple as well, as well as ordered key-sets. Was helpful in my use case, rather than having to create a copy of the data in list form.
Setting up a PR from my fork, let me know what you think.
The text was updated successfully, but these errors were encountered:
Currently
https://github.com/ekzhu/SetSimilaritySearch/blob/master/SetSimilaritySearch/search.py#L27
https://github.com/ekzhu/SetSimilaritySearch/blob/master/SetSimilaritySearch/all_pairs.py#L28
state:
I propose to change this to:
Which then allows inputs as
tuple
as well, as well as ordered key-sets. Was helpful in my use case, rather than having to create a copy of the data inlist
form.Setting up a PR from my fork, let me know what you think.
The text was updated successfully, but these errors were encountered: