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

10 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 ScircleSchema(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 diameter = fields.Float(required=True, metadata={"title": "Diameter"}) 

17 

18 

19class ScircleActor(ParameteriserActor): 

20 schema = ScircleSchema 

21 name = "circle" 

22 parameter_type = "sample"