changed target of Flake8 to 3.9 to avoid some errors with older debian versions

This commit is contained in:
Félix Boisselier
2024-04-18 22:55:57 +02:00
parent bf6adcd93c
commit e4810f82d0
3 changed files with 3 additions and 3 deletions

View File

@@ -18,7 +18,7 @@ Changelog = "https://github.com/Frix-x/klippain-shaketune/releases"
[tool.ruff] [tool.ruff]
line-length = 120 # We all have modern screens now and I believe this should be brought in line with current technology line-length = 120 # We all have modern screens now and I believe this should be brought in line with current technology
indent-width = 4 indent-width = 4
target-version = "py310" target-version = "py39"
[tool.ruff.lint] [tool.ruff.lint]
select = ["E4", "E7", "E9", "F", "B"] select = ["E4", "E7", "E9", "F", "B"]

View File

@@ -355,7 +355,7 @@ def plot_difference_spectrogram(ax, signal1, signal2, t, bins, combined_divergen
KLIPPAIN_COLORS['dark_purple'], KLIPPAIN_COLORS['dark_purple'],
] ]
cm = matplotlib.colors.LinearSegmentedColormap.from_list( cm = matplotlib.colors.LinearSegmentedColormap.from_list(
'klippain_divergent', list(zip([0, 0.25, 0.5, 0.75, 1], colors, strict=True)) 'klippain_divergent', list(zip([0, 0.25, 0.5, 0.75, 1], colors))
) )
norm = matplotlib.colors.TwoSlopeNorm(vmin=np.min(combined_divergent), vcenter=0, vmax=np.max(combined_divergent)) norm = matplotlib.colors.TwoSlopeNorm(vmin=np.min(combined_divergent), vcenter=0, vmax=np.max(combined_divergent))
ax.imshow( ax.imshow(

View File

@@ -123,7 +123,7 @@ def compute_dir_speed_spectrogram(measured_speeds, data, kinematics='cartesian',
sqrt_2_inv = 1 / math.sqrt(2) sqrt_2_inv = 1 / math.sqrt(2)
# Compute the spectrum vibrations for each angle and speed combination # Compute the spectrum vibrations for each angle and speed combination
for target_angle_idx, (cos_val, sin_val) in enumerate(zip(cos_vals, sin_vals, strict=True)): for target_angle_idx, (cos_val, sin_val) in enumerate(zip(cos_vals, sin_vals)):
for target_speed_idx, target_speed in enumerate(spectrum_speeds): for target_speed_idx, target_speed in enumerate(spectrum_speeds):
if kinematics == 'cartesian': if kinematics == 'cartesian':
speed_1 = np.abs(target_speed * cos_val) speed_1 = np.abs(target_speed * cos_val)