-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* remove boost version constrain in environment.yml * sets ref_effector as optional in model_factory * fixes #120 * fixes uncaught bug in find_IHs * refactored solver * new topo_changed attribute * Bug fixes with solver decorators, history refactoring * reindroduced segment assignement after IH
- Loading branch information
Showing
15 changed files
with
2,186 additions
and
2,112 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ channels: | |
- conda-forge | ||
|
||
dependencies: | ||
- boost-cpp 1.68 | ||
- boost-cpp | ||
- mpfr | ||
- python>=3.6 | ||
- numpy | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
from .intersection import self_intersections | ||
from .solvers import solve_collisions, CollidingBoxes | ||
from .solvers import auto_collisions, CollidingBoxes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import logging | ||
|
||
log = logging.getLogger(__name__) | ||
|
||
|
||
class TopologyChangeError(ValueError): | ||
""" Raised when trying to assign values without | ||
the correct length to an epithelium dataset | ||
""" | ||
|
||
pass | ||
|
||
|
||
def set_pos(eptm, geom, pos): | ||
"""Updates the vertex position of the :class:`Epithelium` object. | ||
Assumes that pos is passed as a 1D array to be reshaped as (eptm.Nv, eptm.dim) | ||
""" | ||
log.debug("set pos") | ||
if eptm.topo_changed: | ||
# reset the switch and interupt what we were doing | ||
eptm.topo_changed = False | ||
raise TopologyChangeError | ||
eptm.vert_df.loc[eptm.active_verts, eptm.coords] = pos.reshape((-1, eptm.dim)) | ||
geom.update_all(eptm) |
Oops, something went wrong.