Skip to content

Commit

Permalink
Update sim_utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
isabelwood100 committed Aug 27, 2020
1 parent 96bcc4f commit 66da664
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion diffsims/utils/sim_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ def get_kinematical_intensities(
# Define an intensity scaling that is linear with distance from Ewald sphere
# along the beam direction.

if (excitation_error!=None):
if (all(excitation_error)!=None):
shape_factor = 1 - (excitation_error / max_excitation_error)

else:
Expand Down

0 comments on commit 66da664

Please sign in to comment.