| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
|
|
| |
This is an update for PR #2424. The extra debug output from GRC was
being generated by another logger instance in grc/core/platform that
did not respect the command line arguments.
This removes the extra logger and sets the logger level in main to
whatever is requested from the command line. See grc/main.py:43 for more
detail.
|
|
|
|
|
|
|
|
| |
This fixes flowgraph generation when using connection templates with
multiple lines. Previously it would only indent the first line and
subsequent lines would have no indentation, causing a python error.
Signed-off-by: Mike Walters <mike@flomp.net>
|
|
|
|
|
|
|
|
| |
update_bus_logic() is called when disabling a bus, it doesn't check if
it's been previously enabled. This causes it to restore port.hidden with
a None which ultimately is converted to False. So it never hides the
message ports.
Also, filter message ports from buses.
|
|
|
|
| |
Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
|
| |
|
|
|
|
|
|
|
| |
* Fix various typos
Found via `codespell v2.0.dev`
`codespell -q 3 -L ans,fo,hist,inout,ist,ith,nd,sinc,uint -S ./volk`
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
os.path.sep is unreliable in Windows ("\" in official python, "/" in MSYS2)
With this change os.pathsep is used instead to get the path separator:
":" (*nix) or ";" (Windows)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
All of the removed `from __future__ import` were needed in older
versions of Python (mostly 2.5.x and below) but later became mandatory
in most versions of Python 3 hence are not necessary anymore.
More specifically, according to __future__.py[1]:
- unicode_literals is part of Python since versions 2.6.0 and 3.0.0;
- print_function is part of Python since versions 2.6.0 and 3.0.0;
- absolute_import is part of Python since versions 2.5.0 and 3.0.0;
- division is part of Python since versions 2.2.0 and 3.0.0;
Get rid of those unnecessary imports to slightly clean up the codebase.
[1] https://github.com/python/cpython/blob/master/Lib/__future__.py
|
|
|
|
|
|
|
|
| |
This commit adds a new parameter type to GNURadio Companion that allows
you to select directories using a gui. This functionality is
very similar to that of the previously available "file_open" and
"file_save" parameter types, and mainly differs by calling GTKs file
chooser with FileChooserAction.SELECT_FOLDER.
|
|
|
|
|
|
| |
GRC used `gr.io_signaturev` to generate hierarchical block signatures.
This was only a SWIG alias to `gr.io_signature.makev`. Now, the
generator calls `gr.io_signature.makev` directly.
|
| |
|
| |
|
|
|
|
| |
amongst other things, allows assert statements to use items within namespaces the blocks import
|
|
|
|
|
|
|
|
| |
GRC reads paths from various sources, including the GRC_BLOCKS_PATH
environment variable. It can happen that paths appear twice in the list,
causing warnings about findings blocks twice.
This deduplicates the paths in the config object.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
The underlying issue is that the built in blocks all end up getting the
'cpp' flag, which is not valid for the embedded python blocks
To fix this some work needs to be done in the "Flags" class, as all the
flags added to classes that get accumulated in the build_ins list get
added to all the classes
See register_build_in
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Added support for C++ std::map<> from python dict
- Fixed default initialization of parameters in main()
- Added missing include for realtime scheduling
- Added default CMake option for std=c++11 as this is required for
gnuradio >= 3.8
- Fixed mako template to add initialization to parameter declarations in
main()
- Fixed C++ constructor initialization list generation
- Fixed parameter type determination when an lvalue is used in an rvalue
expression
- Improved determining type of C++ variables
- Added C++ support for gr_complex parameters
- Fixed C++ generation of nested container types
- Added C++ support for virtual source/sink
- Moved cmake CMAKE_CXX_STANDARD 11 option from options.yml to
CMakeLists.txt.mako
- Fixed qtqui_sink to allow multiple instances
- Revised virtual connection processing in cpp_top_block.py
Reviewed-By: Håkon Vagsether <hauk142@gmail.com>
|
| |
|
|
|
|
|
|
|
|
|
| |
The import of eng_notation was removed in 678a7c2ad, and so float parameter
blocks were leading to flowgraph compilation error.
Since eng_notation is still imported in the generated python script, we can
put the call to num_to_str in the generated script, instead of calling it
during script generation.
|
|
|
|
|
|
|
|
|
|
|
| |
This feature adds the ability to insert arbitrary code into the python
flowgraph. It gives a little more low-level flexibility for quickly
modifying flowgraphs and adding custom bits of code rather than having
to go and edit the generated py file
One example is synchronizing multiple USRP objects - sometimes you want
different sync than what is offered in the multi-usrp object, so you can
put a bit of code in the snippet block to do the custom synchronization
|
|
|
|
| |
Caused by switch from Python 2 to 3: https://docs.python.org/3/whatsnew/3.0.html#ordering-comparisons
|
| |
|
|
|
|
|
|
| |
Adds an additional option to the flowgraph's "Generate Options" in GRC
called "Catch block exceptions", under the Advanced tab. This parameter
controls the catch_exceptions flag passed to top block instantiation.
|
|
|
|
|
|
|
|
|
|
| |
- Update SWIG settings
- Update CMake
- Remove Python2 references
Note: This does not touch a lot of Python files, and many Python files
will still work with Python 2 after this commit. However, we won't allow
that in our CMake, and the support will be gone too.
|
|
|
|
|
|
|
|
|
|
|
|
| |
The block_id parameter for the block being probed was being validated as
a block_id. But there is a use case where this can be blank to call a
function on the flowgraph object itself.
Changed the block_id dtype to "name" just like function_name. Could
have just changed it to raw and done no validation, but that doesn't get
displayed very nicely in the grc block
Fixes #2966
|
|
|
|
|
| |
add method to the Messages module to print flowgraph
errors in a verbose format
|
|
|
|
|
|
| |
Wrote function in Platform to use get_error_messages()
member function from parent class and report these upon
a flowgraph loading exception.
|
| |
|
|
|
|
|
|
| |
It is necessary to have access to the show_id flag for a python module
in grc to be able to access it elsewhere. This adds the flag when the
module object is created in the block library.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Was getting lots of evaluation error prints when using gr-digital
examples because the nested variables were not updated until rewrite()
and evaluate were called over and over
Seems to fix the issue to update the flowgraph namespace variable after
each variable block is evaluated
I believe this also alleviates a previous issue (#2634) where rewrite
had to be called twice when data was being imported
Fixes #2634
|
|
|
|
|
|
|
| |
committing the fix suggested by @haakov
Make gui_hint collisions show up as validation errors
Fixes #2287
|
|
|
|
| |
Signed-off-by: wcampbell <wcampbell1995@gmail.com>
|
| |
|
|
|
|
| |
cpu affinity, max/min out buf size
|
|
|
|
|
|
| |
Moves the yaml file load inside the try block
Fixes #2668
|
|
|
|
|
| |
In other words, use "-DKEY1=VAL1 -DKEY2=VAL2" instead of "KEY1=VAL1;
KEY2=VAL2"
|
| |
|
| |
|
| |
|
|
|
| |
variable blocks without a param value need to be updated otherwise the variable_block.namespace is wrong
|
|
|
|
| |
Couple of leftover todos from the copy of busports code from 3.7
|
|
|
|
| |
yaml.load() has been deprecated: https://msg.pyyaml.org/load
|