Skip to content

Commit 50d3f49

Browse files
committed
fix(build-config): remove int cast which drops precision
1 parent 1613255 commit 50d3f49

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/core/config.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def generate_config(trait_dir: str, output: str, verbose: int) -> None:
1414
# calculate weight
1515
weight = []
1616
for i in range(len(item_list)):
17-
weight.append(int((100 / len(item_list[i]))))
17+
weight.append((100 / len(item_list[i])))
1818
for j in range(len(item_list[i])):
1919
item_list[i][j] = item_list[i][j].split(".")[0]
2020

@@ -48,7 +48,6 @@ def generate_config(trait_dir: str, output: str, verbose: int) -> None:
4848
}
4949

5050
# ensure the directory exists for the output file
51-
print(config)
5251
try:
5352
os.makedirs(os.path.dirname(output), exist_ok=True)
5453
except OSError:

0 commit comments

Comments
 (0)