Skip to content

Commit

Permalink
Keep the formatter happy.
Browse files Browse the repository at this point in the history
  • Loading branch information
dmbates committed Dec 5, 2023
1 parent fe6356d commit 41348d8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Xymat.jl
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Note: automatic rank deficiency handling may be added to this method in the futu
the vignette "[Rank deficiency in mixed-effects models](@ref)" for general `FeTerm`.
"""
function FeTerm(X::SparseMatrixCSC, cnms::AbstractVector{String})
# @debug "Full rank is assumed for sparse fixed-effect matrices."
#@debug "Full rank is assumed for sparse fixed-effect matrices."
rank = size(X, 2)
return FeTerm{eltype(X),typeof(X)}(X, collect(1:rank), rank, collect(cnms))
end
Expand Down
6 changes: 3 additions & 3 deletions src/grouping.jl
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ function StatsModels.apply_schema(
context::AbstractTerm,
)
aliased = drop_term(context, t)
# @debug "$t in context of $context: aliases $aliased\n seen already: $(schema.already)"
#@debug "$t in context of $context: aliases $aliased\n seen already: $(schema.already)"
for seen in schema.already
if StatsModels.symequal(aliased, seen)
# @debug " aliased term already present: $seen"
#@debug " aliased term already present: $seen"
return t
end
end
Expand All @@ -57,6 +57,6 @@ function StatsModels.apply_schema(
# repair:
new_contrasts = StatsModels.ContrastsMatrix(Grouping(), t.contrasts.levels)
t = CategoricalTerm(t.sym, new_contrasts)
# @debug " aliased term absent, repairing: $t"
#@debug " aliased term absent, repairing: $t"
return t
end

0 comments on commit 41348d8

Please sign in to comment.