Skip to content

Commit

Permalink
Fix Pyehtim extension
Browse files Browse the repository at this point in the history
  • Loading branch information
ptiede committed Dec 17, 2024
1 parent 2d08fe2 commit 8ecc3ad
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions ext/ComradePyehtimExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down Expand Up @@ -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)
Expand All @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit 8ecc3ad

Please sign in to comment.