Skip to content

Commit

Permalink
Fix obstable so that struct arrays are preserved
Browse files Browse the repository at this point in the history
  • Loading branch information
ptiede committed Sep 20, 2024
1 parent 99bbc66 commit 4a1cdc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/observations/obstable.jl
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Returns a tabular representation of the data. Note that for closures this ignore
between quantities, which is otherwise included in the full `EHTObservationTable`.
"""
function datatable(obs::AbstractObservationTable{F}) where {F}
StructArray((build_datum(obs, i) for i in 1:length(obs)), unwrap=(T->(T<:Tuple || T<:AbstractBaselineDatum)))
StructArray((build_datum(obs, i) for i in 1:length(obs)), unwrap=(T->(T<:Tuple || T<:AbstractBaselineDatum || T<:SArray || T<:NamedTuple)))
end

"""
Expand Down

0 comments on commit 4a1cdc2

Please sign in to comment.