GIFs not looping

Open
#115 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
python

Research direction

Run the provided clingo and clingraph command using examples/elevator/encoding.lp, examples/elevator/viz.lp, and examples/elevator/instance.lp, then inspect the generated GIF in out/elevator. Trace the --out=animate path and compare the result with the looping GIF shown in the issue; done means the generated animation loops.

Written by the indexing model from the issue text.

Description

Running the elevator example (with slightly changed encoding for reasons explained in #114) that is:

instance:
#const floors=5.
floor(1..floors).

at((floors+1)/2,10). 
called(floors,10).
called(1,10).
encoding:
#const horizon=25.
time(10..horizon).
...

with the provided command:
clingo examples/elevator/encoding.lp examples/elevator/viz.lp examples/elevator/instance.lp --outf=2 | clingraph --out=animate --select-model=0 --dir='out/elevator' --fps=1 --sort=asc-int

produces a non-looping GIF, unlike the one shown in the example:

Image

Dominant language
Python
Stars
38
Forks
7
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from potassco/clingraph

All issues in potassco/clingraph

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.