code: def _calc_strain(self, loc_input, loc_layer, motion, *args):
          
          strain_max = self._calc_strain_max(loc_input, loc_layer, motion, *args)
          return self.strain_ratio * strain_max
docs: Compute the strain used for iterations of material properties.