/Users/jmapel/miniconda3/envs/knoten/lib/python3.7/site-packages/ale/__init__.py:22: UserWarning: ALESPICEROOT environment variable not set, Spice Drivers will not function correctly
warnings.warn('ALESPICEROOT environment variable not set, Spice Drivers will not function correctly')
%% Cell type:code id: tags:
``` python
defcompute_image_weight(sensor,parameters):
"""
Compute the weight matrix for the sensor parameters of a single image.