|
QDpy
|
Render archive histories and assemble ordered PNG frames into GIFs or MP4. More...
Go to the source code of this file.
Namespaces | |
| namespace | qdpy |
Functions | |
| qdpy._archive_animation._progress_metrics (archive, objective) | |
| qdpy._archive_animation.render_archive_frames (source, output_dir, *, trusted_pickle=False, panel_options=None, shared_scale=False, columns=None, colorbar=True, figsize=None, dpi=100, show_progress=False, highlight_changes=False, **options) | |
| Render archive history as fixed-size PNG frames with stable scales. | |
| qdpy._archive_animation._ffmpeg_inputs (executable, frames, folder, fps) | |
| qdpy._archive_animation.assemble_gif (frames, output, *, fps=8, encoder="auto", overwrite=False) | |
| Assemble PNGs using gifski, FFmpeg, or Pillow. | |
| qdpy._archive_animation.assemble_mp4 (frames, output, *, fps=8, overwrite=False) | |
| Assemble ordered PNGs into a browser-compatible H.264 MP4. | |
| qdpy._archive_animation.animate_archives (source, output, *, frames_dir=None, fps=8, encoder="auto", overwrite=False, **options) | |
| Render archive history and assemble it into a GIF or MP4. | |
Render archive histories and assemble ordered PNG frames into GIFs or MP4.
Definition in file _archive_animation.py.
|
protected |
Stage a contiguous image sequence for explicit or nonstandard frame names.
Definition at line 251 of file _archive_animation.py.
|
protected |
Sum the selected objective's normalized cell bests and count occupied cells.
Definition at line 87 of file _archive_animation.py.
| qdpy._archive_animation.animate_archives | ( | source, | |
| output, | |||
| * | , | ||
| frames_dir = None, | |||
| fps = 8, | |||
| encoder = "auto", | |||
| overwrite = False, | |||
| ** | options ) |
Render archive history and assemble it into a GIF or MP4.
Write a GIF or ``.mp4`` video and optionally retain its PNG frames. Forward rendering options, including trusted_pickle, to ``render_archive_frames()``.
Definition at line 366 of file _archive_animation.py.
| qdpy._archive_animation.assemble_gif | ( | frames, | |
| output, | |||
| * | , | ||
| fps = 8, | |||
| encoder = "auto", | |||
| overwrite = False ) |
Assemble PNGs using gifski, FFmpeg, or Pillow.
Encode looping GIF output and return its path. Directories use natural filename order. Explicit sequences keep the caller's order. Auto mode tries gifski, FFmpeg, and Pillow in sequence. Explicit encoder failures report the original diagnostic.
Definition at line 294 of file _archive_animation.py.
| qdpy._archive_animation.assemble_mp4 | ( | frames, | |
| output, | |||
| * | , | ||
| fps = 8, | |||
| overwrite = False ) |
Assemble ordered PNGs into a browser-compatible H.264 MP4.
Encode a silent MP4 with the system FFmpeg and return the output path. Directories use natural filename order and explicit sequences retain caller order. Frames with odd dimensions are padded to even dimensions.
Definition at line 334 of file _archive_animation.py.
| qdpy._archive_animation.render_archive_frames | ( | source, | |
| output_dir, | |||
| * | , | ||
| trusted_pickle = False, | |||
| panel_options = None, | |||
| shared_scale = False, | |||
| columns = None, | |||
| colorbar = True, | |||
| figsize = None, | |||
| dpi = 100, | |||
| show_progress = False, | |||
| highlight_changes = False, | |||
| ** | options ) |
Render archive history as fixed-size PNG frames with stable scales.
Write numbered PNG frames and return their paths in time order. Use a history directory or the same input accepted by ``read_archive_history()``. View options follow ``plot_archives()``. Axis and colour limits are gathered across the history before drawing. The output directory must be new or empty. :param show_progress: Add QD score and coverage curves with a budget cursor. :param highlight_changes: Mark new and improved cells on stable planar geometry.
Definition at line 159 of file _archive_animation.py.