[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] [gnuradio] 14/17: float(version) doesn't work with "1.
From: |
git |
Subject: |
[Commit-gnuradio] [gnuradio] 14/17: float(version) doesn't work with "1.9.0"; fixed nx version checking |
Date: |
Thu, 14 Apr 2016 20:43:05 +0000 (UTC) |
This is an automated email from the git hooks/post-receive script.
jcorgan pushed a commit to branch maint
in repository gnuradio.
commit 70c947d96d4fe58366e60ace0e75e5be5370a98b
Author: Marcus Müller <address@hidden>
Date: Wed Apr 13 18:19:46 2016 +0200
float(version) doesn't work with "1.9.0"; fixed nx version checking
---
gnuradio-runtime/python/gnuradio/ctrlport/gr-perf-monitorx | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/gnuradio-runtime/python/gnuradio/ctrlport/gr-perf-monitorx
b/gnuradio-runtime/python/gnuradio/ctrlport/gr-perf-monitorx
index cc9f76f..cf67584 100644
--- a/gnuradio-runtime/python/gnuradio/ctrlport/gr-perf-monitorx
+++ b/gnuradio-runtime/python/gnuradio/ctrlport/gr-perf-monitorx
@@ -1,6 +1,6 @@
#!/usr/bin/env python
#
-# Copyright 2012-2013 Free Software Foundation, Inc.
+# Copyright 2012-2016 Free Software Foundation, Inc.
#
# This file is part of GNU Radio
#
@@ -53,7 +53,16 @@ import itertools
from gnuradio import gr, ctrlport
from gnuradio.ctrlport.GrDataPlotter import *
-if float(nx.__version__) >= 1.11:
+#check for networkx version
+_critical_version = (1,11)
+_atleast_critical = False
+
+for act,ref in zip(nx.__version__.split("."), _critical_version):
+ _atleast_critical = (act >= ref)
+ if not act == ref:
+ break
+
+if _atleast_critical:
from networkx.drawing.nx_agraph import graphviz_layout
else:
graphviz_layout = nx.graphviz_layout
- [Commit-gnuradio] [gnuradio] branch maint updated (b7da9af -> bc60fdb), git, 2016/04/14
- [Commit-gnuradio] [gnuradio] 05/17: gr-fec: LDPC python function - making a better docstring, git, 2016/04/14
- [Commit-gnuradio] [gnuradio] 11/17: gr-fec, LDPC: correct the name of the python function called, git, 2016/04/14
- [Commit-gnuradio] [gnuradio] 08/17: gr-fec: free memory for G matrix at end of constructor, git, 2016/04/14
- [Commit-gnuradio] [gnuradio] 12/17: gr-fec, LDPC: use mult_matrices_mod2 function, git, 2016/04/14
- [Commit-gnuradio] [gnuradio] 04/17: gr-fec: LDPC python function - addressing an attribute error, git, 2016/04/14
- [Commit-gnuradio] [gnuradio] 06/17: gr-fec: LDPC python - adding a handy function, git, 2016/04/14
- [Commit-gnuradio] [gnuradio] 09/17: gr-fec: free memory for info word in LDPC gen mtrx encoder, git, 2016/04/14
- [Commit-gnuradio] [gnuradio] 10/17: gr-fec: free memory used for the LDPC H matrix in the destructor, git, 2016/04/14
- [Commit-gnuradio] [gnuradio] 02/17: gr-fec: LDPC python function - addressing an "undefined" error, git, 2016/04/14
- [Commit-gnuradio] [gnuradio] 14/17: float(version) doesn't work with "1.9.0"; fixed nx version checking,
git <=
- [Commit-gnuradio] [gnuradio] 17/17: Merge remote-tracking branch 'tracierenea/fec_ldpc_H_fix' into maint, git, 2016/04/14
- [Commit-gnuradio] [gnuradio] 01/17: gr-fec: Fix memory allocation issue during encoding., git, 2016/04/14
- [Commit-gnuradio] [gnuradio] 13/17: grc: update year in copyright, git, 2016/04/14
- [Commit-gnuradio] [gnuradio] 16/17: Merge remote-tracking branch 'mmueller/fix_networkx_version_checking' into maint, git, 2016/04/14
- [Commit-gnuradio] [gnuradio] 03/17: gr-fec: LPDC python function - addressing an "undefined" error, git, 2016/04/14
- [Commit-gnuradio] [gnuradio] 15/17: Merge remote-tracking branch 'gnuradio-wg-grc/maint_grcwg' into maint, git, 2016/04/14
- [Commit-gnuradio] [gnuradio] 07/17: gr-fec: Removing 2 bad matrices from the LDPC alist file collection, git, 2016/04/14