From cae41fdc32d969f9e76f29b3818cd2edd362d0c9 Mon Sep 17 00:00:00 2001 From: Bongjin Koo Date: Tue, 3 May 2022 18:20:36 -0700 Subject: [PATCH] Issue #73: Change 2 functions in datasets.py to static. --- ioSPI/datasets.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ioSPI/datasets.py b/ioSPI/datasets.py index af662b4..fa82093 100644 --- a/ioSPI/datasets.py +++ b/ioSPI/datasets.py @@ -45,7 +45,8 @@ def ls(self): print(f"Listing files from OSF project: {self.project_id}...") os.system("osf ls") - def download(self, remote_path, local_path): + @staticmethod + def download(remote_path, local_path): """Download file from osf and save it locally. Parameters @@ -63,7 +64,8 @@ def download(self, remote_path, local_path): os.system(f"osf fetch {remote_path} {local_path}") print("Done!") - def upload(self, remote_path, local_path): + @staticmethod + def upload(remote_path, local_path): """Upload file to osf. Notes