trnslator.trnsys.parse_window_lib

trnslator.trnsys.parse_window_lib(window_file_path)[source]

Function that parse window library from Berkeley Lab in two parts. First part is a dataframe with the window characteristics. Second part is a dictionary with the description/properties of each window.

Parameters

window_file_path (str) – Path to the window library

Returns

a tuple of:

  • dataframe: df_windows, a dataframe with the window characteristics in the columns and the window id as rows

  • dict: bunches, a dict with the window id as key and description/properties of each window as value

Return type

tuple