pyextal.hdf5io.maps¶
Potential / charge-density maps stored under their refinement run.
Layout:
refinement/run_NNN/maps/<name>/
attrs: kind ('potential'|'charge'), dim (2|3), layer, timestamp,
settings_json (the arguments the map was made with)
refined map from the refined structure factors (complex)
reference map from the .dat / IAM structure factors (complex)
diff refined - reference
hkl (n, 3) beams summed
sf_refined, sf_reference (n,) complex coefficients
source (n,) 'refined' | 'friedel' | 'model' per beam
axes (dim, 3) fractional grid step along each array axis
lattice (3, 3) Cartesian lattice vectors, Angstrom
Attributes¶
Functions¶
|
|
|
Writes a pyextal.potentialMap.MapResult under its run. |
|
Reads a map written by save_map. |
|
Summaries of the maps stored under a run. |
Module Contents¶
- pyextal.hdf5io.maps._ARRAYS = ('refined', 'reference', 'diff', 'hkl', 'sf_refined', 'sf_reference', 'axes', 'lattice')¶
- pyextal.hdf5io.maps._run_group(f, run)¶
- pyextal.hdf5io.maps.save_map(run, name, result, overwrite=False)¶
Writes a pyextal.potentialMap.MapResult under its run.
- Parameters:
run (RefinedRun) – The run the map was made from.
name (str) – Map name, e.g. ‘proj110_potential’.
result (MapResult) – The maps.
overwrite (bool) – Replace an existing map of that name.
- Returns:
The group path written.
- Return type:
str
- pyextal.hdf5io.maps.load_map(run, name)¶
Reads a map written by save_map.
- Returns:
MapResult
- pyextal.hdf5io.maps.list_maps(run)¶
Summaries of the maps stored under a run.
- Returns:
name, kind, dim, layer, shape, timestamp.
- Return type:
list of dict