> ## Documentation Index
> Fetch the complete documentation index at: https://docs.encord.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Objects.spaces.mcap spaces

## McapSpaceManager Objects

```python theme={"dark"}
class McapSpaceManager()
```

Manage spaces inferred from self-contained MCAP labels and caller-supplied IDs.

#### reset

```python theme={"dark"}
def reset() -> None
```

Remove spaces inferred from the previous label payload.

#### add\_labels\_to\_spaces

```python theme={"dark"}
def add_labels_to_spaces(
    label_row_dict: dict[str, Any], spaces_dict: dict[str, SpaceInfo], *,
    object_answers: dict[str, ObjectAnswer],
    classification_answers: dict[str, ClassificationAnswer]
) -> dict[str, SpaceInfo]
```

Recover MCAP point-cloud and time-series spaces omitted from top-level metadata.

#### get\_or\_create\_point\_cloud\_space

```python theme={"dark"}
def get_or_create_point_cloud_space(
        label_key: str) -> Optional[PointCloudFileSpace]
```

Trust a valid `stream@timestamp_ns` point-cloud ID supplied by a caller.

#### get\_or\_create\_time\_series\_space

```python theme={"dark"}
def get_or_create_time_series_space(
        space_id: str) -> Optional[TimeSeriesSpace]
```

Trust a non-empty time-series channel ID supplied by a caller.

#### prepare\_export

```python theme={"dark"}
def prepare_export(label_row_dict: dict[str, Any]) -> None
```

Restore MCAP labels to their wire locations and omit synthetic space metadata.
