clabe.aind.data_schema ¶
AindDataSchemaDataMapper ¶
Bases: DataMapper[_TAdsObject], ABC
Abstract base class for mapping data to aind-data-schema objects.
Provides the foundation for mapping experimental data to AIND data schema formats, ensuring consistent structure and metadata handling.
session_name
abstractmethod
property
¶
session_name: str
Returns the session name associated with the data.
Returns:
| Type | Description |
|---|---|
str
|
The name of the session |
mapped
property
¶
Retrieves the mapped data object.
Returns:
| Type | Description |
|---|---|
TMapTo
|
The mapped data object |
Raises:
| Type | Description |
|---|---|
ValueError
|
If the data has not been mapped yet |
run ¶
Executes the data mapping process.
Returns:
| Type | Description |
|---|---|
TMapTo
|
The mapped data object |
map
abstractmethod
¶
AindDataSchemaSessionDataMapper ¶
Bases: AindDataSchemaDataMapper[Session], ABC
Abstract base class for mapping session data to aind-data-schema Session objects.
Specializes the generic data mapper for session-specific data, providing the interface for converting experimental session data to the AIND data schema format.
mapped
property
¶
Retrieves the mapped data object.
Returns:
| Type | Description |
|---|---|
TMapTo
|
The mapped data object |
Raises:
| Type | Description |
|---|---|
ValueError
|
If the data has not been mapped yet |
session_name
abstractmethod
property
¶
session_name: str
Returns the session name associated with the data.
Returns:
| Type | Description |
|---|---|
str
|
The name of the session |
session_schema ¶
Returns the session schema for the mapped session data.
Returns:
| Type | Description |
|---|---|
Session
|
The session schema object |
Source code in src/clabe/aind/data_schema.py
run ¶
Executes the data mapping process.
Returns:
| Type | Description |
|---|---|
TMapTo
|
The mapped data object |
map
abstractmethod
¶
AindDataSchemaRigDataMapper ¶
Bases: AindDataSchemaDataMapper[Rig], ABC
Abstract base class for mapping rig data to aind-data-schema Rig objects.
Specializes the generic data mapper for rig-specific data, providing the interface for converting experimental rig configurations to the AIND data schema format.
mapped
property
¶
Retrieves the mapped data object.
Returns:
| Type | Description |
|---|---|
TMapTo
|
The mapped data object |
Raises:
| Type | Description |
|---|---|
ValueError
|
If the data has not been mapped yet |
session_name
abstractmethod
property
¶
session_name: str
Returns the session name associated with the data.
Returns:
| Type | Description |
|---|---|
str
|
The name of the session |
rig_schema ¶
Returns the rig schema for the mapped rig data.
Returns:
| Type | Description |
|---|---|
Rig
|
The rig schema object |
run ¶
Executes the data mapping process.
Returns:
| Type | Description |
|---|---|
TMapTo
|
The mapped data object |