Commit 4716160c authored by Yan Zhaojun's avatar Yan Zhaojun
Browse files

more case test

parent b4201fbc
Pipeline #4070 passed with stage
in 0 seconds
...@@ -87,8 +87,8 @@ class CDM03bidir(): ...@@ -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):
......
...@@ -573,32 +573,32 @@ def dt2hmd(dt): ...@@ -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
-------
TYPE
DESCRIPTION.
""" # Returns
# a is input float value # -------
# transfer float a to chars and save z bis # TYPE
b = str(a) # DESCRIPTION.
n = len(b)
if z >= n: # """
return b # # a is input float value
else: # # transfer float a to chars and save z bis
return b[:z] # b = str(a)
# n = len(b)
# if z >= n:
# return b
# else:
# return b[:z]
############################################################################### ###############################################################################
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment