diff --git a/ext/ComradePyehtimExt.jl b/ext/ComradePyehtimExt.jl index e357ddf1..b3064968 100644 --- a/ext/ComradePyehtimExt.jl +++ b/ext/ComradePyehtimExt.jl @@ -14,8 +14,8 @@ function build_arrayconfig(obs) source = get_source(obsc) bw = get_bw(obsc) angles = get_fr_angles(obsc) - tarr = Pyehtim.get_arraytable(obsc) - scans = get_scantable(obsc) + tarr = StructArray(Pyehtim.get_arraytable(obsc)) + scans = StructArray(get_scantable(obsc)) bw = get_bw(obsc) elevation = StructArray(angles[1]) parallactic = StructArray(angles[2]) @@ -140,7 +140,6 @@ Returns an EHTObservationTable with visibility amplitude data """ function Comrade.extract_amp(obsc; pol=:I, debias=false, kwargs...) obs = obsc.copy() - obs.add_scans() obs.reorder_tarr_snr() obs.add_amp(;debias, kwargs...) config = build_arrayconfig(obs) @@ -163,7 +162,6 @@ Returns an EHTObservationTable with complex visibility data """ function Comrade.extract_vis(obsc; pol=:I, kwargs...) obs = obsc.copy() - obs.add_scans() obs.reorder_tarr_snr() config = build_arrayconfig(obs) vis, viserr = getvisfield(obs) @@ -181,7 +179,6 @@ Returns an EHTObservationTable with coherency matrices """ function Comrade.extract_coherency(obsc; kwargs...) obs = obsc.copy() - obs.add_scans() obs.reorder_tarr_snr() config = build_arrayconfig(obs) vis, viserr = getcoherency(obs)