To provide analysis tools and metrics useful in manufacturing environments.
Go to the documentation.
Plots and project are reasonably mature at this point. Calculations have been refined and are in-line with commonly accepted standards.
A major v2.0 update is coming to control charts and will be available shortly 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 v2.0 update.
To install from
$>pip install manufacturing
To install from source download and install using poetry:
$>poetry update $>poetry build
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
pandas.Series; then supply that data, along with the
upper_control_limit into the
manufacturing.ppk_plot(data, lower_specification_limit=-2, upper_specification_limit=2)
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.
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
Contributions are welcome!
Items marked out were added most recently.
Add use github actions for deployment Transition to
Xbar-R Chart(subgroups between 2 and 10)
Xbar-S Chart(subgroups of 11 or more)
Update documentation to reflect recent API changes Add
- Add automated testing (partially implemented)