Compute distance to ports locally using config
ctx (click.ctx) – click ctx object
config (reVX.config.dist_to_ports.DistToPortsConfig) – Distance to ports config object.