Make Projector class slightly more generic

2 jobs for projector in 31 seconds (queued for 4 seconds)
latest
Status Name Job ID Coverage
  Test
failed linux_docker #255265
docker

00:00:31

failed linux_shell #255264
shell

00:00:15

 
Name Stage Failure
failed
linux_docker Test
  Downloading scipy-1.7.1-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl (28.5 MB)
Requirement already satisfied: numpy<1.23.0,>=1.16.5 in /root/gitlab_ci/nabu/venv/lib/python3.7/site-packages (from scipy) (1.21.2)
Installing collected packages: scipy
Successfully installed scipy-1.7.1
$ if [[ $CI_RUNNER_TAGS == *"gpu"* ]]; then pip install pycuda scikit-cuda; fi
$ bash .gitlab/get_version_diff.sh
Please update the micro version number. Current version on master branch is "2021.2.0-alpha3"
Cleaning up file based variables
ERROR: Job failed: exit code 1
failed
linux_shell Test
$ pip install silx --upgrade --pre silx
Requirement already satisfied: silx in /dev/shm/gitlab_ci/nabu/venv/lib/python3.8/site-packages (0.15.2)
Requirement already satisfied: h5py in /dev/shm/gitlab_ci/nabu/venv/lib/python3.8/site-packages (from silx) (3.1.0)
Requirement already satisfied: six in /dev/shm/gitlab_ci/nabu/venv/lib/python3.8/site-packages (from silx) (1.15.0)
Requirement already satisfied: setuptools in /dev/shm/gitlab_ci/nabu/venv/lib/python3.8/site-packages (from silx) (58.0.4)
Requirement already satisfied: fabio>=0.9 in /dev/shm/gitlab_ci/nabu/venv/lib/python3.8/site-packages (from silx) (0.11.0)
Requirement already satisfied: numpy>=1.17.3 in /dev/shm/gitlab_ci/nabu/venv/lib/python3.8/site-packages (from silx) (1.21.2)
$ pip install scipy
Requirement already satisfied: scipy in /dev/shm/gitlab_ci/nabu/venv/lib/python3.8/site-packages (1.6.0)
Requirement already satisfied: numpy>=1.16.5 in /dev/shm/gitlab_ci/nabu/venv/lib/python3.8/site-packages (from scipy) (1.21.2)