@@ -159,8 +159,8 @@ def get_pattern(self, structure: Structure, scaled=True, two_theta_range=(0, 90)
159
159
)
160
160
161
161
# Obtain crystallographic reciprocal lattice points within range
162
- recip_latt = lattice .reciprocal_lattice_crystallographic
163
- recip_pts = recip_latt .get_points_in_sphere ([[0 , 0 , 0 ]], [0 , 0 , 0 ], max_r )
162
+ recip_lattice = lattice .reciprocal_lattice_crystallographic
163
+ recip_pts = recip_lattice .get_points_in_sphere ([[0 , 0 , 0 ]], [0 , 0 , 0 ], max_r )
164
164
if min_r :
165
165
recip_pts = [pt for pt in recip_pts if pt [1 ] >= min_r ]
166
166
@@ -172,7 +172,7 @@ def get_pattern(self, structure: Structure, scaled=True, two_theta_range=(0, 90)
172
172
_coeffs = []
173
173
_frac_coords = []
174
174
_occus = []
175
- _dwfactors = []
175
+ _dw_factors = []
176
176
177
177
for site in structure :
178
178
for sp , occu in site .species .items ():
@@ -184,15 +184,15 @@ def get_pattern(self, structure: Structure, scaled=True, two_theta_range=(0, 90)
184
184
f"Unable to calculate XRD pattern as there is no scattering coefficients for { sp .symbol } ."
185
185
)
186
186
_coeffs .append (c )
187
- _dwfactors .append (self .debye_waller_factors .get (sp .symbol , 0 ))
187
+ _dw_factors .append (self .debye_waller_factors .get (sp .symbol , 0 ))
188
188
_frac_coords .append (site .frac_coords )
189
189
_occus .append (occu )
190
190
191
191
zs = np .array (_zs )
192
192
coeffs = np .array (_coeffs )
193
193
frac_coords = np .array (_frac_coords )
194
194
occus = np .array (_occus )
195
- dwfactors = np .array (_dwfactors )
195
+ dw_factors = np .array (_dw_factors )
196
196
peaks : dict [float , list [float | list [tuple [int , ...]]]] = {}
197
197
two_thetas : list [float ] = []
198
198
@@ -227,7 +227,7 @@ def get_pattern(self, structure: Structure, scaled=True, two_theta_range=(0, 90)
227
227
axis = 1 , # type: ignore
228
228
)
229
229
230
- dw_correction = np .exp (- dwfactors * s2 )
230
+ dw_correction = np .exp (- dw_factors * s2 )
231
231
232
232
# Structure factor = sum of atomic scattering factors (with
233
233
# position factor exp(2j * pi * g.r and occupancies).
0 commit comments