Filter for RecordDataBase #324
CI.yml
on: pull_request
Documentation
2m 31s
Matrix: test
Annotations
5 errors, 16 warnings, and 1 notice
Documentation:
src/filter.jl#L26
doctest failure in ~/work/Taxonomy.jl/Taxonomy.jl/src/filter.jl:26-73
```jldoctest filter-examples
## Example just for demonstration, coding is not actually derived from the paper!
using Taxonomy
using Taxonomy.Judgements
test_db = RecordDatabase()
test_db += Record(
rater="NH",
id="2a129694-550c-4396-be6f-00507b1dc7ba",
location=DOI("10.1007/s10869-019-09648-5"),
Lang("en"),
Study(
N(100, 0.8),
Model(Standardized(false),
LatentPathmodel(
Structural(structural_model=missing),
Dict(
:IP => Measurement(n_variables=3, factor_variance=missing, loadings=missing, quest_scale=7),
:IN => Measurement(n_variables=4, factor_variance=missing, loadings=missing, quest_scale=6),
:DN => Measurement(n_variables=3, factor_variance=missing, loadings=missing, quest_scale=7),
:BC => Measurement(n_variables=3, factor_variance=missing, loadings=missing, quest_scale=5),
:IB => Measurement(n_variables=5, factor_variance=missing, loadings=missing, quest_scale=5)
)
)
),
Model(Standardized(true),
NoTaxon()
)
),
Study(
N(200, 0.98),
Model(Standardized(false),
),
Model(Standardized(false))
)
)
## Filtering on Taxon level
filter_Pathmodel = filter(x -> typeof(x) == NoTaxonEver, test_db, "Taxon")
Model(Study(filter_Pathmodel[Base.UUID("2a129694-550c-4396-be6f-00507b1dc7ba")])[1])[2]
# output
Model(Dict{Symbol, Vector{Union{Taxon, AbstractJudgement}}}(:Taxon => [NoTaxonEver
], :Standardized => [Standardized{Bool}(true, 1.0, missing)]))
```
Subexpression:
## Example just for demonstration, coding is not actually derived from the paper!
using Taxonomy
using Taxonomy.Judgements
test_db = RecordDatabase()
test_db += Record(
rater="NH",
id="2a129694-550c-4396-be6f-00507b1dc7ba",
location=DOI("10.1007/s10869-019-09648-5"),
Lang("en"),
Study(
N(100, 0.8),
Model(Standardized(false),
LatentPathmodel(
Structural(structural_model=missing),
Dict(
:IP => Measurement(n_variables=3, factor_variance=missing, loadings=missing, quest_scale=7),
:IN => Measurement(n_variables=4, factor_variance=missing, loadings=missing, quest_scale=6),
:DN => Measurement(n_variables=3, factor_variance=missing, loadings=missing, quest_scale=7),
:BC => Measurement(n_variables=3, factor_variance=missing, loadings=missing, quest_scale=5),
:IB => Measurement(n_variables=5, factor_variance=missing, loadings=missing, quest_scale=5)
)
)
),
Model(Standardized(true),
NoTaxon()
)
),
Study(
N(200, 0.98),
Model(Standardized(false),
),
Model(Standardized(false))
)
)
## Filtering on Taxon level
filter_Pathmodel = filter(x -> typeof(x) == NoTaxonEver, test_db, "Taxon")
Model(Study(filter_Pathmodel[Base.UUID("2a129694-550c-4396-be6f-00507b1dc7ba")])[1])[2]
Evaluated output:
Model(Dict{Symbol, Vector{Union{Taxon, AbstractJudgement}}}(:Taxon => [NoTaxonEver
], Symbol("Taxonomy.Judgements.Standardized") => [Standardized{Bool}(true, 1.0, missing)]))
Expected output:
Model(Dict{Symbol, Vector{Union{Taxon, AbstractJudgement}}}(:Taxon => [NoTaxonEver
], :Standardized => [Standardized{Bool}(true, 1.0, missing)]))
diff =
Warning: Diff output requires color.
Model(Dict{Symbol, Vector{Union{Taxon, AbstractJudgement}}}(:Taxon => [NoTaxonEver
], :Standardized Symbol("Taxonomy.Judgements.Standardized") => [Standardized{Bool}(true, 1.0, missing)]))
|
Documentation:
src/filter.jl#L75
doctest failure in ~/work/Taxonomy.jl/Taxonomy.jl/src/filter.jl:75-85
```jldoctest filter-examples
## Filtering on Model level
filter_Standardized = filter(x -> rating(x, :Standardized) == true, test_db, "Model")
Model(Study(filter_Standardized[Base.UUID("2a129694-550c-4396-be6f-00507b1dc7ba")])[1])
# output
1-element Vector{Union{Model, AbstractJudgement}}:
Model(Dict{Symbol, Vector{Union{Taxon, AbstractJudgement}}}(:Taxon => [NoTaxonEver
], :Standardized => [Standardized{Bool}(true, 1.0, missing)]))
```
Subexpression:
## Filtering on Model level
filter_Standardized = filter(x -> rating(x, :Standardized) == true, test_db, "Model")
Model(Study(filter_Standardized[Base.UUID("2a129694-550c-4396-be6f-00507b1dc7ba")])[1])
Evaluated output:
Union{Model, AbstractJudgement}[]
Expected output:
1-element Vector{Union{Model, AbstractJudgement}}:
Model(Dict{Symbol, Vector{Union{Taxon, AbstractJudgement}}}(:Taxon => [NoTaxonEver
], :Standardized => [Standardized{Bool}(true, 1.0, missing)]))
diff =
Warning: Diff output requires color.
1-element Vector{Union{Model, AbstractJudgement}}:
Model(Dict{Symbol, Vector{Union{Taxon, AbstractJudgement}}}(:Taxon => [NoTaxonEver
], :Standardized => [Standardized{Bool}(true, 1.0, missing)]))Union{Model, AbstractJudgement}[]
|
Documentation:
src/filter.jl#L88
doctest failure in ~/work/Taxonomy.jl/Taxonomy.jl/src/filter.jl:88-98
```jldoctest filter-examples
## Filtering on Study level
filter_N = filter(x -> certainty(x, :N) > 0.9, test_db, "Study")
Study(filter_N[Base.UUID("2a129694-550c-4396-be6f-00507b1dc7ba")])
# output
1-element Vector{Union{Study, AbstractJudgement}}:
Study(Dict{Symbol, Vector{Union{JudgementLevel, AbstractJudgement}}}(:N => [N{Int64}(200, 0.98, missing)]))
```
Subexpression:
## Filtering on Study level
filter_N = filter(x -> certainty(x, :N) > 0.9, test_db, "Study")
Study(filter_N[Base.UUID("2a129694-550c-4396-be6f-00507b1dc7ba")])
Evaluated output:
ERROR: MethodError: no method matching certainty(::Vector{Vector{Union{JudgementLevel, AbstractJudgement}}})
Closest candidates are:
certainty(!Matched::Pair{Base.UUID, Record}, !Matched::Symbol)
@ Taxonomy ~/work/Taxonomy.jl/Taxonomy.jl/src/judgements/judgement.jl:139
certainty(!Matched::Array{Union{AbstractJudgement, T}, 1}) where T<:JudgementLevel
@ Taxonomy ~/work/Taxonomy.jl/Taxonomy.jl/src/judgements/judgement.jl:141
certainty(!Matched::JudgementLevel, !Matched::Symbol)
@ Taxonomy ~/work/Taxonomy.jl/Taxonomy.jl/src/judgements/judgement.jl:140
...
Stacktrace:
[1] certainty(x::Study, field::Symbol)
@ Taxonomy.Judgements ~/work/Taxonomy.jl/Taxonomy.jl/src/judgements/judgement.jl:140
[2] (::var"#5#6")(x::Study)
@ Main.var"Main" ./none:3
[3] filter(f::var"#5#6", s::Vector{Union{Study, AbstractJudgement}})
@ Taxonomy ~/work/Taxonomy.jl/Taxonomy.jl/src/filter.jl:4
[4] filter(f::Function, db::RecordDatabase{Base.UUID, Record}, level::String)
@ Taxonomy ~/work/Taxonomy.jl/Taxonomy.jl/src/filter.jl:112
[5] top-level scope
@ none:1
Expected output:
1-element Vector{Union{Study, AbstractJudgement}}:
Study(Dict{Symbol, Vector{Union{JudgementLevel, AbstractJudgement}}}(:N => [N{Int64}(200, 0.98, missing)]))
diff =
Warning: Diff output requires color.
1-element Vector{Union{Study, AbstractJudgement}}:
Study(Dict{Symbol, Vector{Union{JudgementLevel, AbstractJudgement}}}(:N => [N{Int64}(200, 0.98, missing)]))ERROR: MethodError: no method matching certainty(::Vector{Vector{Union{JudgementLevel, AbstractJudgement}}})
Closest candidates are:
certainty(!Matched::Pair{Base.UUID, Record}, !Matched::Symbol)
@ Taxonomy ~/work/Taxonomy.jl/Taxonomy.jl/src/judgements/judgement.jl:139
certainty(!Matched::Array{Union{AbstractJudgement, T}, 1}) where T<:JudgementLevel
@ Taxonomy ~/work/Taxonomy.jl/Taxonomy.jl/src/judgements/judgement.jl:141
certainty(!Matched::JudgementLevel, !Matched::Symbol)
@ Taxonomy ~/work/Taxonomy.jl/Taxonomy.jl/src/judgements/judgement.jl:140
...
Stacktrace:
[1] certainty(x::Study, field::Symbol)
@ Taxonomy.Judgements ~/work/Taxonomy.jl/Taxonomy.jl/src/judgements/judgement.jl:140
[2] (::var"#5#6")(x::Study)
@ Main.var"Main" ./none:3
[3] filter(f::var"#5#6", s::Vector{Union{Study, AbstractJudgement}})
@ Taxonomy ~/work/Taxonomy.jl/Taxonomy.jl/src/filter.jl:4
[4] filter(f::Function, db::RecordDatabase{Base.UUID, Record}, level::String)
@ Taxonomy ~/work/Taxonomy.jl/Taxonomy.jl/src/filter.jl:112
[5] top-level scope
@ none:1
|
Documentation
Process completed with exit code 1.
|
Julia nightly - ubuntu-latest - x64 - pull_request
Process completed with exit code 1.
|
Julia 1.9 - ubuntu-latest - x64 - pull_request
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, julia-actions/setup-julia@v1, actions/cache@4d4ae6ae148a43d0fd1eda1800170683e9882738, pyTooling/Actions/with-post-step@adef08d3bdef092282614f3b683897cefae82ee3, codecov/codecov-action@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Julia 1.9 - ubuntu-latest - x64 - pull_request
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, codecov/codecov-action@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
Julia 1.6 - ubuntu-latest - x64 - pull_request
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, julia-actions/setup-julia@v1, actions/cache@4d4ae6ae148a43d0fd1eda1800170683e9882738, pyTooling/Actions/with-post-step@adef08d3bdef092282614f3b683897cefae82ee3, codecov/codecov-action@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Julia 1.6 - ubuntu-latest - x64 - pull_request
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, codecov/codecov-action@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
Documentation:
../../../.julia/packages/Documenter/MLty7/src/Utilities/Utilities.jl#L34
no doc found for reference '[`JudgementLevel`](@ref)' in src/tutorials/judgement.md.
|
Documentation:
../../../.julia/packages/Documenter/MLty7/src/Utilities/Utilities.jl#L34
no doc found for reference '[`Judments`](@ref)' in src/tutorials/judgement.md.
|
Documentation:
../../../.julia/packages/Documenter/MLty7/src/Utilities/Utilities.jl#L34
no doc found for reference '[`Standalone_Factor`](@ref)' in src/index.md.
|
Documentation:
../../../.julia/packages/Documenter/MLty7/src/Utilities/Utilities.jl#L34
no doc found for reference '[`Strucutral`](@ref)' in src/index.md.
|
Documentation:
../../../.julia/packages/Documenter/MLty7/src/Utilities/Utilities.jl#L34
40 docstrings not included in the manual:
Taxonomy.Judgements.JudgementInt
Taxonomy.variance_intercept :: Tuple{SimpleLGCM}
Taxonomy.variance_slope :: Tuple{SimpleLGCM}
Taxonomy.Judgements.Lang
Taxonomy.Judgements.Empirical
Taxonomy.Judgements.JudgementVecNumber
Taxonomy.judgements :: Tuple{JudgementLevel}
Taxonomy.covariance_intercept_slope :: Tuple{SimpleLGCM}
Taxonomy.timecoding :: Tuple{SimpleLGCM}
Taxonomy.StandaloneFactor :: Tuple{}
Taxonomy.intercept :: Tuple{SimpleLGCM}
Taxonomy.AbstractJudgement
Taxonomy.n_predictors :: Tuple{SimpleLGCM}
Taxonomy.Judgements.JudgementString
Taxonomy.Judgements.CFI
Base.filter :: Tuple{Any, RecordDatabase, AbstractString}
Taxonomy.nonlinear_timecoding :: Tuple{SimpleLGCM}
Taxonomy.Judgements.JudgementVecBool
Taxonomy.predictor_paths_intercept :: Tuple{SimpleLGCM}
Taxonomy.auto_request_meta :: Tuple{Bool}
Taxonomy.Fixed
Taxonomy.NoTaxon
Taxonomy.Judgements.JudgementVecString
Taxonomy.variances_timepoints :: Tuple{SimpleLGCM}
Taxonomy.Judgements.Quest
Taxonomy.Judgements.JudgementBool
Taxonomy.Judgements.N
Taxonomy.AbstractPathmodel
Taxonomy.n_timepoints :: Tuple{SimpleLGCM}
Taxonomy.Judgements.JudgementVecInt
Taxonomy.Judgements.comment :: Tuple{AbstractJudgement}
Taxonomy.measurement_model :: Tuple{Taxon}
Taxonomy.Judgements.Standardized
Taxonomy.Judgements.JudgementNumber
Taxonomy.slope :: Tuple{SimpleLGCM}
Taxonomy.AbstractCFA
Taxonomy.Judgements.judgement_unique
Taxonomy.predictor_paths_slope :: Tuple{SimpleLGCM}
Taxonomy.Judgements.judgement_key
Taxonomy.Judgements.judgement_level
These are docstrings in the checked modules (configured with the modules keyword)
that are not included in @docs or @autodocs blocks.
|
Documentation:
../../../.julia/packages/Documenter/MLty7/src/Writers/HTMLWriter.jl#L2081
invalid local link: unresolved path in tutorials/judgement.md
link.text =
1-element Vector{Any}:
Markdown.Code("", "JudgementLevel")
link.url = "@ref"
|
Documentation:
../../../.julia/packages/Documenter/MLty7/src/Writers/HTMLWriter.jl#L2081
invalid local link: unresolved path in tutorials/judgement.md
link.text =
1-element Vector{Any}:
Markdown.Code("", "Judments")
link.url = "@ref"
|
Documentation:
../../../.julia/packages/Documenter/MLty7/src/Writers/HTMLWriter.jl#L2081
invalid local link: unresolved path in index.md
link.text =
1-element Vector{Any}:
"StructuralEquationModels.jl"
link.url = "github.com/StructuralEquationModels/StructuralEquationModels.jl"
|
Documentation:
../../../.julia/packages/Documenter/MLty7/src/Writers/HTMLWriter.jl#L2081
invalid local link: unresolved path in index.md
link.text =
1-element Vector{Any}:
Markdown.Code("", "Standalone_Factor")
link.url = "@ref"
|
Documentation:
../../../.julia/packages/Documenter/MLty7/src/Writers/HTMLWriter.jl#L2081
invalid local link: unresolved path in index.md
link.text =
1-element Vector{Any}:
Markdown.Code("", "Strucutral")
link.url = "@ref"
|
Julia nightly - ubuntu-latest - x64 - pull_request
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, julia-actions/setup-julia@v1, actions/cache@4d4ae6ae148a43d0fd1eda1800170683e9882738, pyTooling/Actions/with-post-step@adef08d3bdef092282614f3b683897cefae82ee3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Julia nightly - ubuntu-latest - x64 - pull_request
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
[julia-buildpkg] Caching of the julia depot was not detected
Consider using `julia-actions/cache` to speed up runs https://github.com/julia-actions/cache. To ignore, set input `ignore-no-cache: true`
|