Skip to main content

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))

Metadata

Release files for dagmc-bounding-box 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dagmc-bounding-box 0.2.1
File Size Uploaded
dagmc_bounding_box-0.2.1.tar.gz 13.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dagmc-bounding-box 0.2.1
File Interpreter ABI Platform
dagmc_bounding_box-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 18.1 kB

Release files / dagmc_bounding_box-0.2.1.tar.gz

Download URL dagmc_bounding_box-0.2.1.tar.gz
Size 13.7 kB
Tags Source
SHA-256 checksum
How to use checksums
c0b8779246a5f8247b580905e9f8c902019b28184d167ac05bfea3008b12aa90
BLAKE2b-256 checksum
How to use checksums
50769b58140edab973fcd114b4fe1d0f41d840afceb2ffd2b936a93f1ebc5d34
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.10.4

Release files / dagmc_bounding_box-0.2.1-py3-none-any.whl

Download URL dagmc_bounding_box-0.2.1-py3-none-any.whl
Size 4.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
859ad69363a6fea080c3ca40d950c9adf309a127a847eb407a7c4dda8cdd2122
BLAKE2b-256 checksum
How to use checksums
6a1bfbbd006f4f5b84dc8754a9538dc230835d71d3eea237cfbe038df279d7c2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.10.4

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page