Skip to content

Commit

Permalink
Fix author name checking, None exception and wrong path
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 Jan 3, 2025
1 parent d392b76 commit d2c42f4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def download_models(
"""Download models for a given input building yaml."""
# Construct model set

IGN_FUEL_MODEL_PATH = "~/.ignition/fuel/"
IGN_FUEL_MODEL_PATH = "~/.gz/fuel/"

model_set = set()
stringent_dict = {} # Dict to tighten download scope
Expand Down
4 changes: 2 additions & 2 deletions rmf_building_map_tools/pit_crew/pit_crew.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ def get_missing_models(model_names, model_path=None,
" is not by the requested author %s!"
% (model_name, author_name))
elif model_name in fuel_models and \
fuel_models[model_name] == author_name:
author_name in fuel_models[model_name]:
output['downloadable'].append((model_name_original,
fuel_models[model_name]))

Expand Down Expand Up @@ -680,8 +680,8 @@ def download_model_fuel_tools(model_name, author_name,
if sync_names:
sync_sdf(model_name=model_name.lower(), extract_path=extract_path)

export_path = os.path.expanduser(export_path)
if export_path is not None:
export_path = os.path.expanduser(export_path)
# Make directory if missing
if not os.path.isdir(export_path):
os.makedirs(export_path, exist_ok=True)
Expand Down

0 comments on commit d2c42f4

Please sign in to comment.