11import torch
22
3- from artist .util .environment_setup import get_device
3+ from artist .util .env import get_device
44
55
66class Actuators (torch .nn .Module ):
@@ -11,16 +11,18 @@ class Actuators(torch.nn.Module):
1111 ----------
1212 non_optimizable_parameters : torch.Tensor
1313 The non-optimizable actuator parameters, describing actuator geometry.
14- Tensor of shape [number_of_heliostats, 7, 2] for linear actuators or [number_of_heliostats, 4, 2] for ideal actuators.
14+ Shape is ``[number_of_heliostats, 7, 2]`` for linear actuators
15+ or ``[number_of_heliostats, 4, 2]`` for ideal actuators.
1516 optimizable_parameters : torch.Tensor
1617 The two optimizable actuator parameters, describing the initial actuator configuration.
17- Tensor of shape [number_of_heliostats, 2, 2] for linear actuators or [] for ideal actuators.
18+ Shape is `` [number_of_heliostats, 2, 2]`` for linear actuators or ``[]`` for ideal actuators.
1819 active_non_optimizable_parameters : torch.Tensor
1920 Active non-optimizable geometry parameters.
20- Tensor of shape [number_of_active_heliostats, 7, 2] for linear actuators or [number_of_active_heliostats, 4, 2] for ideal actuators.
21+ Shape is ``[number_of_active_heliostats, 7, 2]`` for linear actuators
22+ or ``[number_of_active_heliostats, 4, 2]`` for ideal actuators.
2123 active_optimizable_parameters : torch.Tensor
2224 Active optimizable parameters.
23- Tensor of shape [number_of_active_heliostats, 2, 2] for linear actuators or [] for ideal actuators.
25+ Shape is `` [number_of_active_heliostats, 2, 2]`` for linear actuators or ``[]`` for ideal actuators.
2426
2527 Methods
2628 -------
@@ -51,10 +53,12 @@ def __init__(
5153 ----------
5254 non_optimizable_parameters : torch.Tensor
5355 The non-optimizable actuator parameters, describing actuator geometry.
54- Tensor of shape [number_of_heliostats, 7, 2] for linear actuators or [number_of_heliostats, 4, 2] for ideal actuators.
56+ Shape is ``[number_of_heliostats, 7, 2]`` for linear actuators
57+ or ``[number_of_heliostats, 4, 2]`` for ideal actuators.
5558 optimizable_parameters : torch.Tensor
5659 The two optimizable actuator parameters, describing the initial actuator configuration.
57- Tensor of shape [number_of_heliostats, 2, 2] for linear actuators or [] for ideal actuators (default is torch.Tensor([])).
60+ Shape is ``[number_of_heliostats, 2, 2]`` for linear actuators
61+ or ``[]`` for ideal actuators (default is ``torch.tensor([])``).
5862 device : torch.device | None
5963 The device on which to perform computations or load tensors and models (default is None).
6064 If None, ``ARTIST`` will automatically select the most appropriate
@@ -82,7 +86,7 @@ def motor_positions_to_angles(
8286 ----------
8387 motor_positions : torch.Tensor
8488 The motor positions.
85- Tensor of shape [number_of_active_heliostats, 2].
89+ Shape is `` [number_of_active_heliostats, 2]`` .
8690 device : torch.device | None
8791 The device on which to perform computations or load tensors and models (default is None).
8892 If None, ``ARTIST`` will automatically select the most appropriate
@@ -105,7 +109,7 @@ def angles_to_motor_positions(
105109 ----------
106110 angles : torch.Tensor
107111 The joint angles.
108- Tensor of shape [number_of_active_heliostats, 2].
112+ Shape is `` [number_of_active_heliostats, 2]`` .
109113 device : torch.device | None
110114 The device on which to perform computations or load tensors and models (default is None).
111115 If None, ``ARTIST`` will automatically select the most appropriate
@@ -128,7 +132,7 @@ def forward(
128132 ----------
129133 motor_positions : torch.Tensor
130134 The motor positions to be converted to joint angles.
131- Tensor of shape [number_of_active_heliostats, 2].
135+ Shape is `` [number_of_active_heliostats, 2]`` .
132136 device : torch.device | None
133137 The device on which to perform computations or load tensors and models (default is None).
134138 If None, ``ARTIST`` will automatically select the most appropriate
@@ -138,7 +142,7 @@ def forward(
138142 -------
139143 torch.Tensor
140144 The joint angles.
141- Tensor of shape [number_of_active_heliostats, 2].
145+ Shape is `` [number_of_active_heliostats, 2]`` .
142146
143147 """
144148 device = get_device (device = device )
0 commit comments