Closed dcortie closed 2 years ago
@dcortie thanks for finding + reporting the issue. Can you make a pull request for this?
git fetch refnx
git checkout master
git rebase refnx/master
git commit -a -m'MAINT: fixed the bug in #618'
@ohcpaull, do you have feedback on this?
Hi @andyfaff , yep @dcortie is completely right. I don't have any feedback other than being annoyed that I made such a silly mistake in the first place...
Hello,
There is a typo in the definition of the polarizer efficiency matrixes in the PolarisedEfficiency class (reduce.py).
self.flipper2_matrix = [ [one, z, one, z], [F2, (1 - F2), z, z], [z, z, one, z], [z, z, F2, (1 - F2)], ]
should be
self.flipper2_matrix = [ [one, z, z, z], [F2, (1 - F2), z, z], [z, z, one, z], [z, z, F2, (1 - F2)], ]
This will make it consistent with the original reference Review of Scientific Instruments 70, 4241 (1999) on Page 3. I found that using the incorrect matrix introduces a significant error (up to 30% over subtraction) in the NSF channel corrections when strong SF signals are also present.
Cheers, David