Change in osmo-gsm-tester[master]: ms_srs: sum bitrates for all component carrier

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

srs_andre gerrit-no-reply at lists.osmocom.org
Wed May 27 16:53:17 UTC 2020


srs_andre has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-gsm-tester/+/18533 )


Change subject: ms_srs: sum bitrates for all component carrier
......................................................................

ms_srs: sum bitrates for all component carrier

when calculating the dl and ul bitrate, it is required to take the
sum of all active component carriers since they are reported seperately
inside the CSV file

Change-Id: If30ec3f22ce5871f911433e6a6997e9c6e7ca210
---
M src/osmo_gsm_tester/obj/ms_srs.py
1 file changed, 9 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-gsm-tester refs/changes/33/18533/1

diff --git a/src/osmo_gsm_tester/obj/ms_srs.py b/src/osmo_gsm_tester/obj/ms_srs.py
index 389ed6b..409021e 100644
--- a/src/osmo_gsm_tester/obj/ms_srs.py
+++ b/src/osmo_gsm_tester/obj/ms_srs.py
@@ -404,6 +404,15 @@
                 # Sum them up assuming same array dimension
                 sel_data += vec
 
+        # Sum up all component carriers for rate metrics
+        if metric_str.find('brate'):
+            # Determine number of component carriers
+            num_cc = numpy.amax(numpy.array(self.raw_data['cc'])) + 1 # account for zero index
+            tmp_values = sel_data
+            sel_data = numpy.array(tmp_values[::num_cc]) # first carrier, every num_cc'th item in list
+            for cc in range(1, num_cc):
+                sel_data += numpy.array(tmp_values[cc::num_cc]) # all other carriers, start at cc index
+
         if operation == 'avg':
             result = numpy.average(sel_data)
         elif operation == 'sum':

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-gsm-tester/+/18533
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-gsm-tester
Gerrit-Branch: master
Gerrit-Change-Id: If30ec3f22ce5871f911433e6a6997e9c6e7ca210
Gerrit-Change-Number: 18533
Gerrit-PatchSet: 1
Gerrit-Owner: srs_andre <andre at softwareradiosystems.com>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200527/4a0ec194/attachment.htm>


More information about the gerrit-log mailing list