Skip to content

Commit cc82c7f

Browse files
Add method to clear background region
1 parent 2869cff commit cc82c7f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

swfiles/sw_fitpowder.m

+5-1
Original file line numberDiff line numberDiff line change
@@ -430,8 +430,12 @@ function set_caching(obj, do_cache)
430430
function clear_cache(obj)
431431
obj.ycalc_cached = [];
432432
obj.model_params_cached = [];
433+
obj.clear_background_region();
434+
end
435+
436+
function clear_background_region(obj)
433437
obj.ibg = [];
434-
obj.reset_errors_of_bg_bins()
438+
obj.reset_errors_of_bg_bins();
435439
end
436440

437441
function set_bg_region(obj, en_lo, en_hi, varargin)

0 commit comments

Comments
 (0)