From 333654a342c85364524ac486cf98f9bd53bd2583 Mon Sep 17 00:00:00 2001 From: Steven Meisler Date: Mon, 23 Dec 2024 18:50:02 -0500 Subject: [PATCH 1/3] Update cubids.py --- cubids/cubids.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cubids/cubids.py b/cubids/cubids.py index 286ca0b3..ce66c3ad 100644 --- a/cubids/cubids.py +++ b/cubids/cubids.py @@ -410,7 +410,7 @@ def apply_tsv_changes(self, summary_tsv, files_tsv, new_prefix, raise_on_error=T if Path(from_file).exists(): # if using datalad, we want to git mv instead of mv if self.use_datalad: - move_ops.append(f"git mv {from_file} {to_file}") + move_ops.append(f"git mv {os.path.relpath(from_file,str(self.path))} {to_file}") else: move_ops.append(f"mv {from_file} {to_file}") From fc1fa4f894173f45827245dec6b4e2a0cd23e604 Mon Sep 17 00:00:00 2001 From: Steven Meisler Date: Mon, 23 Dec 2024 18:52:39 -0500 Subject: [PATCH 2/3] try to lint cubids.py --- cubids/cubids.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cubids/cubids.py b/cubids/cubids.py index ce66c3ad..d6d0244c 100644 --- a/cubids/cubids.py +++ b/cubids/cubids.py @@ -410,7 +410,8 @@ def apply_tsv_changes(self, summary_tsv, files_tsv, new_prefix, raise_on_error=T if Path(from_file).exists(): # if using datalad, we want to git mv instead of mv if self.use_datalad: - move_ops.append(f"git mv {os.path.relpath(from_file,str(self.path))} {to_file}") + move_ops.append(f"git mv {os.path.relpath(from_file, + str(self.path))} {to_file}") else: move_ops.append(f"mv {from_file} {to_file}") From 9e8de03c21977f929af60af15cb1986763178340 Mon Sep 17 00:00:00 2001 From: Steven Meisler Date: Mon, 23 Dec 2024 18:54:39 -0500 Subject: [PATCH 3/3] lint take 2... --- cubids/cubids.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cubids/cubids.py b/cubids/cubids.py index d6d0244c..e01e5e6e 100644 --- a/cubids/cubids.py +++ b/cubids/cubids.py @@ -410,8 +410,9 @@ def apply_tsv_changes(self, summary_tsv, files_tsv, new_prefix, raise_on_error=T if Path(from_file).exists(): # if using datalad, we want to git mv instead of mv if self.use_datalad: - move_ops.append(f"git mv {os.path.relpath(from_file, - str(self.path))} {to_file}") + move_ops.append( + f"git mv {os.path.relpath(from_file, str(self.path))} {to_file}" + ) else: move_ops.append(f"mv {from_file} {to_file}")