Initial commit
This commit is contained in:
@@ -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)
|
||||
Reference in New Issue
Block a user