Skip to content

Commit

Permalink
Fix bug with leaftype.
Browse files Browse the repository at this point in the history
  • Loading branch information
ma-laforge committed Aug 9, 2020
1 parent 08d2852 commit d9e2a9f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/datars.jl
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,12 @@ end
#Get expected leaf element by walking across first path of ::DataRS
function _leaftype_p1(d::DataRS)
w = d #walks across data structure
leaftype = DataRS
while isa(w, DataRS)
leaftype = eltype(w)
w = w.elem[1]
end
return eltype(w)
return leaftype
end

#Get a list of sweeps along the first path of a ::DataRS.
Expand Down

2 comments on commit d9e2a9f

@ma-laforge
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator register

Release notes:

Fix issues with broadcast system & add methods.

Implement sweeps(::DataRS) & paramlist(::DataRS).
Implement convert(::Type{DataHR}, ::DatasteRS).
Deprecate DataRS(::DatasteHR) -> convert(::Type{DataRS}, ::DatasteHR).
Also improve validation functions.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/19244

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.3.3 -m "<description of version>" d9e2a9f0554fe74405ba11d901fb733d4e9f5e53
git push origin v0.3.3

Please sign in to comment.