From e3b5236c7e5166cde9d8b3e2efd1d38548d3c014 Mon Sep 17 00:00:00 2001 From: Andi Gerken <andi.gerken@gmail.com> Date: Tue, 25 Jul 2023 11:27:53 +0000 Subject: [PATCH] Mac ci --- .gitlab-ci.yml | 10 +++++----- src/robofish/io/file.py | 3 ++- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index cd7462b..1ffc452 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -8,8 +8,8 @@ stages: tags: [linux, docker] image: git.imp.fu-berlin.de:5000/bioroboticslab/auto/ci/centos:latest -#.macos: -# tags: [macos, shell] +.macos: + tags: [macos, shell] .windows: tags: [windows, docker] @@ -50,9 +50,9 @@ package: extends: .centos <<: *test -#"test: [macos, 3.8]": -# extends: .macos -# <<: *test +"test: [macos, 3.8]": + extends: .macos + <<: *test "test: [windows, 3.8]": extends: .windows diff --git a/src/robofish/io/file.py b/src/robofish/io/file.py index a75927c..acdec48 100644 --- a/src/robofish/io/file.py +++ b/src/robofish/io/file.py @@ -37,6 +37,7 @@ import platform import matplotlib import matplotlib.pyplot as plt +import matplotlib.cm as cm from matplotlib import animation from matplotlib import patches @@ -909,7 +910,7 @@ class File(h5py.File): else: step_size = poses.shape[1] - cmap = matplotlib.colormaps[cmap] + cmap = cm.get_cmap(cmap) x_world, y_world = self.world_size if figsize is None: -- GitLab