Skip to content

Commit 7c51f8f

Browse files
Alexey Stukalovalyst
authored andcommitted
remove get_colnames()
replaced by observed_vars()
1 parent 8cf1f24 commit 7c51f8f

5 files changed

Lines changed: 6 additions & 28 deletions

File tree

src/StructuralEquationModels.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ include("frontend/fit/summary.jl")
4040
# pretty printing
4141
include("frontend/pretty_printing.jl")
4242
# observed
43-
include("observed/get_colnames.jl")
4443
include("observed/covariance.jl")
4544
include("observed/data.jl")
4645
include("observed/missing.jl")

src/observed/covariance.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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)

src/observed/data.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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)

src/observed/get_colnames.jl

Lines changed: 0 additions & 21 deletions
This file was deleted.

src/observed/missing.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)