Loading csst_dag/cli/inspect.py +5 −4 Original line number Diff line number Diff line Loading @@ -12,8 +12,6 @@ python -m csst_dag.cli.inspect \ --instrument=MSC \ --obs-type=WIDE \ --obs-group=W2 \ --obs-id=10100232366 \ --detector=09 \ --prc-status=0 """ Loading Loading @@ -95,8 +93,8 @@ t_prc_status.pprint_all() for stats_type, stats_keys in dict( obs_type=["dataset", "instrument", "obs_type", "prc_status"], obs_id=["dataset", "instrument", "obs_type", "obs_id", "prc_status"], detector=["dataset", "instrument", "obs_type", "detector", "prc_status"], obs_id=["dataset", "instrument", "obs_type", "obs_id", "prc_status"], ).items(): print("\n>>> STATS DIM: ", stats_type) u_data, c_data = np.unique(data_basis[stats_keys], return_counts=True) Loading @@ -106,4 +104,7 @@ for stats_type, stats_keys in dict( if args.reset is not None: print("Resetting prc_status to ", args.reset) dfs.update_prc_status_by_ids(list(data_basis["_id"]), args.reset,) No newline at end of file dfs.update_prc_status_by_ids( list(data_basis["_id"]), args.reset, ) Loading
csst_dag/cli/inspect.py +5 −4 Original line number Diff line number Diff line Loading @@ -12,8 +12,6 @@ python -m csst_dag.cli.inspect \ --instrument=MSC \ --obs-type=WIDE \ --obs-group=W2 \ --obs-id=10100232366 \ --detector=09 \ --prc-status=0 """ Loading Loading @@ -95,8 +93,8 @@ t_prc_status.pprint_all() for stats_type, stats_keys in dict( obs_type=["dataset", "instrument", "obs_type", "prc_status"], obs_id=["dataset", "instrument", "obs_type", "obs_id", "prc_status"], detector=["dataset", "instrument", "obs_type", "detector", "prc_status"], obs_id=["dataset", "instrument", "obs_type", "obs_id", "prc_status"], ).items(): print("\n>>> STATS DIM: ", stats_type) u_data, c_data = np.unique(data_basis[stats_keys], return_counts=True) Loading @@ -106,4 +104,7 @@ for stats_type, stats_keys in dict( if args.reset is not None: print("Resetting prc_status to ", args.reset) dfs.update_prc_status_by_ids(list(data_basis["_id"]), args.reset,) No newline at end of file dfs.update_prc_status_by_ids( list(data_basis["_id"]), args.reset, )