Skip to content

Commit

Permalink
changed the errors added to A2 variable when linear backgrounds are used
Browse files Browse the repository at this point in the history
  • Loading branch information
fanchercm committed Oct 4, 2024
1 parent 01f481a commit e342a90
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pyrs/core/peak_profile_utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ def calculate_effective_parameters(self, param_value_array, param_error_array):
eff_error_array['A2'] = param_error_array['A2'] # A2
except ValueError:
eff_value_array['A2'] = np.zeros_like(param_value_array['A1']) # A2
eff_error_array['A2'] = np.zeros_like(param_value_array['A1']) # A2
eff_error_array['A2'] = np.zeros_like(param_value_array['A1']) + 0.01 # A2

return eff_value_array, eff_error_array

Expand Down Expand Up @@ -406,7 +406,7 @@ def calculate_effective_parameters(self, param_value_array, param_error_array):
eff_error_array['A2'] = param_error_array['A2'] # A2
except ValueError:
eff_value_array['A2'] = np.zeros_like(param_value_array['A1']) # A2
eff_error_array['A2'] = np.zeros_like(param_value_array['A1']) # A2
eff_error_array['A2'] = np.zeros_like(param_value_array['A1']) + 0.01 # A2

return eff_value_array, eff_error_array

Expand Down
1 change: 1 addition & 0 deletions pyrs/interface/texture_fitting/texture_fitting_crtl.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ def plot_2D_params(self, ax_object, xlabel, ylabel, peak_number, fit_object, out
fit_object=fit_object,
out_of_plane=out_of_plane)

print(xdata, ydata)
if isinstance(ydata[0], np.ndarray):
yerr = ydata[1]
ydata = ydata[0]
Expand Down
2 changes: 1 addition & 1 deletion pyrs/interface/texture_fitting/texture_fitting_viewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -968,7 +968,7 @@ def __init__(self, fit_peak_model, fit_peak_ctrl, parent=None):
self.splitter.setStretchFactor(0, 1)
self.splitter.setStretchFactor(1, 5)

self.resize(1024, 1024)
self.resize(1200, 1800)

@property
def controller(self):
Expand Down

0 comments on commit e342a90

Please sign in to comment.