We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 156e1a3 commit b41593bCopy full SHA for b41593b
1 file changed
dms_datastore/dropbox_data.py
@@ -116,7 +116,10 @@ def get_data(spec):
116
117
item = listing["collect"]
118
metadata = listing["metadata"]
119
+ dest = listing["dest"]
120
121
+ if not os.path.exists(dest):
122
+ raise ValueError(f"Destination {dest} does not exist.")
123
124
file_pattern = item["file_pattern"].format(dropbox_home=dropbox_home)
125
location = item["location"].format(dropbox_home=dropbox_home)
@@ -159,7 +162,7 @@ def get_data(spec):
159
162
fname_out = (meta_out["source"] + "_" + meta_out["station_id"]
160
163
+ "_" + meta_out["agency_id"] + "_" + meta_out["param"] + ".csv")
161
164
- fname_out = os.path.join("formatted", fname_out)
165
+ fname_out = os.path.join(dest, fname_out)
166
print(fname_out)
167
write_ts_csv(ts, fname_out, meta_out, chunk_years=True)
168
0 commit comments