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

Refactor img_viewer #161

Merged
merged 13 commits into from
Apr 8, 2020
Merged

Refactor img_viewer #161

merged 13 commits into from
Apr 8, 2020

Conversation

dagewa
Copy link
Member

@dagewa dagewa commented Apr 7, 2020

Changes intended to improve readability and maintainability of this long module.

  • Break long functions apart into smaller units
  • Reduce nested scope levels
  • Remove many try blocks that were obscuring the code paths

There's still much to do in here, but I'd like to request review now and continue later if this is merged. Testing should mainly concentrate on the mask generation as this is where most changes were made.

@dagewa
Copy link
Member Author

dagewa commented Apr 7, 2020

This is intended to address #122

Copy link
Contributor

@luisodls luisodls left a comment

Choose a reason for hiding this comment

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

merging ... for testing by running

@luisodls luisodls merged commit b838276 into master Apr 8, 2020
@dagewa
Copy link
Member Author

dagewa commented Apr 8, 2020

For future reference it isn't necessary to merge into master for testing. You could have just run git checkout refactor-img_viewer to switch to the branch, and git checkout master when you are done.

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.

2 participants