Uses sun presets to set the sun position
(args, weather)
| 31 | |
| 32 | |
| 33 | def apply_sun_presets(args, weather): |
| 34 | """Uses sun presets to set the sun position""" |
| 35 | if args.sun is not None: |
| 36 | if args.sun in SUN_PRESETS: |
| 37 | weather.sun_altitude_angle = SUN_PRESETS[args.sun][0] |
| 38 | weather.sun_azimuth_angle = SUN_PRESETS[args.sun][1] |
| 39 | else: |
| 40 | print("[ERROR]: Command [--sun | -s] '" + args.sun + "' not known") |
| 41 | sys.exit(1) |
| 42 | |
| 43 | |
| 44 | def apply_weather_presets(args, weather): |