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
9d91ed34
Commit
9d91ed34
authored
Feb 17, 2023
by
BO ZHANG
🏀
Browse files
add static method dm.dfs_setup
parent
db40ee1a
Changes
1
Show whitespace changes
Inline
Side-by-side
csst_common/data_manager.py
View file @
9d91ed34
...
@@ -646,6 +646,13 @@ class CsstMsDataManager:
...
@@ -646,6 +646,13 @@ class CsstMsDataManager:
for
k
,
v
in
DFS_CONF
[
dfs_node
].
items
():
for
k
,
v
in
DFS_CONF
[
dfs_node
].
items
():
os
.
environ
[
k
]
=
v
os
.
environ
[
k
]
=
v
@
staticmethod
def
dfs_setup
(
dfs_node
=
"pml"
):
""" Setup DFS configuration. """
assert
dfs_node
in
DFS_CONF
.
keys
()
for
k
,
v
in
DFS_CONF
[
dfs_node
].
items
():
os
.
environ
[
k
]
=
v
@
staticmethod
@
staticmethod
def
dfs_is_available
():
def
dfs_is_available
():
""" Test if DFS works. """
""" Test if DFS works. """
...
...
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