Change in osmo-gsm-tester[master]: srslte_common: add get_num_phy_errors() method

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/.

pespin gerrit-no-reply at lists.osmocom.org
Tue Oct 13 10:25:35 UTC 2020


pespin has submitted this change. ( https://gerrit.osmocom.org/c/osmo-gsm-tester/+/20610 )

Change subject: srslte_common: add get_num_phy_errors() method
......................................................................

srslte_common: add get_num_phy_errors() method

the get_num_phy_errors() uses the external KPI analyzer module
to calculate the number of PHY layers errors in a vector of log metrics

Change-Id: I0c8de87e7f83f986e288585640ce56847959c497
---
M src/osmo_gsm_tester/obj/srslte_common.py
1 file changed, 11 insertions(+), 0 deletions(-)

Approvals:
  pespin: Looks good to me, approved; Verified



diff --git a/src/osmo_gsm_tester/obj/srslte_common.py b/src/osmo_gsm_tester/obj/srslte_common.py
index 9619fb6..c4d8e62 100644
--- a/src/osmo_gsm_tester/obj/srslte_common.py
+++ b/src/osmo_gsm_tester/obj/srslte_common.py
@@ -87,3 +87,14 @@
           self.kpis = {}
 
       return self.kpis
+
+   def get_num_phy_errors(self, kpi):
+       """ Use KPI analyzer to calculate the number PHY errors for either UE or eNB components from parsed KPI vector """
+       try:
+           # Same as above, make sure the srsLTE scripts folder is included in your PYTHONPATH env variable
+           from kpi_analyzer import kpi_analyzer
+           analyzer = kpi_analyzer(self.name())
+           return analyzer.get_num_phy_errors(kpi)
+       except ImportError:
+           self.log("Can't load KPI analyzer module.")
+           return 0
\ No newline at end of file

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-gsm-tester/+/20610
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: I0c8de87e7f83f986e288585640ce56847959c497
Gerrit-Change-Number: 20610
Gerrit-PatchSet: 1
Gerrit-Owner: srs_andre <andre at softwareradiosystems.com>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20201013/f757dfd2/attachment.htm>


More information about the gerrit-log mailing list