Skip to content

Commit db836ac

Browse files
authored
Merge pull request #62 from spacetelescope/feature/actuator_grid
Add an actuator_grid property to be BostonDM service proxy.
2 parents 9770c67 + 93794e5 commit db836ac

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

catkit2/testbed/proxies/bmc_dm.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import numpy as np
44
from astropy.io import fits
5+
import hcipy
56

67
@ServiceProxy.register_service_interface('bmc_dm')
78
class BmcDmProxy(ServiceProxy):
@@ -18,6 +19,12 @@ def dm_mask(self):
1819
def num_actuators(self):
1920
return self.config['num_actuators']
2021

22+
@property
23+
def actuator_grid(self):
24+
dims = self.dm_mask.shape[::-1]
25+
26+
return hcipy.make_uniform_grid(dims, dims)
27+
2128
def dm_shapes_to_command(self, dm1_shape, dm2_shape=None):
2229
command = np.zeros(2048)
2330

0 commit comments

Comments
 (0)