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")
>>> ['steel', '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: 'steel', 2: 'graveyard'}
Aknowledgements
This package is based on a Python script by @gonuke
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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a205c03712289e12b3d195db68de95583bebf7f1dc672176b3f2608ff5df8057 |
|
MD5 | e120e11522a2e6c7bea34049dab96929 |
|
BLAKE2b-256 | 79bfec2cf71f236ae753c17c99da534f85123b9d93b319b5ee5998bf04a0d579 |
Close
Hashes for dagmc_h5m_file_inspector-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e988baa019f6617384bd4ffac133f960f9447698e1ed43781630254c2cf228e |
|
MD5 | 689c391776c6e0a0b4373ca0bcc8a707 |
|
BLAKE2b-256 | 44021ca24b3dc0c977c944e78aee9c5446bb7d825b3660b88c27b39dbdd81f98 |