Untitled

mail@pastecode.io avatar
unknown
python
7 months ago
886 B
2
Indexable
Never
available_modules = list(pvlib.pvsystem.retrieve_sam('SandiaMod').columns)
available_inverters = list(pvlib.pvsystem.retrieve_sam('CECInverter').columns)



sm = pvlib.pvsystem.retrieve_sam("SandiaMod")
inv = pvlib.pvsystem.retrieve_sam("CECInverter")
selected_module = module_selection.get()
selected_inverter = inverter_selection.get()

module = sm[selected_module]
inverter = inv[selected_inverter]



tk.Label(window, text="Select Module:").grid(row=1, column=3)
module_selection = ttk.Combobox(window, values=available_modules)
module_selection.grid(row=1, column=4)
module_selection.set(available_modules[0])

    # Inverter Selection
tk.Label(window, text="Select Inverter:").grid(row=2, column=3)
inverter_selection = ttk.Combobox(window, values=available_inverters)
inverter_selection.grid(row=2, column=4)
inverter_selection.set(available_inverters[0])
Leave a Comment