Skip to content

Commit

Permalink
Merge pull request #156 from UCL/155-colours-loading
Browse files Browse the repository at this point in the history
Add logging message when file not found
  • Loading branch information
tdowrick committed Oct 8, 2020
2 parents 08b52bd + d47fe78 commit 41034dd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sksurgeryvtk/models/vtk_surface_model_directory_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@ def get_models(self, directory_name):
if filename in self.colours:
model_colour = self.colours[filename]
else:
LOGGER.info(
"Filename %s not found in colours.txt", filename)
model_colour = self.colours[str(counter)]
model.set_colour(model_colour)

Expand Down

0 comments on commit 41034dd

Please sign in to comment.