upxo.pxtal.fm_steel_3d.orientation_files module
Reading tables of Euler angles per item (block, sub-block, …) from a file.
- upxo.pxtal.fm_steel_3d.orientation_files.read_euler_table(path, id_column: str = 'block_id') Dict[str, Tuple[float, float, float]][source]
Bunge Euler angles
(phi1, Phi, phi2)in degrees, keyed by item id.The file is a table with the columns
id_column,phi1,phiandphi2. Column names are compared in lower case without surrounding blanks. The format follows the extension:.xlsx/.xlsExcel,.txt/.tsvtab-separated text, anything else comma-separated.- Raises:
ValueError – If a required column is missing or an angle is not a number.