From d1a7eb8ba2a8bda6e128107fdabde936c9976c54 Mon Sep 17 00:00:00 2001 From: alex-rakowski Date: Mon, 13 Nov 2023 10:26:12 -0800 Subject: [PATCH] changing to assignment --- py4DSTEM/process/fit/fit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py4DSTEM/process/fit/fit.py b/py4DSTEM/process/fit/fit.py index df90feaa8..9973ff79f 100644 --- a/py4DSTEM/process/fit/fit.py +++ b/py4DSTEM/process/fit/fit.py @@ -107,7 +107,7 @@ def fit_2D( fit_mean_square_error > np.mean(fit_mean_square_error) * robust_thresh**2 ) - mask[_mask] is False + mask[_mask] = False # perform fitting popt, pcov = curve_fit(