File tree Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 1
1
"""
2
2
Calibrate an IMU-camera system using a calibration target
3
3
"""
4
+
4
5
def call_calibrate (args ):
5
6
import spectacularAI
6
7
from spectacularAI .calibration import convert_args , run
7
- run (convert_args (args ))
8
+ output = run (convert_args (args ))
9
+ if output :
10
+ from .report import report
11
+ report (args , output )
8
12
9
13
def define_subparser (subparsers ):
10
14
sub = subparsers .add_parser ('calibrate' , help = __doc__ .strip ())
11
15
sub .set_defaults (func = call_calibrate )
12
- from spectacularAI .calibration import define_args
13
- return define_args (sub )
16
+ from spectacularAI .calibration import define_args as define_args_calibration
17
+ from .report import define_args as define_args_report
18
+ define_args_calibration (sub )
19
+ define_args_report (sub )
Original file line number Diff line number Diff line change 4
4
from .record .record import define_subparser as record_define_subparser
5
5
from .convert .convert import define_subparser as convert_define_subparser
6
6
from .smooth import define_subparser as smooth_define_subparser
7
- from .calibrate import define_subparser as calibrate_define_subparser
7
+ from .calibrate . calibrate import define_subparser as calibrate_define_subparser
8
8
9
9
def parse_args ():
10
10
parser = argparse .ArgumentParser (description = 'Spectacular AI command line tool' )
You can’t perform that action at this time.
0 commit comments