added ruff code reivew

This commit is contained in:
ykcheungab
2026-09-27 19:21:55 +08:00
parent 07da372204
commit e2ac36269c
110 changed files with 890 additions and 426 deletions
+2 -3
View File
@@ -36,10 +36,9 @@ from __future__ import annotations
import argparse
import csv
import statistics
import sys
from collections.abc import Sequence
from pathlib import Path
from typing import Sequence
import numpy as np
@@ -79,7 +78,7 @@ def _window(
valid = _column(rows, VALID_COLUMN)
mask = np.ones(times.shape, dtype=bool)
if times.size:
mask &= times == times # drop NaN timestamps
mask &= ~np.isnan(times) # drop NaN timestamps (unparsable TIME cells)
if start is not None:
mask &= times >= float(start)
if stop is not None: