Skip to content

Commit f20649c

Browse files
EliEli
authored andcommitted
Fixed bug caused by conversion of tmp dir to context manager.
1 parent 4e0a5c4 commit f20649c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dms_datastore/usgs_multi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ def process_multivariate_usgs(repo="formatted", data_path=None, pat=None, rescan
311311
meta["subloc"] = asubloc
312312
newfname = newfname = meta_to_filename(meta, repo="formatted")
313313
work_dir, newfname_f = os.path.split(newfname)
314-
newfpath = os.path.join(tmpdir.name, newfname_f) ## todo: hardwire
314+
newfpath = os.path.join(tmpdir, newfname_f)
315315
univariate.columns = ["value"]
316316
univariate.name = "value"
317317
logger.debug(f"Writing to {newfpath}")

0 commit comments

Comments
 (0)