Skip to content

Commit

Permalink
pass more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
odunbar committed Oct 3, 2024
1 parent 6be024e commit 41deb04
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/UpdateGroup.jl
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,14 @@ struct UpdateGroup
group_id::Dict
end

function UpdateGroup(u_group, g_group)
function UpdateGroup(u_group::VV1, g_group::VV2) where {VV1 <: AbstractVector, VV2 <: AbstractVector}
# check there is an index in each group
if length(u_group) == 0
throw(ArgumentError("all `UpdateGroup.u_group` must contain at least one parameter identifier"))
end
if length(g_group) == 0
throw(ArgumentError("all `UpdateGroup.g_group` must contain at least one data identifier"))
end
return UpdateGroup(
u_group,
g_group,
Expand Down

0 comments on commit 41deb04

Please sign in to comment.