Skip to content

Commit

Permalink
Merge pull request #396 from HEXRD/tThWidth-fix
Browse files Browse the repository at this point in the history
Fixing write error in material
  • Loading branch information
joelvbernier authored Feb 1, 2022
2 parents a1cb769 + a3b091a commit 4ae0a3e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion hexrd/material.py
Original file line number Diff line number Diff line change
Expand Up @@ -741,7 +741,10 @@ def dump_material(self, file, path=None):
AtomInfo['stiffness'] = self.unitcell.stiffness
AtomInfo['hkls'] = self.planeData.getHKLs()
AtomInfo['dmin'] = self.unitcell.dmin
AtomInfo['tThWidth'] = numpy.degrees(self.planeData.tThWidth)
if self.planeData.tThWidth is None:
AtomInfo['tThWidth'] = numpy.degrees(Material.DFLT_TTH)
else:
AtomInfo['tThWidth'] = numpy.degrees(self.planeData.tThWidth)
'''
lattice parameters
'''
Expand Down

0 comments on commit 4ae0a3e

Please sign in to comment.