Constants¶
Centralized constants for application-wide configuration values.
Note
Constants are organized into domain-specific submodules for better maintainability and discoverability.
Overview¶
The constants module provides centralized configuration values organized by domain:
thresholds: Numeric comparison thresholds (e.g., MIN_Q_VALUE)
timeouts: Time-related constants (e.g., FILE_LOAD_TIMEOUT)
limits: Size and count limits (e.g., MAX_CACHE_SIZE_MB)
defaults: Default configuration values (e.g., DEFAULT_THEME)
fitting: Curve fitting parameters (e.g., SINGLE_EXP_PARAMS)
Usage¶
Import constants directly from the main module:
from xpcsviewer.constants import MIN_Q_VALUE, MAX_CACHE_SIZE_MB
# Or import from specific submodule
from xpcsviewer.constants.timeouts import FILE_LOAD_TIMEOUT
from xpcsviewer.constants.limits import MAX_PLOT_POINTS
Submodules¶
Thresholds¶
Numeric thresholds for comparisons and validation.
Numeric threshold constants for xpcsviewer.
These constants define comparison thresholds for data validation and analysis.
Timeouts¶
Time-related constants for operations, file loading, and cleanup. All values are in seconds unless otherwise noted.
Timeout constants for xpcsviewer operations.
These constants define time limits for various operations. All values are in seconds unless otherwise noted.
Limits¶
Size and count limits for caching, memory management, and UI elements.
Size and count limit constants for xpcsviewer.
These constants define maximum sizes and counts for various operations.
Defaults¶
Default configuration values for application settings.
Default configuration values for xpcsviewer.
These constants define default values for application configuration.
Fitting¶
Parameters for curve fitting operations (single/double exponential).
Fitting and model parameter constants for xpcsviewer.
These constants define parameters for fitting algorithms and models.