-
-
Notifications
You must be signed in to change notification settings - Fork 226
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
Activate Pylint Rules #976
Activate Pylint Rules #976
Conversation
Those comparison are to check is the value is not a number NaN |
Ah, i didn't know that. Would you mind if i replace it with np.isnan for readability? |
6a97ec7
to
ae1f1a6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please address the open topics
src/asammdf/blocks/mdf_v4.py
Outdated
@@ -6593,7 +6590,7 @@ def get( | |||
if name is None: | |||
name = channel.name | |||
|
|||
unit = conversion and conversion.unit or channel.unit | |||
unit = conversion.unit if conversion else channel.unit |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not right: if the conversion unit is empty then we need to check the channel unit as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
True. I just found out, that the preview rule, which flagged this, will be removed soon
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
@@ -174,7 +174,7 @@ def search_text_changed(self): | |||
(group_index, channel_index): { | |||
"names": [ch.name], | |||
"comment": extract_xml_comment(ch.comment).strip(), | |||
"unit": ch.conversion and ch.conversion.unit or ch.unit, | |||
"unit": ch.conversion.unit if ch.conversion else ch.unit, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same as above, also applies to the following commit diffs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
thank you! |
Can you check these?
asammdf/src/asammdf/gui/widgets/plot.py
Line 136 in 43852ff
asammdf/src/asammdf/gui/widgets/plot.py
Line 144 in 43852ff
asammdf/src/asammdf/gui/widgets/plot.py
Line 4460 in 43852ff
asammdf/src/asammdf/gui/widgets/plot.py
Line 4462 in 43852ff
asammdf/src/asammdf/gui/widgets/plot.py
Line 4503 in 43852ff
asammdf/src/asammdf/gui/widgets/plot.py
Line 4505 in 43852ff
asammdf/src/asammdf/gui/widgets/tabular_base.py
Line 1382 in 43852ff