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

more case test

parent b4201fbc
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -87,8 +87,8 @@ class CDM03bidir():
        Set up the logger.
        """
        self.logger = True
        if self.log is None:
            self.logger = False
        # if self.log is None:
        #     self.logger = False


    def applyRadiationDamage(self, data, iquadrant=0):
+22 −22
Original line number Diff line number Diff line
@@ -573,32 +573,32 @@ def dt2hmd(dt):
    return str_h+':'+str_m+':'+str_d

###############################################################################
def float2char(a, z):
    """
# def float2char(a, z):
#     """


    Parameters
    ----------
    a : TYPE
        DESCRIPTION.
    z : TYPE
        DESCRIPTION.
#     Parameters
#     ----------
#     a : TYPE
#         DESCRIPTION.
#     z : TYPE
#         DESCRIPTION.

    Returns
    -------
    TYPE
        DESCRIPTION.
#     Returns
#     -------
#     TYPE
#         DESCRIPTION.

    """
    # a is input float value
    # transfer float a to chars and save z bis
    b = str(a)
    n = len(b)
#     """
#     # a is input float value
#     # transfer float a to chars and save z bis
#     b = str(a)
#     n = len(b)

    if z >= n:
        return b
    else:
        return b[:z]
#     if z >= n:
#         return b
#     else:
#         return b[:z]


###############################################################################