npxpy.nodes.misc.DoseCompensation
Bases: Node
A class to represent dose compensation with various attributes and methods for managing dose settings.
Attributes:
Name | Type | Description |
---|---|---|
edge_location |
List[Union[float, int]]
|
Location of the edge [x, y, z] in micrometers. |
edge_orientation |
Union[float, int]
|
Orientation of the edge in degrees. |
domain_size |
List[Union[float, int]]
|
Size of the domain [width, height, depth] in micrometers. |
gain_limit |
Union[float, int]
|
Gain limit for the dose compensation. |
Source code in npxpy/nodes/misc.py
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 |
|
domain_size
property
writable
Get the size of the domain.
edge_location
property
writable
Get the location of the edge.
edge_orientation
property
writable
Get the edge orientation.
gain_limit
property
writable
Get the gain limit.
__init__(name='Dose compensation 1', edge_location=[0.0, 0.0, 0.0], edge_orientation=0.0, domain_size=[200.0, 100.0, 100.0], gain_limit=2.0)
Initialize the dose compensation with the specified parameters.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name
|
str
|
Name of the dose compensation. |
'Dose compensation 1'
|
edge_location
|
List[Union[float, int]]
|
Location of the edge [x, y, z] in micrometers. |
[0.0, 0.0, 0.0]
|
edge_orientation
|
Union[float, int]
|
Orientation of the edge in degrees. |
0.0
|
domain_size
|
List[Union[float, int]]
|
Size of the domain [width, height, depth] in micrometers. |
[200.0, 100.0, 100.0]
|
gain_limit
|
Union[float, int]
|
Gain limit, must be >= 1. |
2.0
|
Source code in npxpy/nodes/misc.py
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
|
to_dict()
Convert the DoseCompensation object into a dictionary.
Returns:
Type | Description |
---|---|
Dict[str, Any]
|
Dict[str, Any]: Dictionary representation of the object. |
Source code in npxpy/nodes/misc.py
142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 |
|