Skip to content

Commit f8c3b89

Browse files
Automatic JuliaFormatter.jl run (#44)
Co-authored-by: mtfishman <[email protected]>
1 parent f4a13f3 commit f8c3b89

File tree

3 files changed

+20
-20
lines changed

3 files changed

+20
-20
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "FusionTensors"
22
uuid = "e16ca583-1f51-4df0-8e12-57d32947d33e"
33
authors = ["ITensor developers <[email protected]> and contributors"]
4-
version = "0.3.1"
4+
version = "0.3.2"
55

66
[deps]
77
Accessors = "7d9f7c33-5ae7-4f3b-8dc6-eff91059b697"

src/fusion_trees/fusiontree.jl

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -104,14 +104,13 @@ function SymmetrySectors.:×(f1::SectorFusionTree, f2::SectorFusionTree)
104104
product_leaves = (leaves(f1), leaves(f2))
105105
product_root_sector = root_sector(f1) × root_sector(f2)
106106
product_branch_sectors = (branch_sectors(f1), branch_sectors(f2))
107-
product_outer_multiplicity_indices =
108-
outer_multiplicity_kron.(
109-
Base.tail(leaves(f1)),
110-
branch_sectors(f1),
111-
(Base.tail(branch_sectors(f1))..., root_sector(f1)),
112-
outer_multiplicity_indices(f1),
113-
outer_multiplicity_indices(f2),
114-
)
107+
product_outer_multiplicity_indices = outer_multiplicity_kron.(
108+
Base.tail(leaves(f1)),
109+
branch_sectors(f1),
110+
(Base.tail(branch_sectors(f1))..., root_sector(f1)),
111+
outer_multiplicity_indices(f1),
112+
outer_multiplicity_indices(f2),
113+
)
115114
return SectorFusionTree(
116115
product_leaves,
117116
arrows(f1),
@@ -122,13 +121,12 @@ function SymmetrySectors.:×(f1::SectorFusionTree, f2::SectorFusionTree)
122121
end
123122

124123
function SymmetrySectors.arguments(f::SectorFusionTree{<:SectorProduct})
125-
transposed_indices =
126-
outer_multiplicity_split.(
127-
Base.tail(leaves(f)),
128-
branch_sectors(f),
129-
(Base.tail(branch_sectors(f))..., root_sector(f)),
130-
outer_multiplicity_indices(f),
131-
)
124+
transposed_indices = outer_multiplicity_split.(
125+
Base.tail(leaves(f)),
126+
branch_sectors(f),
127+
(Base.tail(branch_sectors(f))..., root_sector(f)),
128+
outer_multiplicity_indices(f),
129+
)
132130
arguments_root = arguments(root_sector(f))
133131
arguments_leaves = arguments.(leaves(f))
134132
arguments_branch_sectors = arguments.(branch_sectors(f))

test/runtests.jl

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,13 @@ const GROUP = uppercase(
1414
)
1515

1616
"match files of the form `test_*.jl`, but exclude `*setup*.jl`"
17-
istestfile(fn) =
18-
endswith(fn, ".jl") && startswith(basename(fn), "test_") && !contains(fn, "setup")
17+
function istestfile(fn)
18+
return endswith(fn, ".jl") && startswith(basename(fn), "test_") && !contains(fn, "setup")
19+
end
1920
"match files of the form `*.jl`, but exclude `*_notest.jl` and `*setup*.jl`"
20-
isexamplefile(fn) =
21-
endswith(fn, ".jl") && !endswith(fn, "_notest.jl") && !contains(fn, "setup")
21+
function isexamplefile(fn)
22+
return endswith(fn, ".jl") && !endswith(fn, "_notest.jl") && !contains(fn, "setup")
23+
end
2224

2325
@time begin
2426
# tests in groups based on folder structure

0 commit comments

Comments
 (0)