Skip to content

Commit

Permalink
getting the file name by os.path.basename (openMetadataInitiative#31)
Browse files Browse the repository at this point in the history
* getting the name from IRI instead of path

* using basename

* deleting path_iri variable
  • Loading branch information
Peyman-N authored Apr 22, 2024
1 parent e71925c commit 7532b1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bids2openminds/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,8 @@ def create_file(layout_df, BIDS_path):
data_types = None
extension = file["extension"]
path = file["path"]
name = path[path.rfind("/") + 1 :]
iri=IRI(pathlib.Path(path).as_uri())
name=os.path.basename(path)
hashes = file_hash(path)
storage_size = file_storage_size(path)
if pd.isna(file["subject"]):
Expand Down

0 comments on commit 7532b1b

Please sign in to comment.