Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
PharmCat committed Aug 3, 2021
1 parent cdde32e commit 407990d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "MetidaBase"
uuid = "075456b7-4006-432f-9324-2f8453996c49"
authors = ["PharmCat <[email protected]> and contributors"]
version = "0.3.0"
version = "0.3.1"

[deps]
#StatsBase = "2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91"
Expand Down
4 changes: 3 additions & 1 deletion src/abstracttype.jl
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ abstract type AbstractLMMDataBlocks end

abstract type AbstractData end

abstract type AbstractDataSet{AbstractData} end

# All have field: id::Dict
abstract type AbstractIdData <: AbstractData end

Expand All @@ -41,4 +43,4 @@ abstract type AbstractSubject <: AbstractIdData end
abstract type AbstractSubjectResult{AbstractSubject} <: AbstractIDResult{AbstractSubject} end


# Descriptive
# Descriptive
2 changes: 1 addition & 1 deletion src/types.jl
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ end
################################################################################
# DATASET
################################################################################
struct DataSet{T <: AbstractData}
struct DataSet{T <: AbstractData} <: AbstractDataSet{AbstractData}
ds::Vector{T}
end

Expand Down
4 changes: 4 additions & 0 deletions src/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,7 @@ function indsdict!(d::Dict{T}, cdata::Tuple) where T
end
d
end


isnanormissing(x::Number) = isnan(x)
isnanormissing(x::Missing) = true

0 comments on commit 407990d

Please sign in to comment.