from opensfm.actions import reconstruct_from_prior

from . import command


class Command(command.CommandBase):
    name = "reconstruct_from_prior"
    help = "Reconstruct from prior reconstruction"

    def run_impl(self, dataset, args):
        reconstruct_from_prior.run_dataset(dataset, args.input, args.output)

    def add_arguments_impl(self, parser):
        parser.add_argument("--input", help="file name of the prior reconstruction")
        parser.add_argument(
            "--output", help="file name where to store the reconstruction"
        )

from opensfm.actions import reconstruct_from_prior

from . import command


class Command(command.CommandBase):
    name = "reconstruct_from_prior"
    help = "Reconstruct from prior reconstruction"

    def run_impl(self, dataset, args):
        reconstruct_from_prior.run_dataset(dataset, args.input, args.output)

    def add_arguments_impl(self, parser):
        parser.add_argument("--input", help="file name of the prior reconstruction")
        parser.add_argument(
            "--output", help="file name where to store the reconstruction"
        )
