File tree Expand file tree Collapse file tree 2 files changed +19
-1
lines changed
Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change 2323
2424 sanity_check :
2525 parameters :
26- inputs : {data_path: data/, parameters_file: {type: file, default: parameters.yaml}}
26+ inputs : {data_path: data/, parameters_file: {type: file, default: parameters.yaml}}
27+
28+ statistics :
29+ parameters :
30+ inputs : {data_path: data/, parameters_file: {type: file, default: parameters.yaml}}
31+ outputs : {output_path: {type: file, default: statistics.yaml}}
Original file line number Diff line number Diff line change 11"""MLCube handler file"""
22import os
33import typer
4+ import yaml
45import subprocess
56
67
@@ -43,6 +44,18 @@ def sanity_check(
4344):
4445 pass
4546
47+ @app .command ("statistics" )
48+ def statistics (
49+ data_path : str = typer .Option (..., "--data_path" ),
50+ parameters_file : str = typer .Option (..., "--parameters_file" ),
51+ output_path : str = typer .Option (..., "--output_path" )
52+ ):
53+ stats = {
54+ "stat" : 1
55+ }
56+ with open (output_path , "w" ) as f :
57+ yaml .dump (stats , f )
58+
4659
4760if __name__ == "__main__" :
4861 app ()
You can’t perform that action at this time.
0 commit comments