Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
oeigner
LINK - Forschungsprojekt Repo
Commits
6d26f250
Commit
6d26f250
authored
Jan 21, 2022
by
Fabian Kovac
Browse files
save clean files to new clean folder
parent
2fdebc92
Changes
1
Hide whitespace changes
Inline
Side-by-side
FHSTP/01_data_preparation/prep.py
View file @
6d26f250
...
...
@@ -673,12 +673,12 @@ def prep() -> None:
_log
(
'
\n
******************************** SAVE FILES ********************************'
)
# build path for clean config and transmissions destination files
dest_config
=
file_config
.
with_name
(
f
'
{
file_config
.
stem
}
_clean
{
file_config
.
suffix
}
'
)
dest_trans
=
file_trans
.
with_name
(
f
'
{
file_trans
.
stem
}
_clean
{
file_trans
.
suffix
}
'
)
dest_config
=
file_config
.
parent
.
parent
/
'clean'
/
f
'
{
file_config
.
stem
}{
file_config
.
suffix
}
'
dest_trans
=
file_trans
.
parent
.
parent
/
'clean'
/
f
'
{
file_trans
.
stem
}{
file_trans
.
suffix
}
'
# build path for clean link destination file (same folder, date and extension as transmissions file)
date
=
str
(
file_trans
.
stem
).
split
(
'_'
)[
-
1
]
dest_link
=
pathlib
.
Path
(
dest_trans
.
parents
[
0
],
f
'LINK_
{
date
}
_clean
{
file_trans
.
suffix
}
'
)
dest_link
=
pathlib
.
Path
(
dest_trans
.
parents
[
0
],
f
'LINK_
{
date
}{
file_trans
.
suffix
}
'
)
# save clean files
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment