Skip to content

Commit

Permalink
fix: correct phase in Zlm
Browse files Browse the repository at this point in the history
  • Loading branch information
denehoffman committed Nov 3, 2024
1 parent 655055c commit 48b4484
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/amplitudes/zlm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ impl Amplitude for Zlm {
);
let pol_angle = self.polarization.pol_angle.value(event);
let pgamma = self.polarization.pol_magnitude.value(event);
let phase = Complex::new(Float::cos(pol_angle), Float::sin(pol_angle));
let phase = Complex::new(Float::cos(-pol_angle), Float::sin(-pol_angle));
let zlm = ylm * phase;
cache.store_complex_scalar(
self.csid,
Expand Down

0 comments on commit 48b4484

Please sign in to comment.