Skip to content

Commit 86d04c5

Browse files
committed
MNT: move data into subfolder
1 parent c0f5910 commit 86d04c5

File tree

4 files changed

+2
-2
lines changed

4 files changed

+2
-2
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.

03-temperature/w_helpers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,13 +141,13 @@ def load_data(dataset):
141141
DataFrame
142142
Hourly temperature data
143143
"""
144-
p = Path(os.path.dirname(os.path.realpath(__file__)))
144+
p = Path(os.path.dirname(os.path.realpath(__file__))) / 'data'
145145
fname = p / f'{dataset}.h5'
146146

147147
try:
148148
return pd.read_hdf(str(fname))
149149
except FileNotFoundError:
150150
sources = {f.stem for f in p.iterdir() if
151151
f.is_file() and f.name.endswith('h5')}
152-
raise RuntimeError(f"Could not not find {dataset:!r}. Existing "
152+
raise RuntimeError(f"Could not not find {dataset!r}. Existing "
153153
f"datasets are {sources}")

0 commit comments

Comments
 (0)