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

Improve scripted classes readability renaming setPythonSource parameter and associated internal variable #7352

Conversation

jcfr
Copy link
Member

@jcfr jcfr commented Nov 6, 2023

Changes implemented following the comment of @pieper in #7351 (comment).


This more accurately conveys the variable's purpose, avoiding any ambiguity between "python code" and "python script".

  • Improve setPythonSource API readability renaming parameter from newPythonSource to filePath

  • Improve code readability renaming scripted class internal variable from PythonSource to PythonSourceFilePath

Suggested-by: Steve Pieper <pieper@isomics.com>
…able

Follow-up previous commit renaming internal variable from PythonSource
to PythonSourceFilePath. This more accurately conveys the variable's
purpose, avoiding any ambiguity between "python code" and "python script".
Copy link
Member

@pieper pieper left a comment

Choose a reason for hiding this comment

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

Thanks Jc, yes, I think this will be clearer.

Copy link
Member

@Sunderlandkyl Sunderlandkyl left a comment

Choose a reason for hiding this comment

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

Thanks, much clearer!

@jcfr jcfr merged commit 1cbb444 into Slicer:main Nov 7, 2023
6 checks passed
@jcfr jcfr deleted the improve-scripted-class-readability-renaming-arg-and-ivar branch November 7, 2023 01:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants