Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dagmc_h5m_file_inspector-0.2.1.tar.gz (3.5 kB view hashes)

Uploaded Source

Built Distribution

dagmc_h5m_file_inspector-0.2.1-py3-none-any.whl (4.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page