Skip to main content

Documentation Status Coverage

Quality gate

Bill of Materials Analysis

This repository allows for an engineering assembly to be represented in a Bill of Materials (BOM) structure for analysis. The aim was to reduce the cognative complexity of the various data sets that are required for input or output of an analysis workflow. The repository also includes a number of features to help with this analysis.

The motivation for this package comes from a desire to order complex system data used by analysis in a logical. The chosen method for ordering this data is the bill of materials as it provides a common framework used across engineering.

The bill of materials provides a hieracy of materials, components, and assemblies all of which can contain data that is important for the analysis. For example, a user may want to assess the mass of an assembly by summing the mass of all the components in that make it up.

The Bill of Materials can be plotted to help understand the system (taken from example):

tokamak
├── coil_set
│   ├── east
│   ├── north
│   ├── south
│   └── west
└── divertor

The data for each of the components can also be displayed easily:

================================================================================
| var           │ value   │ unit          │ description                        │
================================================================================
│ mass          │ 1000    │ metric_ton    │                                    │
================================================================================
│ configuration │ ST      │ dimensionless │                                    │
================================================================================
│ major_radius  │ 2       │ meter         │ the geometric centre of the plasma │
================================================================================    

Installation

The easiest way to install bom_analysis is using pip pip:

pip install bom_analysis

Help and Support

Testing

BOM Analysis contains a test suite that can be ran using pytest (must be installed). Three markers have been used to distiguish the different testing levels:

  • unittest: runs unit tests that generally only test an individual method by using mocking
  • integrationtest: runs the integration tests
  • regressiontest: tests bugs that have been indentified in other versions

The full test suite can be ran by navigating to the source directory and running pytest:

pytest 

It is possible to filter the tests by the markers:

pytest -m "unittest"

Or filter out markers:

pytest -m "not integrationtest and not regressiontest"

License

BSD 3

Release files for bom-analysis 1.0.0

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

Source distribution (sdist)

Source distribution for bom-analysis 1.0.0
File Size Uploaded
bom_analysis-1.0.0.tar.gz 47.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for bom-analysis 1.0.0
File Interpreter ABI Platform
bom_analysis-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 98.5 kB

Release files / bom_analysis-1.0.0.tar.gz

Download URL bom_analysis-1.0.0.tar.gz
Size 47.5 kB
Tags Source
SHA-256 checksum
How to use checksums
4bc7d6ec299a69aae4f08e2b9a0cf4b61f5969488e3131b24581f53b80217368
BLAKE2b-256 checksum
How to use checksums
30a243acedfa12a075c75e1e2899217ed72036bcd245dac39c969a76fd864ee8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release files / bom_analysis-1.0.0-py3-none-any.whl

Download URL bom_analysis-1.0.0-py3-none-any.whl
Size 51.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2a019b9a50f12dfb9d12cc9aba1459b7963aba8af2119c2f4d6c5c3473fe3d2b
BLAKE2b-256 checksum
How to use checksums
a601e383c1e2c8fead3d8763ec04f2e268d00d5ed03a6beed11cbcb691b2182b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release history Release notifications | RSS feed

This release

1.0.0 This release

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