xingyuzhang2018 / ad-kitaev Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
I'm trying to run the tests, but I get a number of LoadErrors and UndefVarErrors from pretty much every test module. Since there are too many errors to list all of them, here is one example.
test/exampleobs.jl gives LoadError: UndefVarError: obs_bcenv not defined. It seems like it fails to import obs_bcenv from BCVUMPS package (which I've installed in the default Julia environment). I've checked BCVUMPS, and indeed I couldn't locate obs_bcenv anywhere in the code.
exampleobs tests running...
exampleobs: Error During Test at /home/kilda/Desktop/AD-Kitaev/test/runtests.jl:25
Got exception outside of a @test
LoadError: UndefVarError: obs_bcenv not defined
Stacktrace:
[1] include(fname::String)
@ Base.MainInclude ./client.jl:451
[2] macro expansion
@ ~/Desktop/AD-Kitaev/test/runtests.jl:27 [inlined]
[3] macro expansion
@ ~/julia-1.7.1/share/julia/stdlib/v1.7/Test/src/Test.jl:1283 [inlined]
[4] macro expansion
@ ~/Desktop/AD-Kitaev/test/runtests.jl:26 [inlined]
[5] macro expansion
@ ~/julia-1.7.1/share/julia/stdlib/v1.7/Test/src/Test.jl:1283 [inlined]
[6] top-level scope
@ ~/Desktop/AD-Kitaev/test/runtests.jl:5
[7] include(fname::String)
@ Base.MainInclude ./client.jl:451
[8] top-level scope
@ REPL[5]:1
[9] top-level scope
@ ~/.julia/packages/CUDA/tTK8Y/src/initialization.jl:52
[10] eval
@ ./boot.jl:373 [inlined]
[11] eval_user_input(ast::Any, backend::REPL.REPLBackend)
@ REPL ~/julia-1.7.1/share/julia/stdlib/v1.7/REPL/src/REPL.jl:150
[12] repl_backend_loop(backend::REPL.REPLBackend)
@ REPL ~/julia-1.7.1/share/julia/stdlib/v1.7/REPL/src/REPL.jl:244
[13] start_repl_backend(backend::REPL.REPLBackend, consumer::Any)
@ REPL ~/julia-1.7.1/share/julia/stdlib/v1.7/REPL/src/REPL.jl:229
[14] run_repl(repl::REPL.AbstractREPL, consumer::Any; backend_on_current_task::Bool)
@ REPL ~/julia-1.7.1/share/julia/stdlib/v1.7/REPL/src/REPL.jl:362
[15] run_repl(repl::REPL.AbstractREPL, consumer::Any)
@ REPL ~/julia-1.7.1/share/julia/stdlib/v1.7/REPL/src/REPL.jl:349
[16] (::Base.var"#930#932"{Bool, Bool, Bool})(REPL::Module)
@ Base ./client.jl:394
[17] #invokelatest#2
@ ./essentials.jl:716 [inlined]
[18] invokelatest
@ ./essentials.jl:714 [inlined]
[19] run_main_repl(interactive::Bool, quiet::Bool, banner::Bool, history_file::Bool, color_set::Bool)
@ Base ./client.jl:379
[20] exec_options(opts::Base.JLOptions)
@ Base ./client.jl:309
[21] _start()
@ Base ./client.jl:495
in expression starting at /home/kilda/Desktop/AD-Kitaev/test/exampleobs.jl:4
In relation to the other issue #1, here is another example.
test/variationalipeps.jl gives UndefVarError: SquareBCIPEPS not defined. The test module uses SquareBCIPEPS, but cannot find it (I haven't been able to locate it manually either, whether in BCVUMPS or in AD-Kitaev, or anywhere else).
variationalipeps tests running...
non-interacting with Array{Float64}: Error During Test at /home/kilda/Desktop/AD-Kitaev/test/variationalipeps.jl:33
Test threw exception
Expression: energy(h, SquareBCIPEPS(a), oc, key) / 2 โ -1
UndefVarError: SquareBCIPEPS not defined
Stacktrace:
[1] macro expansion
@ ~/julia-1.7.1/share/julia/stdlib/v1.7/Test/src/Test.jl:445 [inlined]
[2] macro expansion
@ ~/Desktop/AD-Kitaev/test/variationalipeps.jl:33 [inlined]
[3] top-level scope
@ ~/julia-1.7.1/share/julia/stdlib/v1.7/Test/src/Test.jl:1359
Both here and in the other issue #1 , it seems like the tests require some external code, either from BCVUMPS or elsewhere, but are not able to find it. (I intend to make some developments on top of your package, so it would be very useful to have working tests, to make sure that I don't break any of the existing functionality).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.