Giter Site home page Giter Site logo

ad-kitaev's People

Contributors

xingyuzhang2018 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

dkilda

ad-kitaev's Issues

UndefVarError and LoadError when running test/exampleobs.jl

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

UndefVarError when running test/variationalipeps.jl

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).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.