diff options
author | Seth Hitefield <sdhitefield@gmail.com> | 2015-08-28 13:55:29 -0400 |
---|---|---|
committer | Sebastian Koslowski <koslowski@kit.edu> | 2015-09-26 14:28:33 +0200 |
commit | aaf5aa760a6876d7f5b878c563e002da19157cdb (patch) | |
tree | ce070954fdc6f683a98f78da6d60337ce304e00e /grc/python/Constants.py | |
parent | 222e0003f9797a1b92d64855bd2b93f0d9099f93 (diff) |
grc: Flowgraph complexity. Shows under options block when enabled.
Diffstat (limited to 'grc/python/Constants.py')
-rw-r--r-- | grc/python/Constants.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/grc/python/Constants.py b/grc/python/Constants.py index 02be22a441..b7a370cad7 100644 --- a/grc/python/Constants.py +++ b/grc/python/Constants.py @@ -19,6 +19,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA import os from os.path import expanduser +import numpy import stat from gnuradio import gr @@ -53,6 +54,16 @@ FLOW_GRAPH_TEMPLATE = os.path.join(DATA_DIR, 'flow_graph.tmpl') BLOCK_DTD = os.path.join(DATA_DIR, 'block.dtd') DEFAULT_FLOW_GRAPH = os.path.join(DATA_DIR, 'default_flow_graph.grc') +#define types, native python + numpy +VECTOR_TYPES = (tuple, list, set, numpy.ndarray) +COMPLEX_TYPES = [complex, numpy.complex, numpy.complex64, numpy.complex128] +REAL_TYPES = [float, numpy.float, numpy.float32, numpy.float64] +INT_TYPES = [int, long, numpy.int, numpy.int8, numpy.int16, numpy.int32, numpy.uint64, + numpy.uint, numpy.uint8, numpy.uint16, numpy.uint32, numpy.uint64] +#cast to tuple for isinstance, concat subtypes +COMPLEX_TYPES = tuple(COMPLEX_TYPES + REAL_TYPES + INT_TYPES) +REAL_TYPES = tuple(REAL_TYPES + INT_TYPES) +INT_TYPES = tuple(INT_TYPES) # Updating colors. Using the standard color pallette from: # http://www.google.com/design/spec/style/color.html#color-color-palette |