-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Allows reading TMY data from a Path or file-like object #2544
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
a110a69
6561ccb
be82a62
8181548
970688e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -18,6 +18,10 @@ | |||||||
| def test_read_tmy3(): | ||||||||
| tmy.read_tmy3(TMY3_TESTFILE, map_variables=False) | ||||||||
|
|
||||||||
| def test_read_tmy3_buffer(): | ||||||||
| with open(TMY3_TESTFILE) as f: | ||||||||
| tmy.read_tmy3(f, map_variables=False) | ||||||||
|
||||||||
| tmy.read_tmy3(f, map_variables=False) | |
| tmy.read_tmy3(f, map_variables=False) | |
| assert 'GHI source' in data.columns |
I suggest adding a simple assertion to make sure that the dataframe actually contains something.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the suggestion @AdamRJensen (maybe I should've read the test just below 😆). I've added it in 970688e, in addition to a check for the parsed data being 8760 rows, which I believe is correct for TMY3.
Uh oh!
There was an error while loading. Please reload this page.