Skip to content

Commit

Permalink
A minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
junyuan-chen committed Apr 26, 2024
1 parent 12e0c48 commit 07a8a43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/data.jl
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,7 @@ function _makeXendo(dt::LPData{TF,<:Vector}, esampleT::BitVector, horz, yfs::Vec
k1 = k2 + 1
end
end
_feresiduals!(Xendo, FE, W)
isempty(FE) || _feresiduals!(Xendo, FE, W)
W isa UnitWeights || (Xendo .*= sqrt.(W))
return Xendo
end
Expand All @@ -659,7 +659,7 @@ function _makeXendo(dt::LPData{TF,<:Vector}, esampleT::Nothing, horz, yfs::Vecto
i1 = i2 + 1
end
end
_feresiduals!(Xendo, FE, W)
isempty(FE) || _feresiduals!(Xendo, FE, W)
W isa UnitWeights || (Xendo .*= sqrt.(W))
return Xendo
end
Expand Down

0 comments on commit 07a8a43

Please sign in to comment.