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

ENH: Remove unused default process count parameter #530

Conversation

jhlegarreta
Copy link
Contributor

Remove unused default process count parameter from the process count
validation method.

Take advantage of the commit to:

  • Document the method behavior if the process count is not contained in
    the arguments.
  • Fix the returned value docstring.
  • Fix the logged process count in script.

@jhlegarreta jhlegarreta force-pushed the RemoveProcessCountValidationMethodUnusedDefault branch from 943f03b to e35494a Compare December 13, 2021 18:35
Copy link
Contributor

@CHrlS98 CHrlS98 left a comment

Choose a reason for hiding this comment

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

Should we also make this change?

scilpy/io/utils.py Outdated Show resolved Hide resolved
@jhlegarreta jhlegarreta force-pushed the RemoveProcessCountValidationMethodUnusedDefault branch from e35494a to 8fa6548 Compare December 13, 2021 19:40
@arnaudbore arnaudbore requested a review from CHrlS98 December 15, 2021 19:31
Copy link
Contributor

@CHrlS98 CHrlS98 left a comment

Choose a reason for hiding this comment

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

One last comment. Otherwise, all looks good.

scilpy/io/utils.py Outdated Show resolved Hide resolved
Remove unused default process count parameter from the process count
validation method.

Take advantage of the commit to:
- Change the "less than or equal to" 0 condition on the value to be
returned to a "strictly less than": if a value of 0 is provided in the
arguments, then the returned value corresponds to the available core
count, and thus the value will never be less than 1.
- Improve the method documentation: state clearly the range of valid
values and document the method behavior if the process count is not
contained in the arguments.
- Fix the returned value docstring.
- Fix the logged process count in script.
@jhlegarreta jhlegarreta force-pushed the RemoveProcessCountValidationMethodUnusedDefault branch from 8fa6548 to e733d7d Compare December 15, 2021 21:20
Copy link
Contributor

@CHrlS98 CHrlS98 left a comment

Choose a reason for hiding this comment

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

Cool, I like the improved docstring!

@arnaudbore arnaudbore merged commit 0e6335c into scilus:master Dec 20, 2021
@jhlegarreta jhlegarreta deleted the RemoveProcessCountValidationMethodUnusedDefault branch December 20, 2021 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants