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

The params attributes are initialized to the type integer #1431

Merged
merged 6 commits into from
Aug 2, 2017

Conversation

peristeri
Copy link
Contributor

Description of the Change

The attributes in params are used as indexes to navigate through
multidimensional arrays. In addition, removed parameter declarations using []
and various other syntax corrections

Fixes #1427

The attributes in params are used as indexes to navigate through
multidimensional arrays. In addition, removed parameter declarations using `[]`
and various other syntax corrections

Fixes #1427
@peristeri peristeri added bug category: fixes an error in the code card:TO_REVIEW priority:HIGH sct_label_vertebrae context: labels Aug 1, 2017
@peristeri peristeri added this to the Release v3.0.7 milestone Aug 1, 2017
@@ -59,7 +59,7 @@ def update(self, param_user):
if len(object) < 2:
sct.printv('ERROR: Wrong usage.', 1, type='error')
obj = object.split('=')
setattr(self, obj[0], float(obj[1]))
setattr(self, obj[0], int(obj[1]))
Copy link
Member

Choose a reason for hiding this comment

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

that doesn't work: gaussian_std needs to be float

@@ -139,7 +142,7 @@ def get_parser():
"size_AP [mm]: AP window size for disc search. Default=" + str(param_default.size_AP) + ".\n"
"size_RL [mm]: RL window size for disc search. Default=" + str(param_default.size_RL) + ".\n"
"size_IS [mm]: IS window size for disc search. Default=" + str(param_default.size_IS) + ".\n"
"gaussian_std [mm]: STD of the Gaussian function, centered at the most rostral point of the image, "
"gaussian_std: STD of the Gaussian function, centered at the most rostral point of the image, "
Copy link
Member

Choose a reason for hiding this comment

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

why did you remove [mm]? Please keep it as the unit is [mm]. Users need to know that.

Copy link
Member

@jcohenadad jcohenadad left a comment

Choose a reason for hiding this comment

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

thanks!

@peristeri peristeri merged commit 86d98b8 into master Aug 2, 2017
@peristeri peristeri deleted the fix-params branch August 2, 2017 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug category: fixes an error in the code priority:HIGH sct_label_vertebrae context:
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants