Exemple #1
0
 def convert_to_quantity(self):
     """
     Apply convert_to_quantity on upper and lower limits
     """
     self.upper_limit = convert_to_quantity(self.upper_limit)
     self.lower_limit = convert_to_quantity(self.lower_limit)
     return self
Exemple #2
0
 def convert_to_quantity(self):
     """
     Apply convert_to_quantiy on min, max, and each version metric
     """
     self.max = convert_to_quantity(self.max)
     self.min = convert_to_quantity(self.min)
     for key, value in self.data.items():
         self.data[key] = value.convert_to_quantity()
     return self
Exemple #3
0
 def convert_to_quantity(self):
     """
     Apply convert_to_quantiy on all fields
     """
     self.max = convert_to_quantity(self.max)
     self.min = convert_to_quantity(self.min)
     self.value = convert_to_quantity(self.value)
     self.sample_size = convert_to_quantity(self.sample_size)
     return self