No description
Find a file
Xiao Furen 4f5be3d3e9 refactor(core): remove global state and implement OptimizationContext
Refactor the optimization pipeline to eliminate module-level global variables,
improving thread safety and modularity. Introduced `OptimizationContext`
to explicitly manage shared state during cylinder evaluation.

Key changes:
- core: Replace global variables with `OptimizationContext` dataclass in
  `objective.py`.
- core: Implement `refine_lateral_longer` in `optimizer.py` for deterministic
  local refinement of screw placement.
- core: Update scoring logic in `scoring.py` to use higher penalties for
  out-of-bone voxels.
- imaging: Add advanced symmetry detection including `best_symmetry_plane`
  and `best_symmetry_axis_angle` in `orientation.py`.
- visualization: Enhance 3D plotting in `res_plot_3d.py` with volume
  absorption rendering (Beer-Lambert law) for an X-ray-like appearance.
- xfr_debug: Implement a custom `_Tee` logger to support multi-process
  logging with volume and level-specific tags.
- chore: Update `.gitignore` to include local logs and kilo directories.
2026-08-30 00:54:55 +08:00
.kilo/agents refactor(core): improve cylinder parameter snapping and optimization logic 2026-08-26 22:36:07 +08:00
.vscode refactor(core): improve cylinder parameter snapping and optimization logic 2026-08-26 22:36:07 +08:00
config refactor(core): improve cylinder parameter snapping and optimization logic 2026-08-26 22:36:07 +08:00
core refactor(core): remove global state and implement OptimizationContext 2026-08-30 00:54:55 +08:00
imaging refactor(core): remove global state and implement OptimizationContext 2026-08-30 00:54:55 +08:00
references refactor(core): remove global state and implement OptimizationContext 2026-08-30 00:54:55 +08:00
results first commit 2026-04-10 13:25:27 +08:00
utils first commit 2026-04-10 13:25:27 +08:00
visualization refactor(core): remove global state and implement OptimizationContext 2026-08-30 00:54:55 +08:00
.gitignore refactor(core): remove global state and implement OptimizationContext 2026-08-30 00:54:55 +08:00
__init__.py first commit 2026-04-10 13:25:27 +08:00
experiment.ipynb first commit 2026-04-10 13:25:27 +08:00
optimization_benchmark_results_DE.csv first commit 2026-04-10 13:25:27 +08:00
optimization_benchmark_results_NM.csv first commit 2026-04-10 13:25:27 +08:00
optimization_benchmark_results_PSO.csv first commit 2026-04-10 13:25:27 +08:00
progress.json refactor(core): improve cylinder parameter snapping and optimization logic 2026-08-26 22:36:07 +08:00
run_all_cases.py first commit 2026-04-10 13:25:27 +08:00
run_benchmark.py first commit 2026-04-10 13:25:27 +08:00
run_de.py first commit 2026-04-10 13:25:27 +08:00
run_pso.py first commit 2026-04-10 13:25:27 +08:00
structure.txt first commit 2026-04-10 13:25:27 +08:00
xfr_debug.py refactor(core): remove global state and implement OptimizationContext 2026-08-30 00:54:55 +08:00
xfr_preprocess.py refactor(core): improve cylinder parameter snapping and optimization logic 2026-08-26 22:36:07 +08:00