Skip to content

Commit

Permalink
changed the name of get_wavefront_custom to apply_current_wavefront s…
Browse files Browse the repository at this point in the history
…o it makes more sense
  • Loading branch information
sfr348 committed May 6, 2022
1 parent 0c2338a commit f04839e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions catkit/hardware/iris_ao/segmented_dm_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ def display(self, display_wavefront=True, display_psf=True, psf_rotation_angle=0
by out_dir
"""
# update opd on mirror
self.get_wavefront_custom()
self.apply_current_wavefront()

# make figure
if figure_name_prefix:
Expand Down Expand Up @@ -409,13 +409,13 @@ def plot_wavefront(self, figure_name_prefix, out_dir, vmax=0.5e-6*u.meter, save_
else:
plt.show()

def get_wavefront_custom(self):
def apply_current_wavefront(self):
"""
Get the deployed mirror state (wavefront error)
To make plot:
total_iris = iris_ao.HicatSegmentedDmCommand()
total_iris.read_initial_command([tuple(row) for row in command_to_plot])
total_iris.get_wavefront_custom()
total_iris.apply_current_wavefront()
command = total_iris.aperture.sample(what='opd')
image = ax.matshow(command)
"""
Expand Down

0 comments on commit f04839e

Please sign in to comment.