Skip to main content

Find the bounding box and other related properties of a DAGMC h5m file

Project description

N|Python

CI with install

PyPI anaconda-publish

Features

Finds the bounding box of a DAGMC geometry file.

The bounding box is a pair of coordinates that define the upper right and lower left corner of the geometry.

This which is particularly useful when assigning a regular mesh tally over the entire DAGMC geometry.

Installation

Using Pip

pip install dagmc_bounding_box

Using Conda

conda install -c fusion-energy -c conda-forge dagmc_bounding_box

Usage

Find the bounding box

from dagmc_bounding_box import DagmcBoundingBox
my_corners = DagmcBoundingBox("dagmc.h5m").corners()
print(my_corners)
>>> ((-100, -100, -100), (100, 100, 100))

Extend the bounding box

from dagmc_bounding_box import DagmcBoundingBox
my_corners = DagmcBoundingBox("dagmc.h5m").corners(extend=(10, 5, 2)
print(my_corners)
>>> ((-110, -105, -102), (110, 105, 102))

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_bounding_box-0.2.1.tar.gz (13.7 kB view details)

Uploaded Source

Built Distribution

dagmc_bounding_box-0.2.1-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file dagmc_bounding_box-0.2.1.tar.gz.

File metadata

  • Download URL: dagmc_bounding_box-0.2.1.tar.gz
  • Upload date:
  • Size: 13.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.4

File hashes

Hashes for dagmc_bounding_box-0.2.1.tar.gz
Algorithm Hash digest
SHA256 c0b8779246a5f8247b580905e9f8c902019b28184d167ac05bfea3008b12aa90
MD5 57ce560842888485340d6261cd46f1cf
BLAKE2b-256 50769b58140edab973fcd114b4fe1d0f41d840afceb2ffd2b936a93f1ebc5d34

See more details on using hashes here.

File details

Details for the file dagmc_bounding_box-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for dagmc_bounding_box-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 859ad69363a6fea080c3ca40d950c9adf309a127a847eb407a7c4dda8cdd2122
MD5 1937404060a6752b91edaa0f0ae493ba
BLAKE2b-256 6a1bfbbd006f4f5b84dc8754a9538dc230835d71d3eea237cfbe038df279d7c2

See more details on using hashes here.

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