Skip to content

Commit

Permalink
More coverage adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
pc494 committed Sep 2, 2020
1 parent da9a0e5 commit bebba5f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions diffsims/generators/diffraction_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ class DiffractionGenerator(object):
----------
accelerating_voltage : float
The accelerating voltage of the microscope in kV.
max_excitation_error : float
Removed in this version, defaults to None
debye_waller_factors : dict of str:value pairs
Maps element names to their temperature-dependent Debye-Waller factors.
scattering_params : str
Expand All @@ -68,11 +70,11 @@ class DiffractionGenerator(object):
def __init__(
self,
accelerating_voltage,
max_excitation_error=None,
debye_waller_factors={},
scattering_params="lobato",
*args
scattering_params="lobato"
):
if args:
if max_excitation_error is not None:
print(
"This class changed in v0.3 and no longer takes a maximum_excitation_error"
)
Expand Down

0 comments on commit bebba5f

Please sign in to comment.