Loading README.md +1 −1 Original line number Diff line number Diff line Loading @@ -506,7 +506,7 @@ The following table includes the most important Python dependencies: | Software | Version | Comments | | ------------------------- | -------- | ------------------------------- | | [utopya](https://gitlab.com/utopia-project/utopya) | >= 1.1 | The (outsourced) Utopia frontend package | | [utopya](https://gitlab.com/utopia-project/utopya) | >= 1.2 | The (outsourced) Utopia frontend package | | [dantro](https://gitlab.com/utopia-project/dantro) | >= 0.18 | Handle, transform, and visualize hierarchically organized data | | [paramspace](https://gitlab.com/blsqr/paramspace) | >= 2.5 | Makes parameter sweeps easy | Loading cmake/modules/UtopiaEnv.cmake +1 −1 Original line number Diff line number Diff line Loading @@ -89,7 +89,7 @@ if (NOT PYTHON_PACKAGE_wheel_FOUND) endif() # -- utopya set(UTOPYA_REQUIRED_VERSION 1.1.3) set(UTOPYA_REQUIRED_VERSION 1.2.0) if(NOT UTOPYA_FROM_PYPI) set(UTOPYA_FROM_PYPI On) Loading python/utopia_base_plots.yml +35 −2 Original line number Diff line number Diff line Loading @@ -164,7 +164,12 @@ _: # start: .style .style.no_spines: style: axes.spines.left: false axes.spines.right: false axes.spines.bottom: false axes.spines.top: false Loading Loading @@ -231,7 +236,7 @@ _: - .animation.defaults # from here # DPI settings # DPI and FPS settings .animation.medium_dpi: animation: writer_kwargs: Loading @@ -242,6 +247,34 @@ _: saving: dpi: 96 .animation.fps10: animation: writer_kwargs: ffmpeg: init: fps: 10 .animation.fps20: animation: writer_kwargs: ffmpeg: init: fps: 20 .animation.fps24: animation: writer_kwargs: ffmpeg: init: fps: 24 .animation.fps30: animation: writer_kwargs: ffmpeg: init: fps: 30 Loading src/utopia/models/SimpleFlocking/SimpleFlocking_base_plots.yml +44 −26 Original line number Diff line number Diff line Loading @@ -56,32 +56,12 @@ _: # .. Plot functions ........................................................... .plot.agents_in_domain: module: model_plots.SimpleFlocking plot_func: agents_in_domain # Use a square figure helpers: setup_figure: figsize: [6, 6] .plot.abm: based_on: - .plot.abm # Configure aesthetics cmap: twilight s: 12 # Colorbar add_colorbar: true cbar_kwargs: orientation: horizontal fraction: 0.02 aspect: 30 cbar_labels: +3.14159: $+π$ +1.570795: $+π/2$ 0: $0$ -1.570795: $+π/2$ -3.14159: $-π$ # .. Facet grid specializations .plot.facet_grid: Loading Loading @@ -123,9 +103,11 @@ _: agents_in_domain: based_on: - .creator.universe - .plot.agents_in_domain - .plot.abm - .animation.ffmpeg - .animation.fps30 # Prepare data select: x: path: agent/x Loading @@ -151,11 +133,47 @@ agents_in_domain: - x: !dag_tag x y: !dag_tag y orientation: !dag_tag orientation tag: data tag: agents # Data encoding x: x y: y frames: time orientation: orientation hue: orientation # Define what to plot to_plot: agents: size_scale: 0.0002 # Pass on space extent (used for setting limits) space_extent: !dag_result space_extent domain: extent: !dag_result space_extent pad: 0 # Aesthetics marker: wedge tail_length: 16 tail_decay: 0.12 tail_max_segment_length: 1. # to avoid problems when crossing a boundary tail_kwargs: color: black linewidth: 0.5 alpha: .6 zorder: -10 # Colorbar cmap: twilight vmin: -3.14159 vmax: +3.14159 cbar_labels: +3.14159: $+π$ +1.570795: $+π/2$ 0: $0$ -1.570795: $+π/2$ -3.14159: $-π$ Loading src/utopia/models/SimpleFlocking/cfgs/demo/eval.yml 0 → 100644 +21 −0 Original line number Diff line number Diff line # Output for the demo scenario --- agents_in_domain: based_on: agents_in_domain agents_in_domain_clean: enabled: false based_on: - agents_in_domain # - .animation.high_dpi - .animation.fps30 - .hlpr.ticks.x.hide - .hlpr.ticks.y.hide - .style.no_spines - .style.no_grid figsize_aspect_offset: 0 suptitle_fstr: false add_colorbar: false Loading
README.md +1 −1 Original line number Diff line number Diff line Loading @@ -506,7 +506,7 @@ The following table includes the most important Python dependencies: | Software | Version | Comments | | ------------------------- | -------- | ------------------------------- | | [utopya](https://gitlab.com/utopia-project/utopya) | >= 1.1 | The (outsourced) Utopia frontend package | | [utopya](https://gitlab.com/utopia-project/utopya) | >= 1.2 | The (outsourced) Utopia frontend package | | [dantro](https://gitlab.com/utopia-project/dantro) | >= 0.18 | Handle, transform, and visualize hierarchically organized data | | [paramspace](https://gitlab.com/blsqr/paramspace) | >= 2.5 | Makes parameter sweeps easy | Loading
cmake/modules/UtopiaEnv.cmake +1 −1 Original line number Diff line number Diff line Loading @@ -89,7 +89,7 @@ if (NOT PYTHON_PACKAGE_wheel_FOUND) endif() # -- utopya set(UTOPYA_REQUIRED_VERSION 1.1.3) set(UTOPYA_REQUIRED_VERSION 1.2.0) if(NOT UTOPYA_FROM_PYPI) set(UTOPYA_FROM_PYPI On) Loading
python/utopia_base_plots.yml +35 −2 Original line number Diff line number Diff line Loading @@ -164,7 +164,12 @@ _: # start: .style .style.no_spines: style: axes.spines.left: false axes.spines.right: false axes.spines.bottom: false axes.spines.top: false Loading Loading @@ -231,7 +236,7 @@ _: - .animation.defaults # from here # DPI settings # DPI and FPS settings .animation.medium_dpi: animation: writer_kwargs: Loading @@ -242,6 +247,34 @@ _: saving: dpi: 96 .animation.fps10: animation: writer_kwargs: ffmpeg: init: fps: 10 .animation.fps20: animation: writer_kwargs: ffmpeg: init: fps: 20 .animation.fps24: animation: writer_kwargs: ffmpeg: init: fps: 24 .animation.fps30: animation: writer_kwargs: ffmpeg: init: fps: 30 Loading
src/utopia/models/SimpleFlocking/SimpleFlocking_base_plots.yml +44 −26 Original line number Diff line number Diff line Loading @@ -56,32 +56,12 @@ _: # .. Plot functions ........................................................... .plot.agents_in_domain: module: model_plots.SimpleFlocking plot_func: agents_in_domain # Use a square figure helpers: setup_figure: figsize: [6, 6] .plot.abm: based_on: - .plot.abm # Configure aesthetics cmap: twilight s: 12 # Colorbar add_colorbar: true cbar_kwargs: orientation: horizontal fraction: 0.02 aspect: 30 cbar_labels: +3.14159: $+π$ +1.570795: $+π/2$ 0: $0$ -1.570795: $+π/2$ -3.14159: $-π$ # .. Facet grid specializations .plot.facet_grid: Loading Loading @@ -123,9 +103,11 @@ _: agents_in_domain: based_on: - .creator.universe - .plot.agents_in_domain - .plot.abm - .animation.ffmpeg - .animation.fps30 # Prepare data select: x: path: agent/x Loading @@ -151,11 +133,47 @@ agents_in_domain: - x: !dag_tag x y: !dag_tag y orientation: !dag_tag orientation tag: data tag: agents # Data encoding x: x y: y frames: time orientation: orientation hue: orientation # Define what to plot to_plot: agents: size_scale: 0.0002 # Pass on space extent (used for setting limits) space_extent: !dag_result space_extent domain: extent: !dag_result space_extent pad: 0 # Aesthetics marker: wedge tail_length: 16 tail_decay: 0.12 tail_max_segment_length: 1. # to avoid problems when crossing a boundary tail_kwargs: color: black linewidth: 0.5 alpha: .6 zorder: -10 # Colorbar cmap: twilight vmin: -3.14159 vmax: +3.14159 cbar_labels: +3.14159: $+π$ +1.570795: $+π/2$ 0: $0$ -1.570795: $+π/2$ -3.14159: $-π$ Loading
src/utopia/models/SimpleFlocking/cfgs/demo/eval.yml 0 → 100644 +21 −0 Original line number Diff line number Diff line # Output for the demo scenario --- agents_in_domain: based_on: agents_in_domain agents_in_domain_clean: enabled: false based_on: - agents_in_domain # - .animation.high_dpi - .animation.fps30 - .hlpr.ticks.x.hide - .hlpr.ticks.y.hide - .style.no_spines - .style.no_grid figsize_aspect_offset: 0 suptitle_fstr: false add_colorbar: false