Пример #1
0
 def calculate_size(self, max_size_ratio=0.25):
     ps = self.pixel_size if self.pixel_size is not None else 1
     size = closest_nice_number(ps * (self.xmax - self.xmin) *
                                max_size_ratio)
     self.length = size
Пример #2
0
 def calculate_size(self, max_size_ratio=0.25):
     ps = self.pixel_size if self.pixel_size is not None else 1
     size = closest_nice_number(ps * (self.xmax - self.xmin) *
                                max_size_ratio)
     self.length = size