Module: xrd.material

Module for XRD material class

Use the Material class directly for new materials. Known materials are defined by name in materialDict.

1 Class

class hexrd.xrd.material.Material(name='material', cfgP=None)[source]

Bases: object

Simple class for holding lattice parameters, accessible by name.

The class references materials by name and contains lattice and space group data.

__init__(name='material', cfgP=None)[source]

Constructor for Material

name – (str) name of material cfgP – (instance) configuration file parser with

– the material name as a section
beamEnergy

Beam energy in keV

hklMax

Max sum of squares for HKLs

latticeParameters

Lattice parameters

On output, all six paramters are returned.

On input, either all six or a minimal set is accepted.

The values have units attached, i.e. they are valWunit instances.

name

Name of material

planeData[source]

(read only) Return the planeData attribute (lattice parameters)

sgnum

Space group number

spaceGroup[source]

(read only) Space group

1 Function

hexrd.xrd.material.loadMaterialList(cfgFile)[source]

Load a list of materials from a file

The file uses the config file format. See ConfigParser module.