Skip to content
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

unnecessary print statement removed #942

Merged
merged 3 commits into from
Dec 18, 2023
Merged

unnecessary print statement removed #942

merged 3 commits into from
Dec 18, 2023

Conversation

morbult
Copy link
Contributor

@morbult morbult commented Nov 2, 2023

This print statement seems unnecessary. It originates from 4e2b2d2 but I cant't see the purpose. Could it just be removed?

For me it started to appear just now that I changed my Python environment. Everytime I run Signal.plot I get an error printed (no actual error, just the traceback printed) because the call to gui.plot 4 lines above the print raises an Exception since importing PySide6 fails in my environment. But Signal.plot produces a plot, so no need to show an error I guess.

unnecessary print statement removed
@danielhrisca danielhrisca changed the base branch from master to development November 10, 2023 11:42
@danielhrisca
Copy link
Owner

the style test is failing, you need to run this file to fix the problems https://github.com/danielhrisca/asammdf/blob/development/run_black_and_ruff.bat

@morbult
Copy link
Contributor Author

morbult commented Dec 15, 2023

Sorry for the delay (and using the master branch) but now I added the changes from running the style checks in development/run_black_and_ruff.bat

@morbult
Copy link
Contributor Author

morbult commented Dec 15, 2023

Not really sure how to proceed here. Style checks fail because of

style: commands[1]> ruff check ./src
  src/asammdf/signal.py:8:23: F401 [*] `traceback.format_exc` imported but unused

but ruff doesn't pick up on that when I run locally. I'll remove that import manually.

Regarding the general tests which fails on Ubuntu and Windows in test_PushButton_CreateWindow and test_Plot_ChannelSelection_DragAndDrop_fromPlot_toPlot, I don't see how that is related to my PR.

@morbult
Copy link
Contributor Author

morbult commented Dec 16, 2023

Style should be fixed now

@danielhrisca danielhrisca merged commit 28ba926 into danielhrisca:development Dec 18, 2023
10 of 17 checks passed
@danielhrisca
Copy link
Owner

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants