Skip to content

Commit

Permalink
Fix caltable when there is a FixedSeg
Browse files Browse the repository at this point in the history
  • Loading branch information
ptiede committed Oct 6, 2023
1 parent c78f599 commit 957e217
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/calibration/caltable.jl
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ function fill_gmat!(gmat, v::FixedSeg, lookup, i, allstations, alltimes, gains)
end

function stations(g::JonesCache)
s1 = g.schema.sites
s1 = keys(g.seg)
if !(g.references isa AbstractVector{<:NoReference})
return sort(unique(vcat(s1, getproperty.(g.references, :site))))
end
Expand Down Expand Up @@ -279,7 +279,6 @@ function caltable(g::JonesCache, gains::AbstractVector, f=identity)
@argcheck length(g.schema.times) == length(gains)

stations = Comrade.stations(g)
println(stations)
times = unique(g.schema.times)
gmat = Matrix{Union{eltype(gains), Missing}}(missing, length(times), length(stations))
gmat .= 0.0
Expand Down

0 comments on commit 957e217

Please sign in to comment.