flatironinstitute / SkellySim

Hydrodynamic Cytoskeleton Simulator
https://users.flatironinstitute.org/~rblackwell/py-skellysim
Apache License 2.0
23 stars 2 forks source link

Fiber inheritance refactor #29

Closed cedelmaier closed 1 year ago

cedelmaier commented 1 year ago

Refactoring the FiberContainer class into FiberContainerBase, which is almost an abstract base class, and FiberContainerFinitedifference, which is a specific implementation of the discretization for fibers. The specific implementation of finite difference fibers has been moved into FiberFiniteDifference.

This passes the current tests for SkellySim, however, more are probably needed to make sure nothing broke. Right now, it works with I/O in a way that doesn't break the python interface, although this may change in the near future as we add fiber discretizations and the internal x_ variable is no longer always the spatial location of the node points.