Skip to main content

Six-Sigma based analysis of manufacturing data

Project description

Purpose

To provide analysis tools and metrics useful in manufacturing environments.

Go to the documentation.

Project Maturity

Plots and project are reasonably mature at this point. Calculations have been refined and are in-line with commonly accepted standards.

A major v3.0 update is coming to control charts and will be available in manufacturing.alt_vis module. For instance, instead of using from manufacturing import x_mr_chart, you would use from manufacturing.alt_vis import x_mr_chart. The new API should allow for a greater degree of flexibility with recalculation points and the ability to relabel the axes. Additionally, alternative axis labels will be able to be supplied. These changes will eventually become "the way", but are to be considered experimental until the v3.0 update.

Installation

To install from pypi:

pip install manufacturing

or, if you use uv:

uv add manufacturing

Building

This package uses uv to manage the workflow.

uv build

Testing

Tests will take a while to run - it is generating several hundred plots in the background.

uv run pytest

Usage

Cpk Visualization

The most useful feature of the manufacturing package is the visualization of Cpk. As hinted previously, the ppk_plot() function is the primary method for display of Cpk visual information. First, get your data into a list, numpy.array, or pandas.Series; then supply that data, along with the lower_control_limit and upper_control_limit into the ppk_plot() function.

manufacturing.ppk_plot(data, lower_specification_limit=-2, upper_specification_limit=2)

Screenshot

In this example, it appears that the manufacturing processes are not up to the task of making consistent product within the specified limits.

Zone Control Visualization

Another useful feature is the zone control visualization.

manufacturing.control_chart(data)

There are X-MR charts, Xbar-R charts, and Xbar-S charts available as well. If you call the control_chart() function, the appropriate sample size will be selected and data grouped as the dataset requires. However, if you wish to call a specific type of control chart, use

  • x_mr_chart
  • xbar_r_chart
  • xbar_s_chart
  • p_chart

Contributions

Contributions are welcome!

RoadMap

Items marked out were added most recently.

  • ...
  • Add use github actions for deployment
  • Transition to poetry for releases
  • Add I-MR Chart (see examples/imr_chart.py)
  • Add Xbar-R Chart (subgroups between 2 and 10)
  • Add Xbar-S Chart (subgroups of 11 or more)
  • Update documentation to reflect recent API changes
  • Add p chart
  • Add np chart
  • Add u chart
  • Add c chart
  • Add automated testing (partially implemented)

Gallery

Ppk example

Cpk example

X-MR Chart

Xbar-R Chart

Xbar-S Chart

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

manufacturing-1.7.1.tar.gz (26.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

manufacturing-1.7.1-py3-none-any.whl (26.0 kB view details)

Uploaded Python 3

File details

Details for the file manufacturing-1.7.1.tar.gz.

File metadata

  • Download URL: manufacturing-1.7.1.tar.gz
  • Upload date:
  • Size: 26.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for manufacturing-1.7.1.tar.gz
Algorithm Hash digest
SHA256 1bdff6296aab6ed16dd7b5c5c69204c267daaea7f125137f786a128b8299f5d5
MD5 6111c5cdab6a089040128234e9463d4b
BLAKE2b-256 e3bb5a8de1f35c218212de97c12a7d9f7bd4a399785963a25d8c66a524954784

See more details on using hashes here.

File details

Details for the file manufacturing-1.7.1-py3-none-any.whl.

File metadata

  • Download URL: manufacturing-1.7.1-py3-none-any.whl
  • Upload date:
  • Size: 26.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for manufacturing-1.7.1-py3-none-any.whl
Algorithm Hash digest
SHA256 45b4d33edbfca089d5ba28a586546f92a8fe8bc043737a786405bb50aa141846
MD5 8a5e55cc1f1f2a4a75a37e3202f90431
BLAKE2b-256 3dc6dd0d247dc15c16720843331b434ae7a5df925ca224fd799710778ae1d037

See more details on using hashes here.

Supported by

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