Commit a983a4c0 authored by BO ZHANG's avatar BO ZHANG 🏀
Browse files

tweaks

parent 4bfc0fd9
...@@ -22,6 +22,10 @@ from .params import CSST_PARAMS as CP ...@@ -22,6 +22,10 @@ from .params import CSST_PARAMS as CP
class CsstMsDataManager: class CsstMsDataManager:
""" """
CSST MS data manager, including MBI and SLS. 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. This class provides an interface to access L0 data and generate L1 paths.
Here are some examples for simulation with different versions. Here are some examples for simulation with different versions.
...@@ -303,12 +307,12 @@ class CsstMsDataManager: ...@@ -303,12 +307,12 @@ class CsstMsDataManager:
assert set(detectors).issubset(set(self.available_detectors)) assert set(detectors).issubset(set(self.available_detectors))
self.target_detectors = list(detectors) self.target_detectors = list(detectors)
except AssertionError as ae: except AssertionError as ae:
print("@DM: available detector are ", self.available_detectors) print("@DM: available detectors are ", self.available_detectors)
print("@DM: target detector are ", detectors) print("@DM: target detectors are ", detectors)
print("@DM: final target detectors are ", set(detectors) & set(self.available_detectors)) print("@DM: final target detectors are ", set(detectors) & set(self.available_detectors))
# raise ae # 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) print("final target detector IDs are ", self.target_detectors)
return return
......
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