Skip to content

Commit

Permalink
Merge pull request #170 from ehpor/feature/endianness_fix
Browse files Browse the repository at this point in the history
Fix bug in interpolating big-endian ndarray read from fits file.
  • Loading branch information
ehpor authored Feb 24, 2023
2 parents 6aebeb9 + d95b917 commit 87ca967
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hcipy/optics/deformable_mirror.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def make_xinetics_influence_functions(pupil_grid, num_actuators_across_pupil, ac
# Read in actuator shape from file.
f = files('hcipy.optics').joinpath('influence_dm5v2.fits')
with f.open('rb') as fp:
actuator = np.squeeze(read_fits(fp))
actuator = np.squeeze(read_fits(fp)).astype('float')
actuator /= actuator.max()

# Convert actuator into linear interpolator.
Expand Down

0 comments on commit 87ca967

Please sign in to comment.