Change in osmo-gsm-tester[master]: ms_srs: fix numpy import

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 6 12:24:58 UTC 2020


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


Change subject: ms_srs: fix numpy import
......................................................................

ms_srs: fix numpy import

numpy is used in a few places in the code so it makes sense
to import it for the whole module

Change-Id: Iea66e623e1c980a62d691e20dacb00df99fdd78f
---
M src/osmo_gsm_tester/obj/ms_srs.py
1 file changed, 1 insertion(+), 1 deletion(-)



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

diff --git a/src/osmo_gsm_tester/obj/ms_srs.py b/src/osmo_gsm_tester/obj/ms_srs.py
index dc12351..ab5042e 100644
--- a/src/osmo_gsm_tester/obj/ms_srs.py
+++ b/src/osmo_gsm_tester/obj/ms_srs.py
@@ -19,6 +19,7 @@
 
 import os
 import pprint
+import numpy
 
 from ..core import log, util, config, template, process, remote
 from ..core import schema
@@ -351,7 +352,6 @@
         super().__init__(log.C_RUN, 'srsue_metrics')
         self.raw_data = None
         self.metrics_file = metrics_file
-        import numpy
         # read CSV, guessing data type with first row being the legend
         try:
             self.raw_data = numpy.genfromtxt(self.metrics_file, names=True, delimiter=';', dtype=None)

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-gsm-tester/+/18069
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: Iea66e623e1c980a62d691e20dacb00df99fdd78f
Gerrit-Change-Number: 18069
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/20200506/4f91d3d8/attachment.htm>


More information about the gerrit-log mailing list