diff --git a/csst_mci_sim/csst_mci_sim.py b/csst_mci_sim/csst_mci_sim.py index 63fd8a66fc73f180c93a5db6d5b52f19ac6e1141..169ca3b217e8b9872f9b2850e5eba82b40917745 100644 --- a/csst_mci_sim/csst_mci_sim.py +++ b/csst_mci_sim/csst_mci_sim.py @@ -1753,17 +1753,9 @@ class MCIsimulator(): ########## finish save PSF fits ########################################## ############################################################################ ###### add binary stars to the star catlog ####### - binary_star=np.array([[-0.05, 20, 20.5, 20, 19.5, 19, 18.8], - [-0.12, 20, 20.5, 20, 19.5, 19, 18.8], - [-5.45, 20, 20.5, 20, 19.5, 19, 18.8], - [-5.55, 20, 20.5, 20, 19.5, 19, 18.8], - [-10.05, 20, 20.5, 20, 19.5, 19, 18.8], - [-10.17, 20, 20.5, 20, 19.5, 19, 18.8], - [-15.45, 20, 20.5, 20, 19.5, 19, 18.8], - [-15.60, 20, 20.5, 20, 19.5, 19, 18.8]]) - nsrcs=len(self.star['ra_gaia']) + 8 + nsrcs=len(self.star['ra_gaia']) self.log.info('load star catlog successfully') @@ -1906,31 +1898,18 @@ class MCIsimulator(): #################### generate star image ########## - # if self.debug: - # nstar=nsrcs - # else: - - nstar=nsrcs - - sim_binary_star=False - - if sim_binary_star: - Nstar=nstar - else: - Nstar=nstar-8 + - for j in tqdm(range(Nstar)): ### nsrcs length + for j in tqdm(range(nsrcs)): ### nsrcs length if j==0: self.log.info('begin iteration........') - if j