MCPcopy Create free account
hub / github.com/AdaCompNUS/summit / apply_weather_values

Function apply_weather_values

PythonAPI/util/weather.py:60–79  ·  view source on GitHub ↗

Set weather values individually

(args, weather)

Source from the content-addressed store, hash-verified

58
59
60def apply_weather_values(args, weather):
61 """Set weather values individually"""
62 if args.azimuth is not None:
63 weather.sun_azimuth_angle = args.azimuth
64 if args.altitude is not None:
65 weather.sun_altitude_angle = args.altitude
66 if args.clouds is not None:
67 weather.cloudiness = args.clouds
68 if args.rain is not None:
69 weather.precipitation = args.rain
70 if args.puddles is not None:
71 weather.precipitation_deposits = args.puddles
72 if args.wind is not None:
73 weather.wind_intensity = args.wind
74 if args.fog is not None:
75 weather.fog_density = args.fog
76 if args.fogdist is not None:
77 weather.fog_distance = args.fogdist
78 if args.wetness is not None:
79 weather.wetness = args.wetness
80
81
82def main():

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected