Skip to content

Commit

Permalink
Fix the enzsub function based on the tests + add test lines in legacy…
Browse files Browse the repository at this point in the history
…_server
  • Loading branch information
Balazs Bohar committed Feb 4, 2025
1 parent ffec2bd commit 007b1be
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions omnipath_server/service/_legacy.py
Original file line number Diff line number Diff line change
Expand Up @@ -2056,8 +2056,6 @@ def enzsub(
(enzyme = 'Q2' OR enzyme_genesymbol = 'Q2'))
"""

sides = ('enzyme', 'substrate')

args = locals()
args = self._clean_args(args)
args = self._array_args(args, 'enzsub')
Expand All @@ -2071,7 +2069,6 @@ def enzsub(
)



def _where_partners(self, query_type, args):
"""
Function to deal with filtering interactions by partners.
Expand All @@ -2084,7 +2081,7 @@ def _where_partners(self, query_type, args):

for side in sides:

args[side] = args[side] or args['partners']
args[side] = args.get(side, None) or args.get('partners', None)

columns = self._columns(query_type)

Expand Down

0 comments on commit 007b1be

Please sign in to comment.