IAP GITLAB

Skip to content
Snippets Groups Projects
Commit fdf15469 authored by Marcel Köpke's avatar Marcel Köpke
Browse files

clear run documentation

parent 53bbfe8c
No related branches found
No related tags found
No related merge requests found
......@@ -5,8 +5,12 @@ from .processed import clear_run as clear_processed
def clear_run(run):
"""Remove all derived data files (not raw).
Accepts glob expressions"""
Parameters
----------
run : str
Name of the subfolder in data/interim and data/processed.
Accepts glob expressions.
"""
clear_interim(run)
clear_processed(run)
......@@ -10,6 +10,14 @@ curpath = get_path()
def clear_run(run):
"""Remove all derived data files from data/interim.
Parameters
----------
run : str
Name of the subfolder in data/interim.
Accepts glob expressions.
"""
rmpath_glob = os.path.join(curpath, run)
rmpaths = glob.glob(rmpath_glob)
for path in rmpaths:
......
......@@ -10,6 +10,14 @@ curpath = get_path()
def clear_run(run):
"""Remove all derived data files from data/processed.
Parameters
----------
run : str
Name of the subfolder in data/processed.
Accepts glob expressions.
"""
rmpath_glob = os.path.join(curpath, run)
rmpaths = glob.glob(rmpath_glob)
for path in rmpaths:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment