Skip to content

Commit

Permalink
changed angle calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
fscarlier committed Aug 18, 2023
1 parent 2675c2e commit c0a42c7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions omc3/harpy/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,10 +173,9 @@ def _write_bad_bpms(output_path_without_suffix, plane, bad_bpms_with_reasons):

def _write_spectrum(output_path_without_suffix, plane, spectra):
tfs.write(f"{output_path_without_suffix}{FILE_AMPS_EXT.format(plane=plane.lower())}", spectra["COEFFS"].abs().T)
tfs.write(f"{output_path_without_suffix}{FILE_PHASES_EXT.format(plane=plane.lower())}", spectra["COEFFS"].angle().T)
tfs.write(f"{output_path_without_suffix}{FILE_PHASES_EXT.format(plane=plane.lower())}", spectra["COEFFS"].apply(np.angle).T)
tfs.write(f"{output_path_without_suffix}{FILE_FREQS_EXT.format(plane=plane.lower())}", spectra["FREQS"].T)


def _write_lin_tfs(output_path_without_suffix, plane, lin_frame):
tfs.write(f"{output_path_without_suffix}{FILE_LIN_EXT.format(plane=plane.lower())}", lin_frame)

Expand Down

0 comments on commit c0a42c7

Please sign in to comment.