File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -40,7 +40,6 @@ include("frontend/fit/summary.jl")
4040# pretty printing
4141include (" frontend/pretty_printing.jl" )
4242# observed
43- include (" observed/get_colnames.jl" )
4443include (" observed/covariance.jl" )
4544include (" observed/data.jl" )
4645include (" observed/missing.jl" )
Original file line number Diff line number Diff line change @@ -63,8 +63,8 @@ function SemObservedCovariance(;
6363 throw (ArgumentError (" `meanstructure = true`, but no observed means were passed" ))
6464 end
6565
66- if isnothing (spec_colnames)
67- spec_colnames = get_colnames (specification)
66+ if isnothing (spec_colnames) && ! isnothing (specification)
67+ spec_colnames = observed_vars (specification)
6868 end
6969
7070 if ! isnothing (spec_colnames) & isnothing (obs_colnames)
Original file line number Diff line number Diff line change @@ -64,8 +64,8 @@ function SemObservedData(;
6464 rowwise = false ,
6565 kwargs... ,
6666)
67- if isnothing (spec_colnames)
68- spec_colnames = get_colnames (specification)
67+ if isnothing (spec_colnames) && ! isnothing (specification)
68+ spec_colnames = observed_vars (specification)
6969 end
7070
7171 if ! isnothing (spec_colnames)
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -92,8 +92,8 @@ function SemObservedMissing(;
9292 spec_colnames = nothing ,
9393 kwargs... ,
9494)
95- if isnothing (spec_colnames)
96- spec_colnames = get_colnames (specification)
95+ if isnothing (spec_colnames) && ! isnothing (specification)
96+ spec_colnames = observed_vars (specification)
9797 end
9898
9999 if ! isnothing (spec_colnames)
You can’t perform that action at this time.
0 commit comments