Skip to content

Commit 7f0db0f

Browse files
committed
minor fixes to split
1 parent 855e899 commit 7f0db0f

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

rna3db/split.py

+1-5
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,9 @@ def split(
6161
output[split_names[-1]]["component_0"] = cluster_json["component_0"]
6262
lengths.pop("component_0")
6363

64-
# start with the smallest splits
65-
# splits, split_names = zip(*sorted(zip(splits, split_names), reverse=True))
66-
67-
capacities = [int(total_repr_clusters * ratio) for ratio in splits]
64+
capacities = [round(total_repr_clusters * ratio) for ratio in splits]
6865
for name, capacity in zip(split_names, capacities):
6966
components = find_optimal_components(lengths, capacity)
70-
print(name, capacity, components)
7167
for k in sorted(components):
7268
lengths.pop(k)
7369
output[name][k] = cluster_json[k]

0 commit comments

Comments
 (0)