INNER CODE UNIT · Python
lock
pdpipe/pdpipe · src/pdpipe/core.py:221
def lock(self) -> None:
"""Lock this application context for changes."""
self._locked = True
def fit_context(self) -> "PdpApplicationContext":
"""Return a locked PdpApplicationContext object of a previous fit.
Returns
-------
PdpApplicationContext
A locked PdpApplicationContext object of a previous fit.
"""
return self._fit_context
def is_locked(self) -> bool:
"""Return True if this application context is locked; False otherwise.