Commit 9d91ed34 authored by BO ZHANG's avatar BO ZHANG 🏀
Browse files

add static method dm.dfs_setup

parent db40ee1a
...@@ -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. """
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment