Hot fix to the precalculation atomic variable accountability, and other base threads safety

This commit is contained in:
Pixelguy14
2026-03-12 12:51:16 -06:00
parent 3da0dcaae9
commit 8b6bed0ff5
3 changed files with 51 additions and 43 deletions
+10 -2
View File
@@ -1434,7 +1434,11 @@ end
# --- 2. Parameter Assembly with Validation ---
current_pipeline_step = "Configuring parameters..."
println("DEBUG: Configuring parameters and validating enabled steps...")
ref_peaks = Dict{Float64, String}(p["mz"] => p["label"] for p in reference_peaks_list)
ref_peaks = Dict{Float64, String}(
parse(Float64, string(p["mz"])) => string(get(p, "label", ""))
for p in reference_peaks_list
if tryparse(Float64, string(p["mz"])) !== nothing
)
final_params = Dict{Symbol, Dict{Symbol, Any}}()
validation_errors = String[]
@@ -1944,7 +1948,11 @@ end
try
msg = "Recalculating suggestions..."
ref_peaks = Dict(p["mz"] => p["label"] for p in reference_peaks_list)
ref_peaks = Dict{Float64, String}(
parse(Float64, string(p["mz"])) => string(get(p, "label", ""))
for p in reference_peaks_list
if tryparse(Float64, string(p["mz"])) !== nothing
)
recommended_params = main_precalculation(msi_data, reference_peaks=ref_peaks)