Skip to content
Snippets Groups Projects
Commit 427f7903 authored by Jameson Rollins's avatar Jameson Rollins
Browse files

Merge branch 'lpy_keyerror_fix' into 'master'

Add lpy coefficients for OM's, RM's, ZM's

Closes #130

See merge request !90
parents eab17d43 dedc9c9f
No related branches found
No related tags found
No related merge requests found
......@@ -170,6 +170,12 @@ def channel2lpy_coeffs(channel):
lpy_map['pitch'] = {'T2': 1, 'T3': -1}
lpy_map['yaw'] = {'LF': -1, 'RT': 1}
lpy_map['corners'] = ['T2', 'T3', 'LF', 'RT']
elif optic in ['OM1', 'OM2', 'OM3', 'RM1', 'RM2', 'ZM1', 'ZM2']:
if stage in ['M1']:
lpy_map['length'] = {'UL': 1, 'LL': 1, 'UR': 1, 'LR': 1}
lpy_map['pitch'] = {'UL': 1, 'LL': -1, 'UR': 1, 'LR': -1}
lpy_map['yaw'] = {'UL': -1, 'LL': -1, 'UR': 1, 'LR': 1}
lpy_map['corners'] = ['UL', 'LL', 'UR', 'LR']
else:
raise RuntimeError("no LPY map for suspension '{}'.".format(channel))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment