Jamesflynn1 / pyRBM

A Python framework to build and simulate stochastic rules-based models.
GNU General Public License v3.0
3 stars 0 forks source link

[FEATURE] Split Location class into Compartment and create Location subclass #29

Closed Jamesflynn1 closed 2 months ago

Jamesflynn1 commented 2 months ago

Is your feature request related to a problem? Please describe. I want the terminology to match the literature terminology as closely as possible to reduce the learning curve of pyRBM. Additionally, for non-spatial models, distance is pointless, and users shouldn't have to define a distance function for such models.

Describe the solution you'd like All references to Location are changed to Compartment unless in reference to the new Location subclass. Split core Compartment functionality into new class, make Location inherit Compartment and only generate distance between Location's.

Jamesflynn1 commented 2 months ago

Added the restriction of unique compartment names too.