Skip to content

Commit 84293da

Browse files
joel-mbbernatx
authored andcommitted
fixed bug checking safe blueprints
1 parent 67bcdd4 commit 84293da

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Co-Simulation/Sumo/spawn_npc_sumo.py

+7-7
Original file line numberDiff line numberDiff line change
@@ -143,13 +143,13 @@ def main(args):
143143
blueprints = [
144144
x for x in blueprints if vtypes[x]['vClass'] not in ('motorcycle', 'bicycle')
145145
]
146-
blueprints = [x for x in blueprints if not x.id.endswith('microlino')]
147-
blueprints = [x for x in blueprints if not x.id.endswith('carlacola')]
148-
blueprints = [x for x in blueprints if not x.id.endswith('cybertruck')]
149-
blueprints = [x for x in blueprints if not x.id.endswith('t2')]
150-
blueprints = [x for x in blueprints if not x.id.endswith('sprinter')]
151-
blueprints = [x for x in blueprints if not x.id.endswith('firetruck')]
152-
blueprints = [x for x in blueprints if not x.id.endswith('ambulance')]
146+
blueprints = [x for x in blueprints if not x.endswith('microlino')]
147+
blueprints = [x for x in blueprints if not x.endswith('carlacola')]
148+
blueprints = [x for x in blueprints if not x.endswith('cybertruck')]
149+
blueprints = [x for x in blueprints if not x.endswith('t2')]
150+
blueprints = [x for x in blueprints if not x.endswith('sprinter')]
151+
blueprints = [x for x in blueprints if not x.endswith('firetruck')]
152+
blueprints = [x for x in blueprints if not x.endswith('ambulance')]
153153

154154
if not blueprints:
155155
raise RuntimeError('No blueprints available due to user restrictions.')

0 commit comments

Comments
 (0)