From 8a26648272176d79eaf793ec59125fdc8d6a253f Mon Sep 17 00:00:00 2001 From: bsavitzky Date: Thu, 16 Nov 2023 08:42:35 -0800 Subject: [PATCH] Revert "Merge pull request #565 from alex-rakowski/mask_hotpatch" This reverts commit 76ae0fa6cd241f13e267ea94c0660c321619cee7, reversing changes made to e03f0a8f95cb9e5117356771b61b7085e2a192fc. --- py4DSTEM/process/calibration/origin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/py4DSTEM/process/calibration/origin.py b/py4DSTEM/process/calibration/origin.py index a0717e321..ef0f35a96 100644 --- a/py4DSTEM/process/calibration/origin.py +++ b/py4DSTEM/process/calibration/origin.py @@ -154,7 +154,7 @@ def fit_origin( robust=robust, robust_steps=robust_steps, robust_thresh=robust_thresh, - data_mask=mask == True, # noqa E712 + data_mask=mask is True, ) popt_y, pcov_y, qy0_fit, _ = fit_2D( f, @@ -162,7 +162,7 @@ def fit_origin( robust=robust, robust_steps=robust_steps, robust_thresh=robust_thresh, - data_mask=mask == True, # noqa E712 + data_mask=mask is True, ) # Compute residuals