Supprimer le code mort (imports inutilisés, variable _xp, conseil GPU inatteignable)

This commit is contained in:
Antoine Jacquin
2026-09-18 21:31:19 +02:00
parent 7e2dcfe656
commit 796e68c870
7 changed files with 8 additions and 27 deletions

View File

@ -28,16 +28,9 @@ import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
from matplotlib import rcParams
from matplotlib.patches import Polygon as MplPolygon, Rectangle as RectPatch, FancyBboxPatch
from matplotlib.colors import ListedColormap
from matplotlib.patches import Polygon as MplPolygon, Rectangle as RectPatch
from matplotlib.ticker import ScalarFormatter
try:
from cmcrameri import cm as cmc
HAS_CMCRAmeri = True
except ImportError:
HAS_CMCRAmeri = False
rcParams['figure.dpi'] = 150
rcParams['savefig.dpi'] = 300
rcParams['font.size'] = 10
@ -284,8 +277,6 @@ def _download_location_map(min_x, max_x, min_y, max_y):
Tuple (image_array, bounds_dict) where bounds_dict has keys
'min_x', 'max_x', 'min_y', 'max_y' in Lambert 93, or None on failure.
"""
import hashlib
# Cache key based on rounded coordinates (1km grid)
cache_key = (round(min_x, -3), round(max_x, -3), round(min_y, -3), round(max_y, -3))
if cache_key in _location_map_cache: