Git Product home page Git Product logo

Comments (3)

zsunberg avatar zsunberg commented on August 15, 2024

Hmmm... Regarding the error in 1.2, I think replacing visualization.jl line 53 with

        a = h[end].a

Might fix it.

The current problem is that action_hist is a Generator, not a Vector, so it is hard to get the last element. Maybe POMDPSimulators should be changed, but I think this is a low priority because h[end].a is better syntax I think.

from vdptag2.jl.

ChandlerKilpatrick1 avatar ChandlerKilpatrick1 commented on August 15, 2024

Hey @zsunberg ,

I made your recommended change in v1.2 and got the following error.

ERROR: LoadError: IOError: could not spawn `setsid xdg-open /var/folders/6v/sz982gqs2t33fj2c9_07jvcc0000gn/T/jl_tqYxba_vdprun.gif`: no such file or directory (ENOENT)
Stacktrace:
 [1] _spawn_primitive(::String, ::Cmd, ::Array{Any,1}) at ./process.jl:401
 [2] #526 at ./process.jl:414 [inlined]
 [3] setup_stdios(::getfield(Base, Symbol("##526#527")){Cmd}, ::Array{Any,1}) at ./process.jl:498
 [4] _spawn at ./process.jl:413 [inlined]
 [5] #run#536(::Bool, ::typeof(run), ::Cmd) at ./process.jl:727
 [6] run(::Cmd) at ./process.jl:726
 [7] top-level scope at /Users/chandlerkilpatrick/.julia/dev/VDPTag2/test/gif.jl:35
 [8] include at ./boot.jl:328 [inlined]
 [9] include_relative(::Module, ::String) at ./loading.jl:1094
 [10] include(::Module, ::String) at ./Base.jl:31
 [11] include(::String) at ./client.jl:431
 [12] top-level scope at REPL[1]:1
in expression starting at /Users/chandlerkilpatrick/.julia/dev/VDPTag2/test/gif.jl:35

from vdptag2.jl.

zsunberg avatar zsunberg commented on August 15, 2024

Hi @ChandlerKilpatrick1 It appears that the gif is being created correctly. xdg-open is a linux command to open a file with an appropriate program, and setsid tells the system to run xdg-open in a new process not associated with the current shell. Looks like you're on mac, so you'll have to either modify the xdg-open line appropriately or remove it and open the saved gif manually.

from vdptag2.jl.

Related Issues (8)

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.