From a860793218ea727e1e190d0688aa9dff9979b822 Mon Sep 17 00:00:00 2001 From: Joey Date: Tue, 9 Apr 2024 12:09:22 -0400 Subject: [PATCH] Refactor for name change --- Project.toml | 2 +- examples/2d_laplace_solver.jl | 2 +- ...ensorNetworkFunctionals.jl => ITensorNumericalAnalysis.jl} | 2 +- test/runtests.jl | 4 ++-- test/test_bitmaps.jl | 2 +- test/test_itensorfunction.jl | 2 +- test/test_operators.jl | 4 ++-- 7 files changed, 9 insertions(+), 9 deletions(-) rename src/{TensorNetworkFunctionals.jl => ITensorNumericalAnalysis.jl} (96%) diff --git a/Project.toml b/Project.toml index 4e3cfef..dc781c6 100644 --- a/Project.toml +++ b/Project.toml @@ -1,4 +1,4 @@ -name = "TensorNetworkFunctionals" +name = "ITensorNumericalAnalysis" uuid = "666f501e-685d-4e36-ab44-ece85df6022b" authors = ["Joseph Tindall ", "Ryan Levy "] version = "0.1.0" diff --git a/examples/2d_laplace_solver.jl b/examples/2d_laplace_solver.jl index 7167d2e..55bb2aa 100644 --- a/examples/2d_laplace_solver.jl +++ b/examples/2d_laplace_solver.jl @@ -1,5 +1,5 @@ using Test -using TensorNetworkFunctionals +using ITensorNumericalAnalysis using Graphs: SimpleGraph, uniform_tree, binary_tree, random_regular_graph, is_tree using NamedGraphs: diff --git a/src/TensorNetworkFunctionals.jl b/src/ITensorNumericalAnalysis.jl similarity index 96% rename from src/TensorNetworkFunctionals.jl rename to src/ITensorNumericalAnalysis.jl index b21a0a1..f177a53 100644 --- a/src/TensorNetworkFunctionals.jl +++ b/src/ITensorNumericalAnalysis.jl @@ -1,4 +1,4 @@ -module TensorNetworkFunctionals +module ITensorNumericalAnalysis include("itensornetworksutils.jl") include("bitmaps.jl") diff --git a/test/runtests.jl b/test/runtests.jl index a16cfe6..316ae4f 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -1,11 +1,11 @@ using Test using Glob using ITensorNetworks -using TensorNetworkFunctionals +using ITensorNumericalAnalysis # https://discourse.julialang.org/t/rdir-search-recursive-for-files-with-a-given-name-pattern/75605/12 @testset "test directory $root" for (root, dirs, files) in walkdir( - joinpath(pkgdir(TensorNetworkFunctionals), "test") + joinpath(pkgdir(ITensorNumericalAnalysis), "test") ) test_files = filter!(f -> occursin(Glob.FilenameMatch("test_*.jl"), f), files) @testset "Test file $test_file" for test_file in test_files diff --git a/test/test_bitmaps.jl b/test/test_bitmaps.jl index 42b3b83..37ecde0 100644 --- a/test/test_bitmaps.jl +++ b/test/test_bitmaps.jl @@ -1,5 +1,5 @@ using Test -using TensorNetworkFunctionals +using ITensorNumericalAnalysis using NamedGraphs: named_grid, vertices using ITensors: siteinds diff --git a/test/test_itensorfunction.jl b/test/test_itensorfunction.jl index dc32f9f..abd59fe 100644 --- a/test/test_itensorfunction.jl +++ b/test/test_itensorfunction.jl @@ -1,5 +1,5 @@ using Test -using TensorNetworkFunctionals +using ITensorNumericalAnalysis using Graphs: SimpleGraph, uniform_tree using NamedGraphs: NamedGraph, named_grid, vertices, named_comb_tree, rename_vertices diff --git a/test/test_operators.jl b/test/test_operators.jl index bbe26e8..0d345c7 100644 --- a/test/test_operators.jl +++ b/test/test_operators.jl @@ -1,11 +1,11 @@ using Test -using TensorNetworkFunctionals +using ITensorNumericalAnalysis using ITensors: siteinds using ITensorNetworks: maxlinkdim using Graphs: SimpleGraph, uniform_tree using NamedGraphs: named_grid, named_comb_tree, NamedGraph, nv, vertices -using TensorNetworkFunctionals: itensornetwork +using ITensorNumericalAnalysis: itensornetwork using Dictionaries: Dictionary @testset "test laplacian in 1D on MPS" begin