Commit 6427f7d9 authored by BO ZHANG's avatar BO ZHANG 🏀
Browse files

tweaks

parent 631ae616
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -574,10 +574,10 @@ class CsstMsDataManager:
    def dfs_l0_query(self, obs_id: str = "100000100"):
        """ Query L0 data from DFS. """
        result = self.dfs_L0DataApi.find(obs_id=str(obs_id))
        print(f"{result.totalCount} entries returned from DFS.")
        if not result.code == 0:
            raise ValueError(f"DFS returns non-zero code! ({result.code})")
        tbl = Table([_.__dict__ for _ in result.data])
        print(f"{result['totalCount']} entries returned from DFS.")
        if not result["code"] == 0:
            raise ValueError(f"DFS returns non-zero code! ({result['code']})")
        tbl = Table([_.__dict__ for _ in result["data"]])
        tbl.sort(["detector_no", "obs_type"])
        # Check if all 30 detectors are available
        for detector in CP["all"]["detectors"]: