Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
csst-pipeline
csst_common
Commits
f15ab7e7
Commit
f15ab7e7
authored
Dec 29, 2023
by
BO ZHANG
🏀
Browse files
annotate type for Pipeline attributes
parent
0fc295bf
Pipeline
#2870
passed with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
csst_common/pipeline.py
View file @
f15ab7e7
...
@@ -79,25 +79,25 @@ class Pipeline:
...
@@ -79,25 +79,25 @@ class Pipeline:
**
kwargs
:
Any
,
**
kwargs
:
Any
,
):
):
# get pipeline information from env vars
# get pipeline information from env vars
self
.
pipeline_id
=
os
.
getenv
(
"PIPELINE_ID"
,
"-"
)
self
.
pipeline_id
:
str
=
os
.
getenv
(
"PIPELINE_ID"
,
"-"
)
self
.
build
=
os
.
getenv
(
"BUILD"
,
"-"
)
self
.
build
:
str
=
os
.
getenv
(
"BUILD"
,
"-"
)
self
.
created
=
os
.
getenv
(
"CREATED"
,
"-"
)
self
.
created
:
str
=
os
.
getenv
(
"CREATED"
,
"-"
)
self
.
verbose
=
os
.
getenv
(
"VERBOSE"
,
None
)
self
.
verbose
:
bool
=
bool
(
os
.
getenv
(
"VERBOSE"
,
""
)
)
# set directory information
# set directory information
self
.
dir_input
=
dir_input
self
.
dir_input
:
str
=
dir_input
self
.
dir_output
=
dir_output
self
.
dir_output
:
str
=
dir_output
self
.
dir_temp
=
dir_temp
self
.
dir_temp
:
str
=
dir_temp
self
.
dir_aux
=
dir_aux
self
.
dir_aux
:
str
=
dir_aux
self
.
dfs_root
=
dfs_root
self
.
dfs_root
:
str
=
dfs_root
self
.
ccds_root
=
ccds_root
self
.
ccds_root
:
str
=
ccds_root
self
.
ccds_cache
=
ccds_cache
self
.
ccds_cache
:
str
=
ccds_cache
if
clean_output_before_run
:
if
clean_output_before_run
:
self
.
clean_output
()
self
.
clean_output
()
# additional parameters
# additional parameters
self
.
kwargs
=
kwargs
self
.
kwargs
:
dict
=
kwargs
# set logger
# set logger
self
.
pipeline_logger
=
get_logger
(
self
.
pipeline_logger
=
get_logger
(
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment