Skip to content
Snippets Groups Projects
Commit 83280ed5 authored by Stefano Di Frischia's avatar Stefano Di Frischia
Browse files

L2SS-1200: refactor mapping method

parent b973e007
Branches
Tags
1 merge request!540L2SS-1200: add rcu_id and rcu_version
...@@ -1756,13 +1756,10 @@ class AntennaToRecvMapper(object): ...@@ -1756,13 +1756,10 @@ class AntennaToRecvMapper(object):
if len(value_mapping) == 2: if len(value_mapping) == 2:
# Assuming mapper lists are always in the following order: # Assuming mapper lists are always in the following order:
# [Control_Mapping, Power_Mapping] # [Control_Mapping, Power_Mapping]
control_mapping = value_mapping[0] [control_mapping, power_mapping] = value_mapping
power_mapping = value_mapping[1]
for idx, mapping in enumerate(control_mapping): for idx, mapping in enumerate(control_mapping):
recv_control = mapping[0] [recv_control, rcu_control] = mapping
rcu_control = mapping[1] [recv_power, rcu_power] = power_mapping[idx]
recv_power = power_mapping[idx][0]
rcu_power = power_mapping[idx][1]
if recv_control > 0: if recv_control > 0:
mapped_values[idx][0] = recv_results[recv_control - 1][rcu_control] mapped_values[idx][0] = recv_results[recv_control - 1][rcu_control]
if recv_power > 0: if recv_power > 0:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment