Coverage for /opt/conda/envs/apienv/lib/python3.10/site-packages/daiquiri/core/schema/components/tomo.py: 100%
13 statements
« prev ^ index » next coverage.py v7.6.4, created at 2024-11-14 02:13 +0000
« prev ^ index » next coverage.py v7.6.4, created at 2024-11-14 02:13 +0000
1#!/usr/bin/env python
2# -*- coding: utf-8 -*-
3from marshmallow import Schema, fields
5import logging
7logger = logging.getLogger(__name__)
10class TomoAcquisitionSchema(Schema):
11 scanid = fields.Int()
12 frame_no = fields.Int()
15class TomoDetectorsSchema(Schema):
16 detector_id = fields.Str()
17 tomo_detector_id = fields.Str()
18 node_name = fields.Str()
19 dark = fields.Int(required=False)
20 flat = fields.Int(required=False)
21 data = fields.Nested(TomoAcquisitionSchema, required=False)