upxo.pxtal.fm_steel_3d.distribution_export module
Writing property distributions to files.
- upxo.pxtal.fm_steel_3d.distribution_export.export_distributions(distributions: Dict[str, Dict[str, list]], folder, formats: Iterable[str]) List[Path][source]
Write
{group: {property: [values]}}tofolderand return the files.Properties without values are left out and a group with none is skipped. Per group:
csv<group>_distributions.csv, one column per property, shortercolumns padded with empty cells;
xlsx<group>_distributions.xlsx(pandas), or, without pandas,<group>_distributions_nopandas.csvas forcsv;
txt<group>_<property>.txt, one value per line;pickle<group>_distributions.pkl, the dict of the group.folderis created if needed.