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

PR: Implement "Monte Carlo" brute force "RGB" colourspace volume computation. #159

Merged
merged 56 commits into from
Jan 25, 2015

Conversation

KelSolaar
Copy link
Member

Closes #158.

…aticity_coordinates" module private attributes.
@coveralls
Copy link

Coverage Status

Coverage increased (+0.08%) when pulling 4ba57edd14c1faced2e8e6b84953b09b8c8b8828 on feature/volume into 70cd9f8 on develop.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.08%) when pulling cc3942484771ef06f181c9898701241c59ea8fca on feature/volume into 70cd9f8 on develop.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.09%) when pulling ffbda5f on feature/volume into 70cd9f8 on develop.

definition.
"""

prng = np.random.RandomState(4)
Copy link
Member

Choose a reason for hiding this comment

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

I don't think the expected behavior (consistency of the random numbers) here is guaranteed across systems/versions. This SO question seem to confirm this too.
I guess as long as it doesn't make problems this is not a big issue, but using a mock random number generator might be the "more correct" solution here to avoid this from breaking in the future.

Copy link
Member Author

Choose a reason for hiding this comment

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

Oh yeah that's true. I haven't looked at the tests code in a while. I will add a reference so that we remember if the tests brake in the future.

Copy link
Member

Choose a reason for hiding this comment

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

The reference also needs to go in colour/volume/tests/tests_rgb.py

Otherwise everything looks fine to me.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, I also added the mention to the definition themselves since the doctests also use np.random.RandomState. We should be covered.

…stests using "np.random.RandomState" definition.
@KelSolaar KelSolaar closed this Jan 25, 2015
@KelSolaar KelSolaar deleted the feature/volume branch January 25, 2015 17:34
@KelSolaar KelSolaar restored the feature/volume branch January 25, 2015 17:35
@KelSolaar KelSolaar reopened this Jan 25, 2015
@KelSolaar KelSolaar merged commit 4732bf3 into develop Jan 25, 2015
@KelSolaar KelSolaar deleted the feature/volume branch January 25, 2015 18:02
@KelSolaar KelSolaar added this to the v0.3.3 milestone Feb 18, 2019
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.

Implement "Monte Carlo" brute force "RGB" colourspace volume computation.
3 participants