Added default panel files (vscore) to the templates, and made the

rotation maths in the neoden pnp file generation more robust
This commit is contained in:
ac
2024-09-09 10:11:33 +10:00
parent 80765e324f
commit fe9a4eb1e2
4 changed files with 100 additions and 23 deletions

View File

@@ -115,8 +115,8 @@ def comp_format(filt, offset):
t[p] = "{:.2f}".format(abs(float(t[p]) - offset[n]))
rotation = float(t[rot])
rotation = rotation + offset[2]
if rotation > 180.0:
rotation = -1 * (360.0 - rotation)
# Wrap the phase [-180, 180]
rotation = (rotation + 180.0) % (2 * 180.0) - 180.0
t[rot] = "{:.2f}".format(rotation)
out.append(t)
return out