fjebaker / SpectralFitting.jl

✨🛰 Fast and flexible spectral fitting in Julia.
https://fjebaker.github.io/SpectralFitting.jl
MIT License
8 stars 5 forks source link

Complex bindings problem #124

Open phajy opened 5 days ago

phajy commented 5 days ago

I think that, e.g.,

push!(prob.bindings, [1 => 1, 4 => 1, 5 => 1])
push!(prob.bindings, [2 => 1, 6 => 1, 7 => 1])

has the same effect as

push!(prob.bindings, [1 => 1, 2 => 1, 4 => 1, 5 => 1, 6 => 1, 7 => 1])

I was intending for parameter 1 (e.g., normalisation) to be bound together for data sets 1, 4, and 5 with a single value, and to be bound together for data sets 2, 6, and 7 with a separate (different) value.

A workaround is just to use two different models which I will use instead.

Thought I'd flag this now as a placeholder in case anyone else runs into a similar issue.

fjebaker commented 5 days ago

Let's use this thread to collect binding use cases that need to be addressed.