From 3b3ba9edbe4f15dc5a31168893a52f0284b55913 Mon Sep 17 00:00:00 2001 From: BO ZHANG Date: Tue, 23 Aug 2022 14:43:52 +0800 Subject: [PATCH] updated example --- examples/how_this_code_will_be_used.py | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/examples/how_this_code_will_be_used.py b/examples/how_this_code_will_be_used.py index bccbf39..b4e8f27 100644 --- a/examples/how_this_code_will_be_used.py +++ b/examples/how_this_code_will_be_used.py @@ -49,10 +49,19 @@ class CsstProcFlipImage(CsstProcessor): return @staticmethod - def run_one_detector(dm, ccd_id): + def run_one_detector(dm: CsstMscDataManager, ccd_id: int = 6): """ run for one detector - this function + Parameters + ---------- + dm: + csst data manager, used to manage the input/output file paths + ccd_id: + detector id + + Returns + ------- + the flipped image """ # input file path fp_input = dm.l1_ccd(ccd_id, post="img.fits") -- GitLab