Skip to content

Commit 6499e69

Browse files
fixup matrix conversion
Co-authored-by: Maximilian Ernst <34346372+Maximilian-Stefan-Ernst@users.noreply.github.com>
1 parent baafca8 commit 6499e69

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/observed/abstract.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,7 @@ function prepare_data(
121121
data_ordered = data
122122
end
123123
# make sure data_mtx is a dense matrix (required for methods like mean_and_cov())
124-
data_mtx =
125-
data_ordered isa DenseMatrix ? data_ordered : convert(Matrix, data_ordered)
124+
data_mtx = convert(Matrix, data_ordered)
126125
elseif isnothing(data)
127126
data_mtx = nothing
128127
if !isnothing(nobserved_vars)

0 commit comments

Comments
 (0)