UI changes
This commit is contained in:
@@ -11,6 +11,11 @@ def parse_target_filename(filename, parent_dir):
|
||||
test_identifier = f"{parent_dir}/{base_name}"
|
||||
interference = segments[0] if segments and segments[0] in INTERFERENCE_TYPES else None
|
||||
test_id = next((s for s in segments if re.match(r"^R\d+[A-Z0-9]+$", s, re.IGNORECASE)), None)
|
||||
throttled = None
|
||||
if interference == "P3P" and test_id:
|
||||
# P3P test_id carries throttle marker: TH = throttled, otherwise UT.
|
||||
throttled = "TH" if "TH" in test_id.upper() else "UT"
|
||||
|
||||
device = segments[1] if len(segments) > 1 else None
|
||||
test_point = next((s for s in segments if re.match(r"^TPT\w+$", s)), None)
|
||||
rssi = next((s for s in segments if re.match(r"^RSSI\d+$", s)), None)
|
||||
@@ -39,6 +44,7 @@ def parse_target_filename(filename, parent_dir):
|
||||
"bandwidth": bandwidth,
|
||||
"direction": direction,
|
||||
"rotation": rotation,
|
||||
"throttled": throttled,
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user