This commit is contained in:
2025-12-16 12:21:51 -08:00
parent 78f5c8ea08
commit 23499b140c
2 changed files with 4 additions and 4 deletions

View File

@@ -110,9 +110,9 @@ class Event:
yield (s1, None)
def _asc_sop_statement(self) -> Optional[StmtCdlSop]:
return next((s for s in self.statements if type(s) == StmtCdlSop),
return next((s for s in self.statements if type(s) is StmtCdlSop),
None)
def _asc_sat_statement(self) -> Optional[StmtCdlSat]:
return next((s for s in self.statements if type(s) == StmtCdlSat),
return next((s for s in self.statements if type(s) is StmtCdlSat),
None)

View File

@@ -109,8 +109,8 @@ def _parse_remark(line, line_number) -> object:
elif line.startswith("ASC_SOP"):
group_patterns: list[str] = re.findall(r'\((.*?)\)', line)
v1: list[list[tuple[str, str]]] = [re.findall(r'(-?\d+(\.\d+)?)', a) for
a in group_patterns]
v1: list[list[tuple[str, str]]] = \
[re.findall(r'(-?\d+(\.\d+)?)', a) for a in group_patterns]
v: list[list[str]] = [[a[0] for a in b] for b in v1]