Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
odow committed Apr 4, 2021
1 parent 2670b38 commit 1b56b46
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/Containers/DenseAxisArray.jl
Original file line number Diff line number Diff line change
Expand Up @@ -337,9 +337,11 @@ end

function _broadcast_axes_check(x::NTuple{N}) where {N}
axes = first(x)
for i = 2:N
for i in 2:N
if x[i][1] != axes[1]
error("Unable to broadcast over DenseAxisArrays with different axes.")
error(
"Unable to broadcast over DenseAxisArrays with different axes.",
)
end
end
return axes
Expand Down
2 changes: 1 addition & 1 deletion test/Containers/DenseAxisArray.jl
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ And data, a 0-dimensional $(Array{Int,0}):
@testset "Broadcast" begin
foo(x, y) = x + y
foo_b(x, y) = foo.(x, y)
bar(x, y) = (foo.(x, y) .+ x).^2
bar(x, y) = (foo.(x, y) .+ x) .^ 2
a = [5.0 6.0; 7.0 8.0]
A = DenseAxisArray(a, [:a, :b], [:a, :b])
b = a .+ 1
Expand Down

0 comments on commit 1b56b46

Please sign in to comment.