Extracts information from DAGMC h5m files including volumes number, material tags
Project description
dagmc-h5m-file-inspector
A minimal Python package that finds the volume ids and the material tags in a DAGMC h5m file.
Installation
conda install -c conda-forge moab
pip install dagmc-h5m-file-inspector
Usage
Finding the volume IDs in a DAGMC h5m file.
import dagmc_h5m_file_inspector as di
di.get_volumes_from_h5m("dagmc.h5m")
>>> [1, 2]
Finding the material tags in a DAGMC h5m file.
import dagmc_h5m_file_inspector as di
di.get_materials_from_h5m("dagmc.h5m")
>>> ['mat:steel', 'mat:graveyard']
Finding the volume IDs with their materials present in a DAGMC h5m file.
import dagmc_h5m_file_inspector as di
di.get_volumes_and_materials_from_h5m
>>> {1: 'mat:steel', 2: 'mat:graveyard'}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for dagmc_h5m_file_inspector-0.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0134fea022137ddb0e7fa165b428ca90ec8a0e279e83579b7c783631cad9ee59 |
|
MD5 | 7c4ffc5822ec7cc6a78c6a25a1dec4ea |
|
BLAKE2b-256 | 3bde2e7e6bc2f132bffe33cccd73123789a3595ffda95b29fa1bbe76e7167ec8 |
Close
Hashes for dagmc_h5m_file_inspector-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c2752df021b1c0e9512542eb1dc24b1662c25d1fa8be500bc5a6163d94259d9 |
|
MD5 | 0ab3f09f179225d80b8f9b6eff10c9cb |
|
BLAKE2b-256 | 12b7e55ae3612a7a1f1dcc3d6e17277cddd74a23156acccc64fc7f37d226a1ff |