cytoscape / RCy3

New version of RCy3, redesigned and collaboratively maintained by Cytoscape developer community
MIT License
50 stars 20 forks source link

Add apply= parameter to filter definition functions #121

Closed bdemchak closed 3 years ago

bdemchak commented 3 years ago

To match the 3.9.0 style of applying filters (i.e., separating definition from execution), the filters definition functions need an apply= parameter that determines whether the apply() function should be called. These functions are:

These changes have been applied to py4cytoscape already ... note that the apply= parameter was added to the end of the parameter lists so as to not invalidate any existing code that passes positional parameters. The "*, apply=" syntax in Python indicates that the apply= parameter must be named and cannot be used positionally. This enables it to be used without invalidating any code that uses positional parameters.