VIDA-NYU / tile2net

Automated mapping of pedestrian networks from aerial imagery tiles
BSD 3-Clause "New" or "Revised" License
146 stars 22 forks source link

allow dump_percent to be passes to Raster.inference #64

Closed dhodcz2 closed 2 months ago

dhodcz2 commented 2 months ago

Previously --dump_percent was hardcoded to args. Now this:

        args = [
            "python",
            "-m",
            "tile2net",
            "inference",
            *args,
        ]
        sargs = set(args)
        if '--city_info' not in sargs:
            args.extend(['--city_info', str(info)])
        if '--dump_percent' not in sargs:
            args.extend(['--dump_percent', str(self.dump_percent)])
        if '--interactive' not in sargs:
            args.append('--interactive')