From a983a4c096c7f785bb7e93ac2e3e9b4fb08bcc52 Mon Sep 17 00:00:00 2001 From: BO ZHANG Date: Wed, 26 Oct 2022 22:56:34 +0800 Subject: [PATCH] tweaks --- csst_common/data_manager.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/csst_common/data_manager.py b/csst_common/data_manager.py index 2232ee3..d32f452 100644 --- a/csst_common/data_manager.py +++ b/csst_common/data_manager.py @@ -22,6 +22,10 @@ from .params import CSST_PARAMS as CP class CsstMsDataManager: """ CSST MS data manager, including MBI and SLS. + ``CsstMsDataManager`` provides an interface to switch between DFS and local file system. + To initialize ``CsstMsDataManager`` from local directory, use ``CsstMsDataManager.from_dir()`` + To initialize ``CsstMsDataManager`` on ``dandelion`` or ``PM node``, ``CsstMsDataManager.quickstart()``. + To initialize ``CsstMsDataManager`` from DFS, use ``CsstMsDataManager.from_dfs()``. This class provides an interface to access L0 data and generate L1 paths. Here are some examples for simulation with different versions. @@ -303,12 +307,12 @@ class CsstMsDataManager: assert set(detectors).issubset(set(self.available_detectors)) self.target_detectors = list(detectors) except AssertionError as ae: - print("@DM: available detector are ", self.available_detectors) - print("@DM: target detector are ", detectors) + print("@DM: available detectors are ", self.available_detectors) + print("@DM: target detectors are ", detectors) print("@DM: final target detectors are ", set(detectors) & set(self.available_detectors)) # raise ae - self.target_detectors = set(detectors) & set(self.available_detectors) + self.target_detectors = list(set(detectors) & set(self.available_detectors)) print("final target detector IDs are ", self.target_detectors) return -- GitLab