Commit 520744e5 authored by Oriol Tintó-Prims's avatar Oriol Tintó-Prims
Browse files

Bugfix in track_dependecy.py. Was returning alternative procedure instead of the correct one.

parent 22eca70c
......@@ -279,7 +279,7 @@ def find_alternative_procedures(interface, argument_types, argument_dimensions,
except AssertionError:
continue
if check and alternative_procedures:
return alternative_procedures[0]
return alternative_procedures
return None
......@@ -311,8 +311,7 @@ def find_proper_procedure_from_interface(interface, current_block, vault, called
alternative_procedures = find_alternative_procedures(interface, argument_types, argument_dimensions,
keyword_arguments, vault, check, indices_to_ignore)
if check and alternative_procedures:
return alternative_procedures
# Classical match
try:
interface = match_argument_info_and_interface(argument_types, interface,
......@@ -320,6 +319,8 @@ def find_proper_procedure_from_interface(interface, current_block, vault, called
keyword_arguments=keyword_arguments, vault=vault)
return interface
except AssertionError:
if check and alternative_procedures:
return alternative_procedures[0]
if check and not alternative_procedures:
# In case there wasn't a match with the interface, check if through a variable cast it can work
# TODO: Workaround added to deal with the issue of lbc_lnk_multi in bdyice which has tons of parameters and brakes the combinatorial approach.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment