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

1#!/usr/bin/env python 

2# -*- coding: utf-8 -*- 

3from marshmallow import Schema, fields 

4 

5import logging 

6 

7logger = logging.getLogger(__name__) 

8 

9 

10class TomoAcquisitionSchema(Schema): 

11 scanid = fields.Int() 

12 frame_no = fields.Int() 

13 

14 

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)