diff --git a/hexrd/core/material/material.py b/hexrd/core/material/material.py index 65606847..8dda950c 100644 --- a/hexrd/core/material/material.py +++ b/hexrd/core/material/material.py @@ -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 @@ -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