]> Piment Noir Git Repositories - freqai-strategies.git/commit
refactor: improve string literal replacements and use specific tuple constants
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Sat, 3 Jan 2026 22:36:37 +0000 (23:36 +0100)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Sat, 3 Jan 2026 22:36:37 +0000 (23:36 +0100)
commit379e6f85162776909ccdd60045b083bd990e6330
tree6e60d7dcf30f90344b00f24fc59c83695230fd62
parent6ac7f6f9eff4cdd9cbb9d5d4b2f76526e690a2c9
refactor: improve string literal replacements and use specific tuple constants

- Replace hardcoded method names in error messages with tuple constants
  (lines 2003, 2167: use _DISTANCE_METHODS[0] and [1] instead of literal strings)
- Use _CLUSTER_METHODS instead of _SELECTION_METHODS indices for better
  code maintainability (e.g., _CLUSTER_METHODS[0] vs _SELECTION_METHODS[2])
- Fix trial_selection_method comparison order to match tuple constant order
  (compromise_programming [0] before topsis [1])
- Remove redundant power_mean None check (already validated by _validate_power_mean)
- Add clarifying comments to tuple constant usages (minkowski, rank_extrema)
quickadapter/user_data/freqaimodels/QuickAdapterRegressorV3.py