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.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 50d9f91544e2089478596efda429de12de5ea6aff040d9e6653a5b6a972b9e4e |
|
MD5 | f756dc6bca451f5f3616f2c60fc1b678 |
|
BLAKE2b-256 | df595ed0d00a5c0959c5831928b83840fd7203b1fda8235368be91da76526b90 |
Close
Hashes for dagmc_h5m_file_inspector-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 33950b9ea8ff36809437db56ca4ab258f51c22738727e8853998e450ec3f8608 |
|
MD5 | 528e399f4ecd74c688de40ed3a66c081 |
|
BLAKE2b-256 | a9c34c20598c30779d3b23c50ec0a0232b4968ef3be5196622e8dbdf6fc13462 |