From 44c819b76314809b74ec4a1c4cf319a8afa72505 Mon Sep 17 00:00:00 2001
From: Jan David Mol <mol@astron.nl>
Date: Tue, 15 Jun 2021 19:39:04 +0200
Subject: [PATCH] L2SS-244: Fixed name of BST field

---
 devices/clients/StatisticsPacket.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/devices/clients/StatisticsPacket.py b/devices/clients/StatisticsPacket.py
index ef3023a70..3b656f487 100644
--- a/devices/clients/StatisticsPacket.py
+++ b/devices/clients/StatisticsPacket.py
@@ -285,7 +285,7 @@ class BSTPacket(StatisticsPacket):
 
        The following fields are exposed as properties & functions.
 
-       bst_beamlet_index:                 the number of the beamlet for which this packet holds statistics.
+       beamlet_index:                     the number of the beamlet for which this packet holds statistics.
     """
 
     def __init__(self, packet):
@@ -298,12 +298,12 @@ class BSTPacket(StatisticsPacket):
     def unpack_data_id(self):
         super().unpack_data_id()
 
-        self.bst_beamlet_index = get_bit_value(self.data_id, 0, 15)
+        self.beamlet_index = get_bit_value(self.data_id, 0, 15)
 
     def header(self):
         header = super().header()
 
-        header["data_id"]["bst_beamlet_index"] = self.bst_beamlet_index
+        header["data_id"]["beamlet_index"] = self.beamlet_index
 
         return header
 
-- 
GitLab