Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Misc. fixes #196

Merged
merged 23 commits into from
Apr 20, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
remove no-op method
Alexey Stukalov authored and alyst committed Apr 20, 2024
commit af939be11478c758afd5b73b2b0709e527e83caf
4 changes: 2 additions & 2 deletions src/observed/covariance.jl
Original file line number Diff line number Diff line change
@@ -76,7 +76,8 @@ function SemObservedCovariance(;

if !isnothing(spec_colnames)
obs_cov = reorder_obs_cov(obs_cov, spec_colnames, obs_colnames)
obs_mean = reorder_obs_mean(obs_mean, spec_colnames, obs_colnames)
isnothing(obs_mean) ||
(obs_mean = reorder_obs_mean(obs_mean, spec_colnames, obs_colnames))
end

n_man = Float64(size(obs_cov, 1))
@@ -114,7 +115,6 @@ function reorder_obs_cov(obs_cov, spec_colnames, obs_colnames)
end

# reorder means ----------------------------------------------------------------------------
reorder_obs_mean(obs_mean::Nothing, spec_colnames, obs_colnames) = nothing

function reorder_obs_mean(obs_mean, spec_colnames, obs_colnames)
if spec_colnames == obs_colnames