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] Access matched location name in rule matched propensities #28

Closed Jamesflynn1 closed 2 months ago

Jamesflynn1 commented 2 months ago

Is your feature request related to a problem? Please describe. I want to be able to use location constants based on which locations where matched in a subrule. For example, I want to be able to access the distance between the two locations matched in a two location slot subrule.

Describe the solution you'd like In RuleMatching.py, replace slot_1 with the Location Name of slot_1. Additionally, replace the location distance with the name rather than the index of that location. Maybe introduce logic to see if constants exist in RuleMatching.py

Additional context This feature will enable full spatial features.

Jamesflynn1 commented 2 months ago

The replacement is performed on rule creation and creates different propensity functions for each index set.

Further work could look at making this more space efficient.