@@ -93,13 +93,12 @@ def singleaxis(apparent_zenith, apparent_azimuth,
9393
9494 pvl_logger .debug ('tracking.singleaxis' )
9595
96- pvl_logger .debug (('axis_tilt={}, axis_azimuth={}, max_angle={}, ' +
97- 'backtrack={}, gcr={:.3f}' )
98- .format (axis_tilt , axis_azimuth , max_angle , backtrack ,
99- gcr ))
96+ pvl_logger .debug ('axis_tilt=%s, axis_azimuth=%s, max_angle=%s, ' +
97+ 'backtrack=%s, gcr=%.3f' ,
98+ axis_tilt , axis_azimuth , max_angle , backtrack , gcr )
10099
101- pvl_logger .debug ('\n apparent_zenith=\n {} \n apparent_azimuth=\n {}'
102- . format ( apparent_zenith .head (), apparent_azimuth .head () ))
100+ pvl_logger .debug ('\n apparent_zenith=\n %s \n apparent_azimuth=\n %s' ,
101+ apparent_zenith .head (), apparent_azimuth .head ())
103102
104103 # MATLAB to Python conversion by
105104 # Will Holmgren (@wholmgren), U. Arizona. March, 2015.
@@ -139,7 +138,7 @@ def singleaxis(apparent_zenith, apparent_azimuth,
139138 # wholmgren: strange to see axis_azimuth calculated differently from az,
140139 # (not that it matters, or at least it shouldn't...).
141140 axis_azimuth_south = axis_azimuth - 180
142- pvl_logger .debug ('axis_azimuth_south={}' . format ( axis_azimuth_south ) )
141+ pvl_logger .debug ('axis_azimuth_south=%s' , axis_azimuth_south )
143142
144143 # translate input array tilt angle axis_tilt to [1] coordinate system.
145144
@@ -254,34 +253,34 @@ def singleaxis(apparent_zenith, apparent_azimuth,
254253 rot_x = np .array ([[1 , 0 , 0 ],
255254 [0 , cosd (- axis_tilt ), - sind (- axis_tilt )],
256255 [0 , sind (- axis_tilt ), cosd (- axis_tilt )]])
257- pvl_logger .debug ('rot_x=\n {}' . format ( rot_x ) )
256+ pvl_logger .debug ('rot_x=\n %s' , rot_x )
258257
259258 # panel_norm_earth contains the normal vector
260259 # expressed in earth-surface coordinates
261260 # (z normal to surface, y aligned with tracker axis parallel to earth)
262261 panel_norm_earth = np .dot (rot_x , panel_norm ).T
263- pvl_logger .debug ('panel_norm_earth={}' . format ( panel_norm_earth ) )
262+ pvl_logger .debug ('panel_norm_earth=%s' , panel_norm_earth )
264263
265264 # projection to plane tangent to earth surface,
266265 # in earth surface coordinates
267266 projected_normal = np .array ([panel_norm_earth [:,0 ],
268267 panel_norm_earth [:,1 ],
269268 panel_norm_earth [:,2 ]* 0 ]).T
270- pvl_logger .debug ('projected_normal={}' . format ( projected_normal ) )
269+ pvl_logger .debug ('projected_normal=%s' , projected_normal )
271270
272271 # calculate vector magnitudes
273272 panel_norm_earth_mag = np .sqrt (np .nansum (panel_norm_earth ** 2 , axis = 1 ))
274273 projected_normal_mag = np .sqrt (np .nansum (projected_normal ** 2 , axis = 1 ))
275- pvl_logger .debug ('panel_norm_earth_mag={} , projected_normal_mag={}'
276- . format ( panel_norm_earth_mag , projected_normal_mag ) )
274+ pvl_logger .debug ('panel_norm_earth_mag=%s , projected_normal_mag=%s' ,
275+ panel_norm_earth_mag , projected_normal_mag )
277276
278277 # renormalize the projected vector
279278 # avoid creating nan values.
280279 non_zeros = projected_normal_mag != 0
281280 projected_normal [non_zeros ] = (projected_normal [non_zeros ].T /
282281 projected_normal_mag [non_zeros ]).T
283- pvl_logger .debug ('renormalized projected_normal={}'
284- . format ( projected_normal ) )
282+ pvl_logger .debug ('renormalized projected_normal=%s' ,
283+ projected_normal )
285284
286285 # calculation of surface_azimuth
287286 # 1. Find the angle.
0 commit comments