Exemple #1
0
 def __init__(self,
              warn_on_digit_loss=True,
              int_type=np.int64,
              float_type=np.float64):
     IdentityMapper.__init__(self)
     self.warn = warn_on_digit_loss
     self.float_type = float_type
     self.iinfo = np.iinfo(int_type)
Exemple #2
0
 def __init__(self, float_type=np.float32):
     IdentityMapper.__init__(self)
     self.float_type = float_type
Exemple #3
0
 def __init__(self, warn_on_digit_loss=True, int_type=np.int64,
         float_type=np.float64):
     IdentityMapper.__init__(self)
     self.warn = warn_on_digit_loss
     self.float_type = float_type
     self.iinfo = np.iinfo(int_type)