sorgerlab/pysb — Issue #25: pysb.bng._parse_species fails to parse compartment expressions
Author: jmuhlich
Created: 2012-03-08 03:53:23+00:00
State: open
Labels: bug

>>> from test import model
>>> from pysb.bng import generate_equations
>>> generate_equations(model)
...
File "pysb/pysb/bng.py", line 105, in _parse_species
compartment_name, monomer_name, site_strings = re.match(r'(?:@(\w+)::)?(\w+)\(([^)]*)\)', ms).groups()
AttributeError: 'NoneType' object has no attribute 'groups'