@@ -867,13 +867,11 @@ def testConvertDetectorAngleErrToPositionAngleErr(self):
867867
868868 Requires a similar setup to testConvertDetectorAngleToPositionAngle.
869869 """
870- import pydevd_pycharm
871- pydevd_pycharm .settrace ('localhost' , port = 8888 , stdout_to_server = True ,
872- stderr_to_server = True )
873870 dipoleSep = 10
874871 ixx = 10
875872 testPixelDeltas = np .random .uniform (- 100 , 100 , size = (self .nRecords , 2 ))
876873
874+
877875 for dec in np .linspace (- 80 , 80 , 10 ):
878876 for theta in (- 35 , 0 , 90 ):
879877 for x , y in zip (
@@ -902,7 +900,7 @@ def testConvertDetectorAngleErrToPositionAngleErr(self):
902900 "slot_Centroid_y" ],
903901 self .dataDict ["someCentroid_x" ] - self .dataDict [
904902 "slot_Centroid_x" ],
905- ) * .001
903+ ) * 0 .001
906904
907905 self .dataDict ["base_LocalWcs_CDMatrix_1_1" ] = np .full (
908906 self .nRecords ,
@@ -931,7 +929,7 @@ def testConvertDetectorAngleErrToPositionAngleErr(self):
931929
932930 # Numerical derivative of the same PA function so a
933931 # compariosn can be made
934- step = 1.0e-7 # radians. Bigger? Smaller?
932+ step = self . dataDict [ "orientation_err" ] # radians. Bigger? Smaller?
935933 pa_plus_deg = func .getPositionAngleFromDetectorAngle (
936934 df [("meas" , "g" , "orientation" )] + step ,
937935 df [("meas" , "g" , "base_LocalWcs_CDMatrix_1_1" )],
@@ -963,7 +961,7 @@ def testConvertDetectorAngleErrToPositionAngleErr(self):
963961 val .to_numpy (),
964962 expected_pa_err_deg ,
965963 rtol = 0 ,
966- atol = 5e -6 ,
964+ atol = 1e -6 ,
967965 )
968966
969967 def _makeWcs (self , dec = 53.1595451514076 , theta = 0 ):
0 commit comments