-
-
Notifications
You must be signed in to change notification settings - Fork 472
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
[MRG] LGTM warnings: Variable defined multiple times #1493
[MRG] LGTM warnings: Variable defined multiple times #1493
Conversation
903e024
to
aa3b92a
Compare
Codecov Report
@@ Coverage Diff @@
## master #1493 +/- ##
=======================================
Coverage 97.42% 97.42%
=======================================
Files 66 66
Lines 10183 10183
=======================================
Hits 9921 9921
Misses 262 262 Continue to review full report at Codecov.
|
@@ -210,67 +210,6 @@ def get_table_d1(): | |||
|
|||
|
|||
def write_concepts(concepts, cid_concepts, cid_lists, name_for_cid): | |||
lines = (DOC_LINES + |
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.
Better use this version, as it uses DOC_LINES
for the duplicated part.
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.
Ah, that's right. Fixed now.
aa3b92a
to
4fe7c44
Compare
This assignment to 'write_concepts' is unnecessary as it is redefined here before this value is used. This assignment to 'write_snomed_mapping' is unnecessary as it is redefined here before this value is used. https://lgtm.com/rules/1800095/
4fe7c44
to
44f97c5
Compare
Describe the changes
Fix LGTM warnings:
https://lgtm.com/projects/g/pydicom/pydicom/snapshot/283a1a1994d3d01b4d1e1fb3959c4de35c3240a8/files/source/generate_cids/generate_concept_dicts.py#x9b38b497e036fd51:1
https://lgtm.com/projects/g/pydicom/pydicom/snapshot/283a1a1994d3d01b4d1e1fb3959c4de35c3240a8/files/source/generate_cids/generate_concept_dicts.py#xe1a70f817f3b0bb8:1
I have kept the last definitions of the two functions - the definitions currently used.
Tasks
doc/_build/html/index.html
)