Skip to content

Commit

Permalink
add name from model
Browse files Browse the repository at this point in the history
  • Loading branch information
36000 committed Dec 5, 2024
1 parent f30ccfe commit d09f3ca
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions AFQ/definitions/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ def name_from_path(path):
file_name = drop_extension(file_name) # remove extension
if "desc-" in file_name: # get desc if exists
return file_name.split("desc-")[-1].split("_")[0]
elif "model-" in file_name: # get model if exists
return file_name.split("model-")[-1].split("_")[0]
elif "_" in file_name:
return file_name.split("_")[-1] # get suffix if exists
else:
Expand Down

0 comments on commit d09f3ca

Please sign in to comment.