Skip to content

Commit 46e6cb0

Browse files
authored
Remove projection parameter from other conversions
1 parent 37803e6 commit 46e6cb0

1 file changed

Lines changed: 1 addition & 11 deletions

File tree

crdesigner/ui/command_line.py

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def main(
9191
# Set projection if provided
9292
if projection is not None:
9393
general_config.proj_string_cr = projection
94-
94+
9595
# copied from commonroad-dataset-converter
9696
frame = inspect.currentframe()
9797
assert frame is not None
@@ -153,9 +153,6 @@ def odrcr(ctx: typer.Context):
153153
@cli.command()
154154
def lanelet2cr(
155155
ctx: typer.Context,
156-
proj: Annotated[
157-
Optional[str], typer.Option(..., help="Overwrite existing CommonRoad file")
158-
] = None,
159156
adjacencies: Annotated[
160157
bool,
161158
typer.Option(
@@ -173,8 +170,6 @@ def lanelet2cr(
173170
] = False,
174171
):
175172
config_lanelet2 = lanelet2_config
176-
if proj is not None:
177-
general_config.proj_string_cr = proj
178173
config_lanelet2.adjacencies = adjacencies
179174
config_lanelet2.left_driving = left_driving
180175
scenario = lanelet_to_commonroad(ctx.obj["input_file"], lanelet2_conf=config_lanelet2)
@@ -191,17 +186,12 @@ def lanelet2cr(
191186
@cli.command()
192187
def crlanelet2(
193188
ctx: typer.Context,
194-
proj: Annotated[
195-
Optional[str], typer.Option(..., help="Overwrite existing CommonRoad file")
196-
] = None,
197189
autoware: Annotated[bool, typer.Option(..., help="Overwrite existing CommonRoad file")] = False,
198190
local_coordinates: Annotated[
199191
bool, typer.Option(..., help="Overwrite existing CommonRoad file")
200192
] = False,
201193
):
202194
config = lanelet2_config
203-
if proj is not None:
204-
general_config.proj_string_cr = proj
205195
config.autoware = autoware
206196
config.use_local_coordinates = local_coordinates
207197
commonroad_to_lanelet(ctx.obj["input_file"], ctx.obj["output_file"], config=config)

0 commit comments

Comments
 (0)