S5.visualisation.get_weather#

S5.visualisation.get_weather(history_path: str | PathLike) SSWeather[source]#

Get the corresponding weather file for the given history file.

The Weather file is found by looking at SolarSim.in at the same folder as the history file.

Parameters:

history_path – Path to the history file.

Returns:

Weather file object.

Examples

>>> history = TP.SSHistory("C:/path/to/History.dat")
>>> weather = get_weather(history.filename)