Skip to content

Commit

Permalink
one more try, new black
Browse files Browse the repository at this point in the history
  • Loading branch information
gvarnavi committed Jul 4, 2024
1 parent fdce7a9 commit b84847c
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 5 deletions.
16 changes: 16 additions & 0 deletions 24
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
conda-forge/linux-64 Using cache
conda-forge/noarch Using cache
Transaction

Prefix: /home/george/mambaforge/envs/py4dstem-dev

All requested packages already installed


Looking for: ['black']


Pinned packages:
- python 3.12.*


3 changes: 1 addition & 2 deletions py4DSTEM/process/diffraction/crystal_viz.py
Original file line number Diff line number Diff line change
Expand Up @@ -453,8 +453,7 @@ def plot_scattering_intensity(
int_sf_plot = calc_1D_profile(
k,
self.g_vec_leng,
(self.struct_factors_int**int_power_scale)
* (self.g_vec_leng**k_power_scale),
(self.struct_factors_int**int_power_scale) * (self.g_vec_leng**k_power_scale),
remove_origin=True,
k_broadening=k_broadening,
int_scale=int_scale,
Expand Down
4 changes: 1 addition & 3 deletions py4DSTEM/process/phase/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,9 +202,7 @@ def evaluate_gaussian_envelope(
self, alpha: Union[float, np.ndarray]
) -> Union[float, np.ndarray]:
xp = self._xp
return xp.exp(
-0.5 * self._gaussian_spread**2 * alpha**2 / self._wavelength**2
)
return xp.exp(-0.5 * self._gaussian_spread**2 * alpha**2 / self._wavelength**2)

def evaluate_spatial_envelope(
self, alpha: Union[float, np.ndarray], phi: Union[float, np.ndarray]
Expand Down

0 comments on commit b84847c

Please sign in to comment.