Utility functions for design research workflows, including branding assets, file conversion helpers, colormaps, CAD visualization, neural-network visualization wrappers, and DOE utilities.
pip install drcutilsFor contributor tooling:
pip install -e ".[dev]"drc-doe: DOE design generationdrc-doe-analyze: DOE response analysis
from drcutils.viz import export_figure
from drcutils.doe import generate_doe
# Export publication-ready figures.
result = export_figure(fig, "artifacts/figures/plot", targets=["one_col", "slide_16x9"])
# Generate a DOE table.
doe = generate_doe(kind="lhs", factors={"x": (0.0, 1.0), "y": (10.0, 20.0)}, n_samples=12)from drcutils import (
analyze_doe_response,
)
analysis = analyze_doe_response(doe_df, response="yield")DOE screening models require the optional stats extras:
pip install drcutils[stats]make dev
make ci
make docs-build- DOE extras:
pip install drcutils[doe] - Plotly extras:
pip install drcutils[plotly]