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

use consistent DFS configuration in L0 query

parent 8d015c91
......@@ -573,7 +573,7 @@ class CsstMsDataManager:
def from_dfs(obs_id="100000100", datatype="mbi", dir_l0="/L1Pipeline/L0", dir_l1="/L1Pipeline/L1",
dfs_mode=True, dfs_node="pml"):
""" Initialize CsstMsDataManager from DFS. """
records = Level0DataApi().find(obs_id=obs_id) # query DFS
records = CsstMsDataManager(dfs_node=dfs_node).dfs_L0DataApi.find(obs_id=obs_id)
print(f"{records['totalCount']} records obtained!")
tbl = Table([_.__dict__ for _ in records["data"]])
tbl.sort(["detector_no", "obs_type"])
......
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