Loading csst_ifs_sim/CTI/CTI.py +2 −2 Original line number Original line Diff line number Diff line Loading @@ -87,8 +87,8 @@ class CDM03bidir(): Set up the logger. Set up the logger. """ """ self.logger = True self.logger = True if self.log is None: # if self.log is None: self.logger = False # self.logger = False def applyRadiationDamage(self, data, iquadrant=0): def applyRadiationDamage(self, data, iquadrant=0): Loading csst_ifs_sim/csst_ifs_sim.py +22 −22 Original line number Original line Diff line number Diff line Loading @@ -573,32 +573,32 @@ def dt2hmd(dt): return str_h+':'+str_m+':'+str_d return str_h+':'+str_m+':'+str_d ############################################################################### ############################################################################### def float2char(a, z): # def float2char(a, z): """ # """ Parameters # Parameters ---------- # ---------- a : TYPE # a : TYPE DESCRIPTION. # DESCRIPTION. z : TYPE # z : TYPE DESCRIPTION. # DESCRIPTION. Returns # Returns ------- # ------- TYPE # TYPE DESCRIPTION. # DESCRIPTION. """ # """ # a is input float value # # a is input float value # transfer float a to chars and save z bis # # transfer float a to chars and save z bis b = str(a) # b = str(a) n = len(b) # n = len(b) if z >= n: # if z >= n: return b # return b else: # else: return b[:z] # return b[:z] ############################################################################### ############################################################################### Loading Loading
csst_ifs_sim/CTI/CTI.py +2 −2 Original line number Original line Diff line number Diff line Loading @@ -87,8 +87,8 @@ class CDM03bidir(): Set up the logger. Set up the logger. """ """ self.logger = True self.logger = True if self.log is None: # if self.log is None: self.logger = False # self.logger = False def applyRadiationDamage(self, data, iquadrant=0): def applyRadiationDamage(self, data, iquadrant=0): Loading
csst_ifs_sim/csst_ifs_sim.py +22 −22 Original line number Original line Diff line number Diff line Loading @@ -573,32 +573,32 @@ def dt2hmd(dt): return str_h+':'+str_m+':'+str_d return str_h+':'+str_m+':'+str_d ############################################################################### ############################################################################### def float2char(a, z): # def float2char(a, z): """ # """ Parameters # Parameters ---------- # ---------- a : TYPE # a : TYPE DESCRIPTION. # DESCRIPTION. z : TYPE # z : TYPE DESCRIPTION. # DESCRIPTION. Returns # Returns ------- # ------- TYPE # TYPE DESCRIPTION. # DESCRIPTION. """ # """ # a is input float value # # a is input float value # transfer float a to chars and save z bis # # transfer float a to chars and save z bis b = str(a) # b = str(a) n = len(b) # n = len(b) if z >= n: # if z >= n: return b # return b else: # else: return b[:z] # return b[:z] ############################################################################### ############################################################################### Loading