Coverage for /opt/conda/envs/apienv/lib/python3.10/site-packages/daiquiri/implementors/parameteriser/srect.py: 100%

11 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 fields 

4 

5from daiquiri.core.components.parameteriser import ( 

6 ParameteriserActor, 

7 ParameteriserActorSchema, 

8) 

9 

10 

11class SrectSchema(ParameteriserActorSchema): 

12 center_horizontal = fields.Float( 

13 required=True, metadata={"title": "Center Horizontal"} 

14 ) 

15 center_vertical = fields.Float(required=True, metadata={"title": "Center Vertical"}) 

16 size_horizontal = fields.Float(required=True, metadata={"title": "Size Horizontal"}) 

17 size_vertical = fields.Float(required=True, metadata={"title": "Size Vertical"}) 

18 

19 

20class SrectActor(ParameteriserActor): 

21 schema = SrectSchema 

22 name = "rect" 

23 parameter_type = "sample"