Skip to content

Commit f9fcef0

Browse files
committed
tiny simplification
1 parent d3b7326 commit f9fcef0

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/frontend/fit/fitmeasures/n_obs.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ n_obs(sem_fit::SemFit) = n_obs(sem_fit.model)
1313

1414
n_obs(model::AbstractSemSingle) = n_obs(model.observed)
1515

16-
n_obs(model::SemEnsemble) = sum(n_obs.(model.sems))
16+
n_obs(model::SemEnsemble) = sum(n_obs, model.sems)

src/types.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ function SemEnsemble(models...; optimizer = SemOptimizerOptim, weights = nothing
170170
# default weights
171171

172172
if isnothing(weights)
173-
nobs_total = sum(n_obs.(models))
173+
nobs_total = sum(n_obs, models)
174174
weights = [n_obs(model) / nobs_total for model in models]
175175
end
176176

0 commit comments

Comments
 (0)