Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "ITensorNetworks"
uuid = "2919e153-833c-4bdc-8836-1ea460a35fc7"
authors = ["Matthew Fishman <[email protected]>, Joseph Tindall <[email protected]> and contributors"]
version = "0.13.3"
version = "0.13.4"

[deps]
AbstractTrees = "1520ce14-60c1-5f80-bbc7-55ef81b5835c"
Expand Down
4 changes: 2 additions & 2 deletions src/indsnetwork.jl
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
return IndsNetwork{V,I}(g, link_space, site_space)
end

@traitfn function IndsNetwork(g::G, link_space, site_space) where {G; IsUnderlyingGraph{G}}
@traitfn function IndsNetwork(g::G, link_space, site_space) where {G;IsUnderlyingGraph{G}}

Check warning on line 68 in src/indsnetwork.jl

View check run for this annotation

Codecov / codecov/patch

src/indsnetwork.jl#L68

Added line #L68 was not covered by tests
V = vertextype(g)
return IndsNetwork{V}(g, link_space, site_space)
end
Expand Down Expand Up @@ -133,7 +133,7 @@
return IndsNetwork{V}(g, link_space, site_space)
end

@traitfn function IndsNetwork(g::G; kwargs...) where {G; IsUnderlyingGraph{G}}
@traitfn function IndsNetwork(g::G; kwargs...) where {G;IsUnderlyingGraph{G}}
return IndsNetwork{vertextype(g)}(g; kwargs...)
end

Expand Down
28 changes: 14 additions & 14 deletions src/solvers/sweep_plans/sweep_plans.jl
Original file line number Diff line number Diff line change
Expand Up @@ -108,19 +108,19 @@ function default_sweep_plans(
transform_operator_kwargs,
kwargs...,
)
extracter, updater, inserter, transform_operator =
extend_or_truncate.((extracter, updater, inserter, transform_operator), nsweeps)
inserter_kwargs, updater_kwargs, extracter_kwargs, transform_operator_kwargs, kwargs =
expand.(
(
inserter_kwargs,
updater_kwargs,
extracter_kwargs,
transform_operator_kwargs,
NamedTuple(kwargs),
),
nsweeps,
)
extracter, updater, inserter, transform_operator = extend_or_truncate.(
(extracter, updater, inserter, transform_operator), nsweeps
)
inserter_kwargs, updater_kwargs, extracter_kwargs, transform_operator_kwargs, kwargs = expand.(
(
inserter_kwargs,
updater_kwargs,
extracter_kwargs,
transform_operator_kwargs,
NamedTuple(kwargs),
),
nsweeps,
)
sweep_plans = []
for i in 1:nsweeps
sweep_plan = sweep_plan_func(
Expand Down Expand Up @@ -187,7 +187,7 @@ function tdvp_sweep_plan(
region_kwargs...,
),
reverse_kwargs=(;
internal_kwargs=(; substep, time_step=-sub_time_step, t=t_evolved),
internal_kwargs=(; substep, time_step=(-sub_time_step), t=t_evolved),
region_kwargs...,
),
reverse_step,
Expand Down
10 changes: 6 additions & 4 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,13 @@ const GROUP = uppercase(
)

"match files of the form `test_*.jl`, but exclude `*setup*.jl`"
istestfile(fn) =
endswith(fn, ".jl") && startswith(basename(fn), "test_") && !contains(fn, "setup")
function istestfile(fn)
return endswith(fn, ".jl") && startswith(basename(fn), "test_") && !contains(fn, "setup")
end
"match files of the form `*.jl`, but exclude `*_notest.jl` and `*setup*.jl`"
isexamplefile(fn) =
endswith(fn, ".jl") && !endswith(fn, "_notest.jl") && !contains(fn, "setup")
function isexamplefile(fn)
return endswith(fn, ".jl") && !endswith(fn, "_notest.jl") && !contains(fn, "setup")
end

@time begin
# tests in groups based on folder structure
Expand Down
2 changes: 1 addition & 1 deletion test/test_ttn_tdvp.jl
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ using Test: @testset, @test
H,
-ttotal,
state;
time_step=-tau,
time_step=(-tau),
maxdim,
cutoff,
nsites,
Expand Down
Loading