Skip to content

Correct app_name argument #1151

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 27, 2021
Merged

Correct app_name argument #1151

merged 1 commit into from
Oct 27, 2021

Conversation

samsmith94
Copy link
Contributor

No description provided.

@mergify mergify bot requested a review from hardbyte October 26, 2021 17:22
@codecov
Copy link

codecov bot commented Oct 26, 2021

Codecov Report

Merging #1151 (cc4222c) into develop (beb5727) will not change coverage.
The diff coverage is 0.00%.

@@           Coverage Diff            @@
##           develop    #1151   +/-   ##
========================================
  Coverage    70.48%   70.48%           
========================================
  Files           79       79           
  Lines         7684     7684           
========================================
  Hits          5416     5416           
  Misses        2268     2268           

@felixdivo felixdivo added the bug label Oct 27, 2021
@felixdivo felixdivo added this to the 4.0.0 Release milestone Oct 27, 2021
@hardbyte hardbyte merged commit c9c3048 into hardbyte:develop Oct 27, 2021
hardbyte pushed a commit that referenced this pull request Nov 16, 2021
* Added optional byte highlighting to viewer

Added optional byte highlighting that can be toggled using the shortcut key 'h'

* Some black formatting changes

* Final black formatting

* Fixed viewer bug

Fix for the following error since the introduction of #1151 / #1142

Traceback (most recent call last):
  File "/usr/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/home/pi/python-can/can/viewer.py", line 582, in <module>
    main()
  File "/home/pi/python-can/can/viewer.py", line 573, in main
    bus = _create_bus(parsed_args, **additional_config, app_name="python-can viewer")
  File "/home/pi/python-can/can/logger.py", line 105, in _create_bus
    if parsed_args.app_name:
AttributeError: 'Namespace' object has no attribute 'app_name'

* Update scripts.rst

update viewer documentations

* Update scripts.rst

* Update scripts.rst

arrange keyboard shortcuts into bulleted list

* Update scripts.rst

* Update can/viewer.py

Co-authored-by: Felix Divo <[email protected]>

* Better description.

Add extra length to other lines in the help text so the border lines up.

* Update test_viewer.py

Add test coverage for some of the new byte highlighting functions.

* Use _create_base_argument_parser  in viewer.py

Change standard arguments definition to be defined using logger._create_base_argument_parser instead of manually defining them in this module.

Co-authored-by: Felix Divo <[email protected]>
cowo78 pushed a commit to cowo78/python-can that referenced this pull request Dec 9, 2021
* Added optional byte highlighting to viewer

Added optional byte highlighting that can be toggled using the shortcut key 'h'

* Some black formatting changes

* Final black formatting

* Fixed viewer bug

Fix for the following error since the introduction of hardbyte#1151 / hardbyte#1142

Traceback (most recent call last):
  File "/usr/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/home/pi/python-can/can/viewer.py", line 582, in <module>
    main()
  File "/home/pi/python-can/can/viewer.py", line 573, in main
    bus = _create_bus(parsed_args, **additional_config, app_name="python-can viewer")
  File "/home/pi/python-can/can/logger.py", line 105, in _create_bus
    if parsed_args.app_name:
AttributeError: 'Namespace' object has no attribute 'app_name'

* Update scripts.rst

update viewer documentations

* Update scripts.rst

* Update scripts.rst

arrange keyboard shortcuts into bulleted list

* Update scripts.rst

* Update can/viewer.py

Co-authored-by: Felix Divo <[email protected]>

* Better description.

Add extra length to other lines in the help text so the border lines up.

* Update test_viewer.py

Add test coverage for some of the new byte highlighting functions.

* Use _create_base_argument_parser  in viewer.py

Change standard arguments definition to be defined using logger._create_base_argument_parser instead of manually defining them in this module.

Co-authored-by: Felix Divo <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants