8000 Add function to retrieve example dataset paths by echedey-ls · Pull Request #1763 · pvlib/pvlib-python · GitHub
[go: up one dir, main page]

Skip to content

Add function to retrieve example dataset paths #1763

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

Closed
wants to merge 27 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
e46a60f
Add function, tests and case example
echedey-ls Jun 7, 2023
29c7554
Fix type annotations
echedey-ls Jun 7, 2023
725e299
Yeet this stupid error
echedey-ls Jun 7, 2023
05dc263
Remove unneeded feature
echedey-ls Jun 8, 2023
b0f38d5
Renamed to locate_example_dataset
echedey-ls Jun 8, 2023
b236fce
Use pathlib & check existence of test files
echedey-ls Jun 8, 2023
884f2de
Add public documentation, hope it works
echedey-ls Jun 8, 2023
dad6835
I forgot this assert :v
echedey-ls Jun 8, 2023
5490561
Update plot_greensboro_kimber_soiling.py
echedey-ls Jun 8, 2023
8000
eacedae
Don't show examples backreference
echedey-ls Jun 9, 2023
28fe7de
Update v0.10.0.rst (without user name since I'm already mentioned at …
echedey-ls Jun 9, 2023
aa91f28
Apply Kevin's implementation suggestions
echedey-ls Jun 10, 2023
5954a79
Update plot_greensboro_kimber_soiling.py
echedey-ls Jun 10, 2023
0e55f18
Update iotools.rst
echedey-ls Jun 10, 2023
311f765
Will this fix the table?
echedey-ls Jun 10, 2023
3a91cd7
This should be fine now
echedey-ls Jun 10, 2023
4a38b0e
Substitute occurrences of pvlib.__file__ or similar where appropiate
echedey-ls Jun 10, 2023
5e1a33c
Merge branch 'main' into dataset-retrieve-function
echedey-ls Jun 10, 2023
64e8700
Merge branch 'main' into dataset-retrieve-function
echedey-ls Jun 14, 2023
f5bfcf6
Revert "Substitute occurrences of pvlib.__file__ or similar where app…
echedey-ls Jun 18, 2023
8c78cb4
Revert "Will this fix the table?"
echedey-ls Jun 18, 2023
6215608
Delete custom path behaviour, rename to get_example_dataset_path
echedey-ls Jun 18, 2023
aa08e09
Use function in tests only
echedey-ls Jun 18, 2023
61571be
Forgot to update tests
echedey-ls Jun 18, 2023
caec4f4
solve stupid errors
echedey-ls Jun 18, 2023
586381a
Merge branch 'main' into dataset-retrieve-function
echedey-ls Aug 3, 2023
e8c615e
Update whatsnew entries
echedey-ls Aug 3, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
solve stupid errors
  • Loading branch information
echedey-ls committed Jun 18, 2023
commit caec4f458c50ff274268c55c18430fc2e2bdc5a7
2 changes: 1 addition & 1 deletion docs/examples/adr-pvarray/plot_simulate_system.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
# Read a TMY3 file containing weather data and select needed columns
#

tmy3_filepath = tools.get_test_dataset_path('723170TYA.CSV')
tmy3_filepath = tools.get_example_dataset_path('723170TYA.CSV')

tmy, metadata = iotools.read_tmy3(tmy3_filepath, coerce_year=1990,
map_variables=True)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
# in the pvlib data directory. TMY3 are made from the median months from years
# of data measured from 1990 to 2010. Therefore we change the timestamps to a
# common year, 1990.
tmy3_filepath = tools.get_test_dataset_path('723170TYA.CSV')
tmy3_filepath = tools.get_example_dataset_path('723170TYA.CSV')
greensboro, metadata = read_tmy3(tmy3_filepath, coerce_year=1990,
map_variables=True)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def get_orientation(self, solar_zenith, solar_azimuth):
# First let's grab some weather data and make sure our mount produces tilts
# like we expect:

tmy3_filepath = tools.get_test_dataset_path('723170TYA.CSV')
tmy3_filepath = tools.get_example_dataset_path('723170TYA.CSV')
tmy, metadata = iotools.read_tmy3(tmy3_filepath, coerce_year=1990,
map_variables=True)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
from matplotlib import pyplot as plt

# get full path to the example file
tmy3_filepath = tools.get_test_dataset_path('723170TYA.CSV')
tmy3_filepath = tools.get_example_dataset_path('723170TYA.CSV')

# get TMY3 dataset
tmy, metadata = read_tmy3(tmy3_filepath, coerce_year=1990, map_variables=True)
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/soiling/plot_fig3A_hsu_soiling_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

# get full path to the example file
soiling_hsu_filepath = \
pvlib.tools.get_test_dataset_path('soiling_hsu_example_inputs.csv')
pvlib.tools.get_example_dataset_path('soiling_hsu_example_inputs.csv')

# read rainfall, PM2.5, and PM10 data from file
imperial_county = pd.read_csv(soiling_hsu_filepath, index_col=0,
Expand Down
4 changes: 2 additions & 2 deletions docs/examples/soiling/plot_greensboro_kimber_soiling.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@
from matplotlib import pyplot as plt
from pvlib.iotools import read_tmy3
from pvlib.soiling import kimber
from pvlib.tools import get_test_dataset_path
from pvlib.tools import get_example_dataset_path

# get full path to the dataset file
tmy_filepath = get_test_dataset_path('723170TYA.CSV')
tmy_filepath = get_example_dataset_path('723170TYA.CSV')

# get TMY3 data with rain
greensboro, _ = read_tmy3(tmy_filepath, coerce_year=1990,
Expand Down
0