Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions hexrd/core/material/material.py
Original file line number Diff line number Diff line change
Expand Up @@ -961,7 +961,7 @@ def _readHDFxtal(self, fhdf=DFLT_NAME, xtal=DFLT_NAME):
tThWidth = np.array(gid.get('tThWidth'), dtype=np.float64).item()
tThWidth = np.radians(tThWidth)
else:
tThWidth = Material.DFLT_TTH
tThWidth = None

self._tThWidth = tThWidth

Expand Down Expand Up @@ -991,9 +991,7 @@ def dump_material(self, file, path=None):
AtomInfo['hkls'] = self.planeData.getHKLs()
AtomInfo['dmin'] = self.unitcell.dmin
AtomInfo['kev'] = self.beamEnergy.getVal("keV")
if self.planeData.tThWidth is None:
AtomInfo['tThWidth'] = np.degrees(Material.DFLT_TTH)
else:
if self.planeData.tThWidth is not None:
AtomInfo['tThWidth'] = np.degrees(self.planeData.tThWidth)

AtomInfo['pressure'] = self.pressure
Expand Down
Loading