Inputs¶
Module contents¶
Custom Input
and
InputDefinition
subclasses.
These models expand upon django_analyses’
input
module to facilitate integration with the
various analysis interfaces.
Submodules¶
django_mri.models.inputs.nifti_input module¶
-
class
django_mri.models.inputs.nifti_input.
NiftiInput
(id, run, input_ptr, value, definition)¶ Bases:
django_analyses.models.input.input.Input
-
definition
¶ Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parent
is aForwardManyToOneDescriptor
instance.
-
value
¶ Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parent
is aForwardManyToOneDescriptor
instance.
-
django_mri.models.inputs.nifti_input_definition module¶
-
class
django_mri.models.inputs.nifti_input_definition.
NiftiInputDefinition
(id, key, required, description, is_configuration, value_attribute, db_value_preprocessing, run_method_input, inputdefinition_ptr)¶ Bases:
django_analyses.models.input.definitions.input_definition.InputDefinition
-
input_class
¶
-
input_set
¶ Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.children
is aReverseManyToOneDescriptor
instance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()
defined below.
-
django_mri.models.inputs.scan_input module¶
-
class
django_mri.models.inputs.scan_input.
ScanInput
(id, run, input_ptr, value, definition)¶ Bases:
django_analyses.models.input.input.Input
-
definition
¶ Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parent
is aForwardManyToOneDescriptor
instance.
-
value
¶ Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parent
is aForwardManyToOneDescriptor
instance.
-
django_mri.models.inputs.scan_input_definition module¶
-
class
django_mri.models.inputs.scan_input_definition.
ScanInputDefinition
(id, key, required, description, is_configuration, value_attribute, db_value_preprocessing, run_method_input, inputdefinition_ptr)¶ Bases:
django_analyses.models.input.definitions.input_definition.InputDefinition
-
input_class
¶
-
input_set
¶ Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.children
is aReverseManyToOneDescriptor
instance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()
defined below.
-