Skip to content

Commit

Permalink
Revert to just ignore namespace
Browse files Browse the repository at this point in the history
Signed-off-by: Luca Della Vedova <[email protected]>
  • Loading branch information
luca-della-vedova committed Dec 31, 2024
1 parent cb4378e commit 31f8fec
Showing 1 changed file with 9 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,23 +108,17 @@ def download_models(
actors = get_crowdsim_models(input_yaml)
model_set.update(actors)

def add_model(full_model_name):
if "/" in full_model_name:
model_name = "".join(full_model_name.split("/")[1:])
author_name = full_model_name.split("/")[0]

model_set.add((model_name, author_name))
stringent_dict[model_name.lower()] = \
author_name.lower()
else:
model_set.add(full_model_name)

for _, level in building.levels.items():
for model in level.models:
add_model(model.model_name)
for vertex in level.vertices:
if 'spawn_robot_type' in vertex.params:
add_model(vertex.params['spawn_robot_type'].value)
if "/" in model.model_name:
model_name = "".join(model.model_name.split("/")[1:])
author_name = model.model_name.split("/")[0]

model_set.add((model_name, author_name))
stringent_dict[model_name.lower()] = \
author_name.lower()
else:
model_set.add(model.model_name)

if fuel_tools:
missing_models = pit_crew.get_missing_models(
Expand Down

0 comments on commit 31f8fec

Please sign in to comment.