Coverage for C: \ Users \ peaco \ OneDrive \ Documents \ GitHub \ mt_metadata \ mt_metadata \ processing \ aurora \ channel.py: 100%
6 statements
« prev ^ index » next coverage.py v7.13.1, created at 2026-01-10 00:11 -0800
« prev ^ index » next coverage.py v7.13.1, created at 2026-01-10 00:11 -0800
1# =====================================================
2# Imports
3# =====================================================
4from typing import Annotated
6from pydantic import Field
8from mt_metadata.base import MetadataBase
11# =====================================================
12class Channel(MetadataBase):
13 id: Annotated[
14 str,
15 Field(
16 default="",
17 description="channel ID",
18 alias=None,
19 json_schema_extra={
20 "units": None,
21 "required": True,
22 "examples": ["mt001"],
23 },
24 ),
25 ]
27 scale_factor: Annotated[
28 float,
29 Field(
30 default=1.0,
31 description="scale factor of the channel",
32 alias=None,
33 json_schema_extra={
34 "units": None,
35 "required": True,
36 "examples": ["10.0"],
37 },
38 ),
39 ]