Skip to content

Commit 77341ea

Browse files
committed
refactor: fix lint errors
1 parent be81d36 commit 77341ea

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

scripts/cluster_model_files.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
#
1717
# Author: Woojin Wie
1818

19-
import os
20-
import hashlib
2119
from collections import defaultdict
20+
import hashlib
21+
import os
2222

2323
MODEL_DIR = os.path.join(os.path.dirname(__file__), '..', 'param', 'dxl_model')
2424

@@ -28,6 +28,7 @@
2828
# Dictionary to map file content hash to list of files
2929
hash_to_files = defaultdict(list)
3030

31+
3132
def extract_control_table(filepath):
3233
with open(filepath, 'r', encoding='utf-8') as f:
3334
lines = f.readlines()
@@ -45,9 +46,11 @@ def extract_control_table(filepath):
4546
control_table_lines.append(line.strip())
4647
return '\n'.join(control_table_lines)
4748

49+
4850
def control_table_hash(control_table_str):
4951
return hashlib.sha256(control_table_str.encode('utf-8')).hexdigest()
5052

53+
5154
for filename in files:
5255
path = os.path.join(MODEL_DIR, filename)
5356
control_table = extract_control_table(path)

0 commit comments

Comments
 (0)