Changes calculation of 5G handover.

This commit is contained in:
2023-04-28 08:39:32 +02:00
parent be15a51017
commit 5dcb2450b3

View File

@@ -136,7 +136,7 @@ if __name__ == "__main__":
# Plot vertical lines
first = True
lte_handovers = transmission_df["Cell_ID"].diff().dropna()
lte_handovers = transmission_df["Cell_ID"].dropna().diff()
for index, value in lte_handovers.items():
if value > 0:
if first:
@@ -146,7 +146,7 @@ if __name__ == "__main__":
ax00.axvline(index, ymin=0, ymax=1, color="skyblue")
first = True
nr_handovers = transmission_df["NR5G_Cell_ID"].diff().dropna()
nr_handovers = transmission_df["NR5G_Cell_ID"].dropna().diff()
for index, value in nr_handovers.items():
if value > 0:
if first: