ecell / ecell4_base

An integrated software environment for multi-algorithm, multi-timescale, multi-spatial-representation simulation of various cellular phenomena
https://ecell4.e-cell.org/
GNU General Public License v3.0
62 stars 23 forks source link

A new reserved word in species_attributes #444

Closed kaizu closed 4 years ago

kaizu commented 4 years ago

proceed could allow continuing pattern matching in species_attribute.

with species_attributes():
    A | {'radius': 0.005} | proceed
    B | {'radius': 0.0025} | proceed
    _ | {'D': 1.0}

# Resulting A with {'radius': 0.005, 'D': 1.0} and B with  {'radius': 0.0025, 'D': 1.0}.
kaizu commented 4 years ago

Add tests for "proceed".