Skip to content

Commit

Permalink
update maven.download_data with files tree
Browse files Browse the repository at this point in the history
  • Loading branch information
louis-richard committed Feb 9, 2024
1 parent 13edf58 commit a803935
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pyrfu/maven/download_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,11 @@ def _make_path(file, var, lasp_url, data_path: str = ""):
assert os.path.exists(data_path), "local data directory doesn't exist!"

path_list = [
data_path,
var["inst"],
var["level"],
data_path, # root path to data
var["inst"], # instrument sub-directory
var["level"], # data level sub-directory
file["file_name"].split("_")[4][:4], # year sub-directory
file["file_name"].split("_")[4][4:6], # month sub-directory
]

out_path = os.path.join(*path_list)
Expand Down

0 comments on commit a803935

Please sign in to comment.