Skip to content

Commit

Permalink
clean-up
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander-Barth committed Feb 18, 2020
1 parent e8a8a27 commit 232a5e2
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/variable.jl
Original file line number Diff line number Diff line change
Expand Up @@ -461,13 +461,6 @@ function Base.setindex!(v::Variable,data,indexes::Union{Int,Colon,UnitRange{Int}
data = fill(data,length.(ind))
end

# check if this is necessary
if ndims(data) == 1 && size(data,1) == 1
data = fill(data[1],length.(ind))
end

#@show data
# return data
return v[ind...] = data
end

Expand Down

0 comments on commit 232a5e2

Please sign in to comment.