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

portrait plot bug fix in python 3 env #582

Merged
merged 5 commits into from
Oct 10, 2018

Conversation

lee1043
Copy link
Contributor

@lee1043 lee1043 commented Oct 9, 2018

#581

make sure integer number used for reshape array, where python 3 returns integer/integer = float

@lee1043 lee1043 self-assigned this Oct 9, 2018
@lee1043 lee1043 added the bug label Oct 9, 2018
Copy link
Contributor

@doutriaux1 doutriaux1 left a comment

Choose a reason for hiding this comment

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

@lee1043 beside my comment, everything looks good, you could add a test that verify that the error is indeed fixed (a small portrait plots with len(cols) / 3 being odd or something, but it's not really needed here. Also I pushed a fix for flake8, it had become a bit more strict and issues more warnings.

@@ -1939,7 +1939,7 @@ def set_colormap(self):
92.9412,
100)

cols = MV2.reshape(cols, (len(cols) / 3, 3))
cols = MV2.reshape(cols, (int(len(cols) / 3), 3))
Copy link
Contributor

Choose a reason for hiding this comment

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

@lee1043 we should probably use:

        cols = MV2.reshape(cols, (len(cols) // 3, 3))

But I will leave it up to you.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@doutriaux1 like the idea. Thanks!

@doutriaux1
Copy link
Contributor

@lee1043 feel free to merge if tests pass.

@coveralls
Copy link

coveralls commented Oct 9, 2018

Pull Request Test Coverage Report for Build 599

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 35.328%

Totals Coverage Status
Change from base Build 560: 0.0%
Covered Lines: 909
Relevant Lines: 2573

💛 - Coveralls

@lee1043
Copy link
Contributor Author

lee1043 commented Oct 9, 2018

@doutriaux1 hmm... it says travis-ci fails, not sure what to do. May I hand over this to you?

@lee1043
Copy link
Contributor Author

lee1043 commented Oct 9, 2018

@doutriaux1 travis still fails....

@doutriaux1
Copy link
Contributor

@lee1043 yes, it was expected, but output should be more readable now.

@doutriaux1 doutriaux1 merged commit 822f5f8 into master Oct 10, 2018
@doutriaux1 doutriaux1 deleted the 581_ljw_portraitPlot_python3 branch October 10, 2018 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants