Skip to content

Commit 2968b69

Browse files
committed
Black formatting
1 parent 144406a commit 2968b69

File tree

6 files changed

+153
-162
lines changed

6 files changed

+153
-162
lines changed

README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
this is a test --
2-
3-
41
> :warning: **py4DSTEM version 0.14 update** :warning: Warning: this is a major update and we expect some workflows to break. You can still install previous versions of py4DSTEM [as discussed here](#legacyinstall)
52
63
> :warning: **Phase retrieval refactor version 0.14.9** :warning: Warning: The phase-retrieval modules in py4DSTEM (DPC, parallax, and ptychography) underwent a major refactor in version 0.14.9 and as such older tutorial notebooks will not work as expected. Notably, class names have been pruned to remove the trailing "Reconstruction" (`DPCReconstruction` -> `DPC` etc.), and regularization functions have dropped the `_iter` suffix (and are instead specified as boolean flags). See the [updated tutorials](https://github.com/py4dstem/py4DSTEM_tutorials) for more information.

py4DSTEM/process/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,3 @@
2121
raise exc
2222

2323
from py4DSTEM.process.utils import Cluster
24-

py4DSTEM/process/diffraction/crystal_phase.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def quantify_single_pattern(
102102
plot_correlation_radius=False,
103103
scale_markers_experiment=40,
104104
scale_markers_calculated=200,
105-
max_marker_size = 400,
105+
max_marker_size=400,
106106
crystal_inds_plot=None,
107107
phase_colors=None,
108108
figsize=(10, 7),
@@ -629,8 +629,7 @@ def quantify_single_pattern(
629629
qx,
630630
# s = scale_markers_experiment * intensity,
631631
s=np.minimum(
632-
scale_markers_experiment
633-
* bragg_peaks.data["intensity"][keep],
632+
scale_markers_experiment * bragg_peaks.data["intensity"][keep],
634633
max_marker_size,
635634
),
636635
marker="o",
@@ -1230,7 +1229,7 @@ def plot_dominant_phase(
12301229
self,
12311230
use_correlation_scores=False,
12321231
reliability_range=(0.0, 1.0),
1233-
normalize_exp_intensity = True,
1232+
normalize_exp_intensity=True,
12341233
sigma=0.0,
12351234
phase_colors=None,
12361235
ticks=True,
@@ -1319,7 +1318,6 @@ def plot_dominant_phase(
13191318
# if normalize_exp_intensity:
13201319
# phase_sig /= self.int_total[None,:,:]
13211320

1322-
13231321
# find highest correlation score for each crystal and match index
13241322
for a0 in range(self.num_crystals):
13251323
sub = phase_sig[a0] > phase_corr
@@ -1349,7 +1347,6 @@ def plot_dominant_phase(
13491347
if normalize_exp_intensity:
13501348
phase_rel /= self.int_total
13511349

1352-
13531350
phase_scale = np.clip(
13541351
(phase_rel - reliability_range[0])
13551352
/ (reliability_range[1] - reliability_range[0]),

0 commit comments

Comments
 (0)