IAP GITLAB
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
CONEX Generator
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Pranav Sampathkumar
CONEX Generator
Commits
fdf15469
Commit
fdf15469
authored
4 years ago
by
Marcel Köpke
Browse files
Options
Downloads
Patches
Plain Diff
clear run documentation
parent
53bbfe8c
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/data/clear_run.py
+6
-2
6 additions, 2 deletions
src/data/clear_run.py
src/data/interim/clear_run.py
+8
-0
8 additions, 0 deletions
src/data/interim/clear_run.py
src/data/processed/clear_run.py
+8
-0
8 additions, 0 deletions
src/data/processed/clear_run.py
with
22 additions
and
2 deletions
src/data/clear_run.py
+
6
−
2
View file @
fdf15469
...
...
@@ -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
)
This diff is collapsed.
Click to expand it.
src/data/interim/clear_run.py
+
8
−
0
View file @
fdf15469
...
...
@@ -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
:
...
...
This diff is collapsed.
Click to expand it.
src/data/processed/clear_run.py
+
8
−
0
View file @
fdf15469
...
...
@@ -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
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment