def resize_my_bins(self): from resize_bin_py3_class import resize_bins my_binned_spectrum = resize_bins(self.my_array, self.result_binsize, self.filename) self.result_binsize = my_binned_spectrum.minimum_bin() self.result_binned_array = my_binned_spectrum.shrink_subarray() self.max_x, self.min_x = my_binned_spectrum.range_of_spectrum() my_binned_spectrum.plot_array() return self.result_binned_array
def resize_my_bins(self): # call plot -- might be summarized via the plot call below... 2x!!!! #my_picture.plot_HHG_800nm() #np.savetxt(self.filename[self.numerator - x]+'_binned'+".txt", my_array, delimiter=' ', fmt='%1.4e') # use exponential notation from resize_bin_py3_class import resize_bins my_binned_spectrum = resize_bins(self.my_array,self.result_binsize, self.filename ) self.result_binsize = my_binned_spectrum.minimum_bin() self.result_binned_array = my_binned_spectrum.shrink_subarray() self.max_x, self.min_x = my_binned_spectrum.range_of_spectrum() my_binned_spectrum.plot_array() #print(self.filename, self.max_x, self.min_x) return self.result_binned_array