def __init__(self, datetime, altitude, azimuth, is_solar_time,<EOL>is_daylight_saving, north_angle, data=None):
assert hasattr(datetime, '<STR_LIT>'),"<STR_LIT>".format(type(datetime))<EOL>self._datetime = datetime  <EOL>assert -self.PI <= altitude <= self.PI,"<STR_LIT>".format(altitude, -self.PI, self.PI)<EOL>self._altitude = altitude  <EOL>assert -<NUM_LIT:2> * self.PI <= azimuth <= <NUM_LIT:2> * self.PI,"<STR_LIT>".format(azimuth, -self.PI, self.PI)<EOL>self._azimuth = azimuth  <EOL>self._is_solar_time = is_solar_time<EOL>self._is_daylight_saving = is_daylight_saving<EOL>self._north_angle = north_angle<EOL>self.data = data  <EOL>self._calculate_sun_vector()<EOL>
Init sun.