Skip to content
GitLab
Explore
Projects
Groups
Snippets
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
0e355e6d
Commit
0e355e6d
authored
2 years ago
by
BO ZHANG
Browse files
Options
Download
Email Patches
Plain Diff
wrap DFS and CRDS in Pipeline
parent
2559b176
dev
main
zhaobowei-main-patch-61353
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
csst_common/pipeline.py
+5
-0
csst_common/pipeline.py
with
5 additions
and
0 deletions
+5
-0
csst_common/pipeline.py
+
5
-
0
View file @
0e355e6d
...
...
@@ -4,6 +4,8 @@ import subprocess
from
astropy
import
time
from
.crds
import
CRDS
from
.dfs
import
DFS
from
.logger
import
get_logger
...
...
@@ -49,6 +51,9 @@ class Pipeline:
self
.
time_stamp
=
TimeStamp
(
os
.
path
.
join
(
self
.
dir_out
,
"time_stamp.txt"
))
self
.
exit_code
=
ExitCode
(
os
.
path
.
join
(
self
.
dir_out
,
"exit_code"
))
self
.
dfs
=
DFS
(
n_try
=
5
)
self
.
crds
=
CRDS
()
def
set_test_env
(
self
):
os
.
environ
[
"CSST_DFS_API_MODE"
]
=
"cluster"
os
.
environ
[
"CSST_DFS_GATEWAY"
]
=
"172.24.27.2:30880"
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Explore
Projects
Groups
Snippets