We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 196c162 commit 6e8a93eCopy full SHA for 6e8a93e
src/metadata.jl
@@ -229,7 +229,7 @@ Free the MetaT from metadata
229
i.e. returns the geometry/array of geometries
230
"""
231
function metafree(x::MetaT)
232
- getfield(x, 1)
+ getfield(x, :main)
233
end
234
metafree(x::AbstractVector{<: MetaT}) = map(metafree, x)
235
@@ -241,7 +241,7 @@ metafree(x::AbstractVector{<: MetaT}) = map(metafree, x)
241
Returns the metadata of a `MetaT`
242
243
function meta(x::MetaT)
244
- getfield(x, 2)
+ getfield(x, :meta)
245
246
meta(x::AbstractVector{<: MetaT}) = map(meta, x)
247
0 commit comments