Skip to content

Commit

Permalink
Merge pull request #148 from formal-methods-mpi/fix_docstrings
Browse files Browse the repository at this point in the history
minor changes to index
  • Loading branch information
nickhaf authored Feb 13, 2024
2 parents 6167fad + 1b61cad commit 1fa9c87
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 24 deletions.
2 changes: 1 addition & 1 deletion docs/src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Besides enabling better simulations, knowing how common different types of SEMs

## Data Base
```@docs
RecordDatabase(records::Record...)
RecordDatabase
```

## Taxons
Expand Down
23 changes: 1 addition & 22 deletions src/database.jl
Original file line number Diff line number Diff line change
Expand Up @@ -12,31 +12,10 @@ end


"""
RecordDatabase()
RecordDatabase
`Record`s need to be stored somewhere.
```jldoctest
julias> RecordDatabase()
RecordDatabase{Base.UUID, Record}()
julia> first = Record(rater = "AP", id = "552ef675-5c7b-4ce1-880b-c45b833fdfcb", location = NoLocation(), meta = MetaData(missing, missing, missing), judgements = Dict("Taxon" => J(NoTaxon())), spec = NoJudgement(), data = NoJudgement());
julias> second = Record(rater = "AP", id = "58c55701-0362-40c7-849c-5d12e5026238", location = NoLocation(), meta = MetaData(missing, missing, missing), judgements = Dict("Taxon" => J(NoTaxon())), spec = NoJudgement(), data = NoJudgement());
julia> rd = RecordDatabase(first, second)
RecordDatabase{Base.UUID, Record} with 2 entries:
UUID("58c55701-0362-40c7-849c-5d12e5026238") => Record…
UUID("552ef675-5c7b-4ce1-880b-c45b833fdfcb") => Record…
julias> rd += Record(rater = "AP", id = "2d7ad584-8ec0-47dd-807b-280fba2978f8", location = NoLocation(), meta = MetaData(missing, missing, missing), judgements = Dict("Taxon" => J(NoTaxon())), spec = NoJudgement(), data = NoJudgement())
RecordDatabase{Base.UUID, Record} with 3 entries:
UUID("2d7ad584-8ec0-47dd-807b-280fba2978f8") => Record…
UUID("58c55701-0362-40c7-849c-5d12e5026238") => Record…
UUID("552ef675-5c7b-4ce1-880b-c45b833fdfcb") => Record…
```
"""

struct RecordDatabase{K<:UUID,V<:Record} <: Base.AbstractDict{K,V}
records::Dict{K,V}
end
Expand Down
1 change: 0 additions & 1 deletion src/taxons/no_taxon.jl
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ NoTaxonYet gives you the option to name the 'modeltype', you were not able to co
julia> NoTaxonYet()
"""

struct NoTaxonYet <: Taxon
accessdate::Date
modeltype::Union{String, Missing}
Expand Down

0 comments on commit 1fa9c87

Please sign in to comment.