unmyelinated.attach_intracell_context
- unmyelinated.attach_intracell_context(data: str | dict | intracellular_context | tuple, overwrite: bool = False)
Attach an intracellular stimulation context to this object.
Note
This method either replaces the current intracellular stimulation context or appends new data to it, depending on the overwrite flag.
- Parameters:
data (str | dict | intracellular_context | tuple) –
Data used to create or extend the intracellular stimulation context. - str: typically a path or serialized representation understood by
intracellular_context.
dict: keyword parameters for constructing an intracellular_context.
intracellular_context: an existing context instance to attach or append.
tuple: a structured representation accepted by intracellular_context or its append method.
overwrite (bool, optional) – If True, replace the current self.intra_stim with a new intracellular_context constructed from data. If False (default), append data to the existing self.intra_stim using its append method.