changed target of Flake8 to 3.9 to avoid some errors with older debian versions
This commit is contained in:
@@ -18,7 +18,7 @@ Changelog = "https://github.com/Frix-x/klippain-shaketune/releases"
|
||||
[tool.ruff]
|
||||
line-length = 120 # We all have modern screens now and I believe this should be brought in line with current technology
|
||||
indent-width = 4
|
||||
target-version = "py310"
|
||||
target-version = "py39"
|
||||
|
||||
[tool.ruff.lint]
|
||||
select = ["E4", "E7", "E9", "F", "B"]
|
||||
|
||||
@@ -355,7 +355,7 @@ def plot_difference_spectrogram(ax, signal1, signal2, t, bins, combined_divergen
|
||||
KLIPPAIN_COLORS['dark_purple'],
|
||||
]
|
||||
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))
|
||||
ax.imshow(
|
||||
|
||||
@@ -123,7 +123,7 @@ def compute_dir_speed_spectrogram(measured_speeds, data, kinematics='cartesian',
|
||||
sqrt_2_inv = 1 / math.sqrt(2)
|
||||
|
||||
# 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):
|
||||
if kinematics == 'cartesian':
|
||||
speed_1 = np.abs(target_speed * cos_val)
|
||||
|
||||
Reference in New Issue
Block a user