Exemplo n.º 1
0
 def set_convolution_axis(self):
     """
     Creates an axis to use to generate the data of the model in the precise
     scale to obtain the correct axis and origin after convolution with the
     lowloss spectrum.
     """
     ll_axis = self.low_loss.axes_manager.signal_axes[0]
     dimension = self.axis.size + ll_axis.size - 1
     step = self.axis.scale
     knot_position = ll_axis.size - ll_axis.value2index(0) - 1
     self.convolution_axis = generate_axis(self.axis.offset, step, dimension, knot_position)
Exemplo n.º 2
0
 def set_convolution_axis(self):
     """
     Creates an axis to use to generate the data of the model in the precise
     scale to obtain the correct axis and origin after convolution with the
     lowloss spectrum.
     """
     ll_axis = self.low_loss.axes_manager.signal_axes[0]
     dimension = self.axis.size + ll_axis.size - 1
     step = self.axis.scale
     knot_position = ll_axis.size - ll_axis.value2index(0) - 1
     self.convolution_axis = generate_axis(self.axis.offset, step,
                                           dimension, knot_position)