Skip to content

Commit

Permalink
Issue #73: Change 2 functions in datasets.py to static.
Browse files Browse the repository at this point in the history
  • Loading branch information
bongjinkoo committed May 4, 2022
1 parent 087c134 commit cae41fd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ioSPI/datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit cae41fd

Please sign in to comment.