Commit 77c20b40 authored by BO ZHANG's avatar BO ZHANG 🏀
Browse files

tweaks

parent 4fd243b6
...@@ -28,10 +28,10 @@ class CsstDAGs(dict): ...@@ -28,10 +28,10 @@ class CsstDAGs(dict):
print(DAG_LIST.keys()) print(DAG_LIST.keys())
@staticmethod @staticmethod
def get_dag(dag: str = ""): def get_dag(self, dag: str = ""):
assert dag in DAG_LIST, f"{dag} not in DAG_LIST" assert dag in DAG_LIST, f"{dag} not in DAG_LIST"
return DAG_LIST[dag] return self.get(dag, None)
@staticmethod @staticmethod
def get_all(): def get_all(self):
return DAG_LIST return set(self.keys())
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