Skip to content

Commit e1e8dc4

Browse files
committed
enabled auto level detection
1 parent 9dc3f25 commit e1e8dc4

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

pages/01_Create_RDD_Count_Table.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -256,12 +256,16 @@ def load_demo_file(filename):
256256
"Maximum ontology levels to analyse",
257257
0,
258258
10,
259-
6,
259+
None,
260260
1,
261-
help="Set to 0 for file-level counts only (no ontology aggregation)",
261+
help="Leave empty for automatic detection, or set to 0 for file-level counts only",
262262
)
263263

264-
if ontology_cols and levels_val > len([c for c in ontology_cols.split(",") if c.strip()]):
264+
if (
265+
ontology_cols
266+
and levels_val
267+
and levels_val > len([c for c in ontology_cols.split(",") if c.strip()])
268+
):
265269
st.warning("Reducing 'levels' to match number of ontology columns.")
266270
levels_val = len([c for c in ontology_cols.split(",") if c.strip()])
267271

0 commit comments

Comments
 (0)