Configuration API
Configuration Package
Configuration modules for PhysPlot.
- Input data structure:
Configuration modules expose constants or helper functions consumed by the GUI at import time.
- Return type:
Package marker module; no runtime value is returned.
- Optional main/runtime behavior:
Not intended to be executed directly.
Legacy Curve-Fit Configuration
Editable curve-fit definitions for PhysPlot.
Change POLYNOMIAL_DEGREES to control the polynomial fit rows in the
configuration dialog. The application expands that list into individual
fit slots automatically.
- Input data structure:
Legacy configuration data are represented as dictionaries with
display_name,default_label,kind, and eitherdegreeor a callable function.- Return type:
Exposes
CURVE_FIT_DEFINITIONS, a list of dictionaries consumed by older versions of the configuration dialog.- Optional main/runtime behavior:
This file is retained for compatibility. The current application discovers curve-fitting plugins from the top-level
curvefittingfolder.
- exponential_decay(x, a, b) numpy.ndarray[source]
Evaluate the legacy exponential curve-fit model.
- Parameters:
x (numpy.ndarray): One-dimensional X data array. a (float): Amplitude parameter. b (float): Exponent parameter.
- Returns:
numpy.ndarray: Model values
a * exp(b * x).