Skip to content

Commit

Permalink
Merge 594a006 into 9562ac8
Browse files Browse the repository at this point in the history
  • Loading branch information
pc494 committed Sep 11, 2020
2 parents 9562ac8 + 594a006 commit 80be0cb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 13 deletions.
11 changes: 1 addition & 10 deletions diffsims/sims/diffraction_simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,31 +177,22 @@ class ProfileSimulation:
Magnitudes of scattering vectors.
intensities : array-like, shape [n_peaks, 1]
The kinematic intensity of the diffraction peaks.
Returns
-------
hkls: [{(h, k, l): mult}] {(h, k, l): mult} is a dict of Miller
indices for all diffracted lattice facets contributing to each
intensity.
"""

def __init__(self, magnitudes, intensities, hkls):
"""Initializes the ProfileSimulation object with data values for the
magnitudes, intensities, and hkls.
"""
self.magnitudes = magnitudes
self.intensities = intensities
self.hkls = hkls

def get_plot(self, g_max, annotate_peaks=True, with_labels=True, fontsize=12):

def get_plot(self,annotate_peaks=True, with_labels=True, fontsize=12):
"""Plots the diffraction profile simulation for the
calculate_profile_data method in DiffractionGenerator.
Parameters
----------
g_max : float
Maximum g-vector magnitude to plot.
annotate_peaks : boolean
If True, peaks are annotaed with hkl information.
with_labels : boolean
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@
"grid",
[
pytest.param(
get_local_grid(resolution=30, center=(0, 1, 0), grid_width=35),
marks=pytest.mark.xfail(reason="Downstream bug"),
get_local_grid(resolution=30, center=(0,1,0), grid_width=35)
),
get_fundamental_zone_grid(space_group=20, resolution=20),
],
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"tqdm>=0.4.9",
"transforms3d",
"diffpy.structure>=3.0.0", # First Python 3 support
"orix>=0.4.0",
"orix>=0.5.0",
"numba",
"psutil",
],
Expand Down

0 comments on commit 80be0cb

Please sign in to comment.