-
Notifications
You must be signed in to change notification settings - Fork 17
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 some typing and docstring issues #223
Conversation
scico/examples.py
Outdated
""" | ||
|
||
if center == None: | ||
if center is None: | ||
center = [img_dim // 2 for img_dim in img_shape] |
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.
Is the intent here really to only support integer center values? If not, this should be ... img_dim / 2 ...
.
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.
Yes, I originally thought of only integer values. But making it floats (/ instead of //) would be more general and should work.
scico/examples.py
Outdated
img_shape: Shape of the phantom to be created. | ||
radius_list: List of radii of the rings in the phantom. | ||
val_list: List of intensity values of the rings in the phantom. | ||
center: Tuple of center pixel ids. If ``None``, this is set to |
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.
What are "ids" in "center pixel ids"? Perhaps this was intended to be "center pixel indices"?
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.
Yes, by ids I meant indices.
Codecov Report
@@ Coverage Diff @@
## main #223 +/- ##
=======================================
Coverage 92.42% 92.42%
=======================================
Files 49 49
Lines 3431 3431
=======================================
Hits 3171 3171
Misses 260 260
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
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.
Looks good to me.
Fix some typing and docstring issues.