Skip to content

Commit

Permalink
Cleaning up testing syntax, hopefully addressing coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
pc494 committed Sep 2, 2020
1 parent 3cbb7d5 commit da9a0e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions diffsims/tests/test_generators/test_diffraction_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,9 @@ def test_shape_factor_strings(

def test_shape_factor_custom(self, diffraction_calculator, local_structure):
def local_excite(excitation_error, maximum_excitation_error, t):
return (np.sin(t) * excitation_error) / maxium_excitation_error
return (np.sin(t) * excitation_error) / maximum_excitation_error

_ = diffraction_calculator.calculate_ed_data(local_structure, 2, t=0.2)
_ = diffraction_calculator.calculate_ed_data(local_structure, 2,excitation_function=local_excite, t=0.2)

def test_calculate_profile_class(self, local_structure, diffraction_calculator):
# tests the non-hexagonal (cubic) case
Expand Down

0 comments on commit da9a0e5

Please sign in to comment.