Skip to content

access private _parse_pvgis_tmy_csv() function as read_pvgis_tmy_csv() #880

Closed

Description

@mikofski

Is your feature request related to a problem? Please describe.
someone sent me a csv file they downloaded from pvgis, and I needed to parse it, so I had to call the private methods like this:

>>> from pvlib.iotools.pvgis import _parse_pvgis_tmy_csv
>>> with (path_to_folder / 'pvgis_tmy_lat_lon_years.csv').open('rb') as f:
        pvgis_data = _parse_pvgis_tmy_csv(f)

Describe the solution you'd like
If I need this, others may also. I think a public method that takes either a string or a buffer could be useful? Something called read_pvgis_tmy_csv()

Describe alternatives you've considered
I was able to do it by just calling the private function and it worked, so that's an alternative also

Additional context
related to #845 and #849

Activity

  1. cwhanse commented on Feb 5, 2020

    @cwhanse
    Member

    OK with me to refactor to the same pattern as #842 in particular the get / read / parse trio.

  2. added this to the 0.7.2 milestone on Feb 5, 2020
  3. mikofski commented on Feb 23, 2020

    @mikofski
    MemberAuthor

    I just started in this, but didn't push it yet, sorry. Kinda important now to have a static/remoteless test that checks parsing, since all of the tests are decorated

  4. added a commit that references this issue on Feb 23, 2020
    d43a0fa
  5. added a commit that references this issue on Mar 1, 2020
    d6b85c1
  6. added a commit that references this issue on Mar 18, 2020
    5788223
  7. added a commit that references this issue on Mar 28, 2020
    a28d819
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions