修正了<数据粗同步>中配置文件读取的一处错误
This commit is contained in:
@ -1310,9 +1310,10 @@ class Data:
|
|||||||
def get_epoch(self):
|
def get_epoch(self):
|
||||||
# 获取epoch
|
# 获取epoch
|
||||||
try:
|
try:
|
||||||
epoch_min = max(0, Config["pos"] // 30 // Config["ApplyFrequency"] + 1)
|
epoch_second = Params.APPROXIMATELY_ALIGN_CONFIG_NEW_CONTENT["Second_PerEpoch"]
|
||||||
epoch_max = min(len(self.processed_downsample_Tho) // 30 // Config["ApplyFrequency"] - 1,
|
epoch_min = max(0, Config["pos"] // epoch_second // Config["ApplyFrequency"] + 1)
|
||||||
(len(self.processed_downsample_orgBcg) + Config["pos"]) // 30 // Config[
|
epoch_max = min(len(self.processed_downsample_Tho) // epoch_second // Config["ApplyFrequency"] - 1,
|
||||||
|
(len(self.processed_downsample_orgBcg) + Config["pos"]) // epoch_second // Config[
|
||||||
"ApplyFrequency"] - 1)
|
"ApplyFrequency"] - 1)
|
||||||
|
|
||||||
result = {"epoch_min": epoch_min, "epoch_max": epoch_max}
|
result = {"epoch_min": epoch_min, "epoch_max": epoch_max}
|
||||||
|
|||||||
Reference in New Issue
Block a user