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

Fixes spurious warning raised when initializing VectorCells objects. #103

Merged
merged 2 commits into from
Feb 2, 2024

Conversation

colleenjg
Copy link
Contributor

Fixes mistake I introduced in PR #101, raised in issue #102:

  • Reintroduces an equality check in the process of raising a warning if value of self.n was passed, but will be reset internally in a VectorCells class.
  • Equality is checked if cell_arrangement does not end in "manifold"
  • As a result, if cell_arrangement is a callable function (or "random"), a warning is only raised if the value of self.n would actually change.
  • If cell_arrangement is "diverging_manifold" or "uniform_manifold", a warning is raised even if the value of n that was passed happens to match the one calculated internally.

colleenjg and others added 2 commits February 2, 2024 11:03
…atInABox-Lab#102.

Reintroduced an equality check for raising a warning if value of self.n was passed, but is reset internally in a VectorCells class.
Equality is checked if `cell_arrangement` does not end in `"manifold"` (i.e., `"diverging_manifold"` or `"uniform_manifold"`.
If `cell_arrangement` is `"random"` or a callable function, a warning is only raised if the value of self.n would actually change.
@TomGeorge1234
Copy link
Collaborator

Looks good to me

@TomGeorge1234 TomGeorge1234 merged commit a25a048 into RatInABox-Lab:main Feb 2, 2024
3 checks passed
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