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

Fix all style/type errors in existing code #111

Merged
merged 2 commits into from
Sep 12, 2021
Merged

Fix all style/type errors in existing code #111

merged 2 commits into from
Sep 12, 2021

Conversation

gigony
Copy link
Collaborator

@gigony gigony commented Sep 11, 2021

Fix all errors during ./run check -f.

Fix all type errors in existing code (c65066c)

Fix DICOM attribute handling (b0ad0ee)

Existing implementation did not set attributes in
advance, and their availability are checked by
handing AttributeError.

For the reason, initializing those attributes with
None caused spleen app execution failure.
(All metadata dictionary in Domain class is filled
with None even for non-available attributes)

With this patch, the attribute's availability is checked
by checking if its value is None and getters return
None if attributes are not set (using getattr() method).

@gigony gigony added the architectural story Work related to architecture label Sep 11, 2021
@gigony gigony added this to the v0.1.0 milestone Sep 11, 2021
@gigony gigony requested a review from MMelQin September 11, 2021 02:22
@gigony gigony self-assigned this Sep 11, 2021
Copy link
Collaborator

@MMelQin MMelQin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved with some comments and an enhancement issue.

Existing implementation did not set attributes in
advance, and their availability are checked by
handing AttributeError.

For the reason, initializing those attributes with
None caused spleen app execution failure.
(All metadata dictionary in Domain class is filled
with None even for non-available attributes)

With this patch, the attribute's availability is checked
by checking if its value is None and getters return
None if attributes are not set (using getattr() method).

Signed-off-by: Gigon Bae <[email protected]>
@gigony
Copy link
Collaborator Author

gigony commented Sep 11, 2021

@MMelQin code is updated.

Please check
Fix DICOM attribute handling (b0ad0ee) as prior patchset didn't work with ai spleen segmentation app.

@MMelQin
Copy link
Collaborator

MMelQin commented Sep 12, 2021

Thanks for reviewing the comments and making enhancements.

@MMelQin MMelQin merged commit 8a2aa60 into main Sep 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
architectural story Work related to architecture
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants