Skip to content

Commit 19c3589

Browse files
committed
style: apply ruff formatting
1 parent ca2238e commit 19c3589

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

cnsd/physics/gear.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,7 @@ def gear_fault_evidence(signal, rpm, n_teeth_input, n_teeth_output=None, fs=DEFA
8686
gf = gear_mesh_frequencies(rpm, n_teeth_input, n_teeth_output)
8787
gmf, shaft = gf['GMF'], gf['shaft_input']
8888
n_samples = len(np.asarray(signal).flatten())
89-
mesh = np.mean(
90-
[_prominence(freqs, mag, gmf * h, fs=fs, n_samples=n_samples) for h in (1, 2)]
91-
)
89+
mesh = np.mean([_prominence(freqs, mag, gmf * h, fs=fs, n_samples=n_samples) for h in (1, 2)])
9290
side = sideband_strength(freqs, mag, gmf, shaft, fs=fs, n_samples=n_samples)
9391
return {
9492
'mesh_strength': float(mesh),

0 commit comments

Comments
 (0)