Skip to content

Raise an exception if no parameter is provided to retrieve_sam() #770

Closed
@Peque

Description

@Peque

Instead of opening a dialog, which feels weird for a library.

pvlib-python/pvlib/pvsystem.py

Lines 1783 to 1788 in 0a14b27

elif name is None and path is None:
import tkinter
from tkinter.filedialog import askopenfilename
tkinter.Tk().withdraw()
csvdata = askopenfilename()

Also, that piece of code is probably not tested?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions