Skip to content

Commit 2ff1401

Browse files
committed
Support nested aggregation based on ID
1 parent 3d9aa9d commit 2ff1401

2 files changed

Lines changed: 479 additions & 133 deletions

File tree

dfanalyzer/__main__.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,18 @@
1717
filter_warnings()
1818
init_hydra_config_store()
1919

20+
def cli():
21+
"""
22+
Dispatch between the new --report mode and the usual Hydra-powered analysis.
23+
"""
24+
if '--report' in sys.argv:
25+
# Remove our flag so dfreport.py sees only its own args
26+
sys.argv.remove('--report')
27+
from .utils.dfreport import main as report_main
28+
report_main()
29+
else:
30+
main()
31+
2032
@hydra.main(version_base=None, config_name="config")
2133
def main(cfg: Config) -> None:
2234
# Configure structlog + stdlib logging

0 commit comments

Comments
 (0)