Skip to content

Commit 1a2f509

Browse files
committedAug 21, 2024
bug fixing
1 parent 846978a commit 1a2f509

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎NRSAcore/_Win.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -309,9 +309,9 @@ def L2_to_L1(self,
309309
# L1的行数与ls_SDOF的长度必须相等,保证结果与id一一对应
310310
self.logger.error(f'results_L2的长度({len(results_L2)})与ls_SDOF({len(ls_SDOF)})不一致')
311311
raise SDOFError('_Win.py, _write_results, Error - 1')
312-
for id_ in ls_SDOF:
312+
for i, id_ in enumerate(ls_SDOF): # DEBUG: 待确认
313313
idx = id_ - 1
314-
self.results_L1[idx, 1:] = results_L2[idx] # L2写入L1
314+
self.results_L1[idx, 1:] = results_L2[i] # L2写入L1 # DEBUG: 待确认
315315
except Exception as error:
316316
self.lock.release()
317317
return error

0 commit comments

Comments
 (0)
Please sign in to comment.