Initial commit

This commit is contained in:
jackyu66git
2025-06-10 01:16:09 +08:00
commit 05bab03b8c
155 changed files with 19979 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
from Common.CEnum import LEFT_SEG_METHOD
from Common.ChanException import CChanException, ErrCode
class CSegConfig:
def __init__(self, seg_algo="chan", left_method="peak"):
self.seg_algo = seg_algo
if left_method == "all":
self.left_method = LEFT_SEG_METHOD.ALL
elif left_method == "peak":
self.left_method = LEFT_SEG_METHOD.PEAK
else:
raise CChanException(f"unknown left_seg_method={left_method}", ErrCode.PARA_ERROR)