Skip to content

iscc.treatment.Surgery

Surgery(start=0, site='primary', **kwargs)

Bases: Treatment

Surgical resection: a ONE-SHOT removal of an entire compartment at a fixed step — not a rate modifier. At (or after) start every cell in site (default "primary") is removed and the simulation continues on the remaining compartment(s).

Implemented through the discrete_event hook (the base Treatment defines it as a no-op), so a run with no Surgery is byte-identical. get_dosage returns 0 always, so Surgery never contributes a death-rate modifier — its only effect is the discrete resection. The genealogy is not pruned, so a 2-band Muller still shows the resected compartment's band cliff to 0 at start.

Parameters:

Name Type Description Default
site (primary, met)

Compartment resected at start (default "primary").

"primary"
start int

Step at (or after) which the one-shot resection fires (default 0).

0
**kwargs

Forwarded to the Treatment base. See Treatment for the shared dosing / scheduling parameters; note Surgery never doses (get_dosage is always 0), so only start is consulted for its schedule.

{}