Commit 9b5367b7 authored by Yan Zhaojun's avatar Yan Zhaojun
Browse files

Edit csst_ifs_sim.py

parent 4e3907e5
Loading
Loading
Loading
Loading
Loading
+5 −6
Original line number Diff line number Diff line
@@ -41,12 +41,12 @@ The CSST IFS Image Simulator
=============================================

This file contains an image simulator for the CSST IFS.

#############################################################################
The approximate sequence of events in the simulator is as follows:

#. Read in a configuration file, which defines for example,
   detector characteristics (bias, dark and readout noise, gain,
   pixel scale,exposure time etc.).
   detector characteristics bias, dark and readout noise, gain,
   pixel scale,exposure time etc
#. Read in another file containing charge trap definitions (for CTI modelling).
#. Read in a file defining the cosmic rays (trail lengths and
   cumulative distributions).
@@ -88,8 +88,8 @@ Note:: This class is Python 3 compatible.


def find_filenames_with_keyword(folder_path, keyword):
    filenames = []

    filenames = []
    # 第一步:检查目录是否存在
    if os.path.isdir(folder_path):
        # 路径存在时才遍历文件
@@ -207,7 +207,6 @@ class CDM03bidir():

        :param data: imaging data to which the CDM03 model will be applied to.
        :type data: ndarray

        :param iquandrant: number of the quadrant to process
        :type iquandrant: int

@@ -244,7 +243,7 @@ class CDM03bidir():
        params = [self.params['beta_p'], self.params['beta_s'], self.params['fwc'], self.params['vth'],
                  self.params['vg'], self.params['t'], self.params['sfwc'], self.params['svg'], self.params['st'],
                  self.params['parallel'], self.params['serial']]

        # ######
        if self.logger:
            self.log.info('nt_p=' + str(self.nt_p))
            self.log.info('nt_s=' + str(self.nt_s))