Skip to content

Commit

Permalink
fix assert
Browse files Browse the repository at this point in the history
  • Loading branch information
behinger committed Jul 17, 2023
1 parent 8abbef1 commit 3f48360
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/fit.jl
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,10 @@ function StatsModels.fit!(
kwargs...,
)

@assert length(first(values(design(uf)))[2]) == size(data,length(size(data))-1) "Times Vector does not match second last dimension of input data - forgot to epoch, or misspecified 'time' vector?"
#@assert length(first(values(design(uf)))[2])
if uf isa UnfoldLinearMixedModel
@assert length(Unfold.times(Unfold.design(uf))) == size(data,length(size(data))-1) "Times Vector does not match second last dimension of input data - forgot to epoch, or misspecified 'time' vector?"
end
# function content partially taken from MixedModels.jl bootstrap.jl
df = Array{NamedTuple,1}()
dataDim = length(size(data)) # surely there is a nicer way to get this but I dont know it
Expand Down

0 comments on commit 3f48360

Please sign in to comment.