Skip to content

Commit 21b82f3

Browse files
committed
Add val overload and update version
1 parent 538fd10 commit 21b82f3

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "ComradeBase"
22
uuid = "6d8c423b-a35f-4ef1-850c-862fe21f82c4"
33
authors = ["Paul Tiede <ptiede91@gmail.com> and contributors"]
4-
version = "0.9.3"
4+
version = "0.9.4"
55

66
[deps]
77
Accessors = "7d9f7c33-5ae7-4f3b-8dc6-eff91059b697"

src/domain.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,12 @@ function MinimalHeader(source, ra, dec, mjd, freq)
177177
return MinimalHeader(source, raT, decT, mjdT, freqT)
178178
end
179179

180+
function DimensionalData.val(m::AbstractHeader)
181+
n = propertynames(m)
182+
pm = Base.Fix1(getproperty, m)
183+
return NamedTuple{n}(map(pm, n))
184+
end
185+
180186
"""
181187
NoHeader
182188

0 commit comments

Comments
 (0)