8000 remove unnecessary () for readibility · TrulyPV/pvlib-python@a778852 · GitHub
[go: up one dir, main page]

Skip to content

Commit a778852

Browse files
committed
remove unnecessary () for readibility
1 parent 646aa5f commit a778852

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

pvlib/solarposition.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -323,24 +323,24 @@ def ephemeris(time, location, pressure=101325, temperature=12):
323323

324324
while np.max(abs(EccenAnom - E)) > 0.0001:
325325
E = EccenAnom
326-
EccenAnom = MeanAnom + np.degrees(Eccen) * (np.sin(np.radians(E)))
326+
EccenAnom = MeanAnom + np.degrees(Eccen)*np.sin(np.radians(E))
327327

328328
TrueAnom = (
329329
2 * np.mod(np.degrees(np.arctan2(((1 + Eccen) / (1 - Eccen)) ** 0.5 *
330330
np.tan(np.radians(EccenAnom) / 2.), 1)), 360))
331331
EcLon = np.mod(MlPerigee + TrueAnom, 360) - Abber
332332
EcLonR = np.radians(EcLon)
333-
DecR = np.arcsin(np.sin(ObliquityR)*(np.sin(EcLonR)))
333+
DecR = np.arcsin(np.sin(ObliquityR)*np.sin(EcLonR))
334334

335-
RtAscen = np.degrees(np.arctan2(np.cos(ObliquityR) * ((np.sin(EcLonR))),
336-
np.cos(EcLonR)))
335+
RtAscen = np.degrees(np.arctan2(np.cos(ObliquityR)*np.sin(EcLonR),
336+
np.cos(EcLonR) ))
337337

338338
HrAngle = LocAST - RtAscen
339339
HrAngleR = np.radians(HrAngle)
340340
HrAngle = HrAngle - (360 * ((abs(HrAngle) > 180)))
341341

342-
SunAz = np.degrees(np.arctan2(- 1 * np.sin(HrAngleR), np.cos(LatR) *
343-
(np.tan(DecR)) - np.sin(LatR)*(np.cos(HrAngleR))))
342+
SunAz = np.degrees(np.arctan2(-np.sin(HrAngleR),
343+
np.cos(LatR)*np.tan(DecR) - np.sin(LatR)*np.cos(HrAngleR) ))
344344
SunAz[SunAz < 0] += 360
345345

346346
SunEl = np.degrees(np.arcsin(
@@ -355,7 +355,7 @@ def ephemeris(time, location, pressure=101325, temperature=12):
355355
Refract = pd.Series(0, index=time_utc)
356356

357357
Refract[(Elevation > 5) & (Elevation <= 85)] = (
358-
58.1/TanEl - 0.07/(TanEl**3) + 8.6e-05/(TanEl**5))
358+
58.1/TanEl - 0.07/(TanEl**3) + 8.6e-05/(TanEl**5) )
359359

360360
Refract[(Elevation > -0.575) & (Elevation <= 5)] = ( Elevation *
361361
(-518.2 + Elevation*(103.4 + Elevation*(-12.79 + Elevation*0.711))) +

0 commit comments

Comments
 (0)
0