Deep learning for NeuroImaging in Python.
Note
This page is a reference documentation. It only explains the class signature, and not how to use it. Please refer to the gallery for the big picture.
- class nidl.utils.validation._AvailableIfDescriptor(fn, check, attribute_name)[source]ΒΆ
Implements a conditional property using the descriptor protocol.
Using this class to create a decorator will raise an
AttributeError
if check(self) returns a falsey value. Note that if check raises an error this will also result in hasattr returning false.See https://docs.python.org/3/howto/descriptor.html for an explanation of descriptors.
Follow us