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.
Fixes mistake I introduced in PR #101, raised in issue #102:
cell_arrangement
does not end in"manifold"
cell_arrangement
is a callable function (or"random"
), a warning is only raised if the value ofself.n
would actually change.cell_arrangement
is"diverging_manifold"
or"uniform_manifold"
, a warning is raised even if the value ofn
that was passed happens to match the one calculated internally.