Skip to content

Commit

Permalink
fixes related to cube.download refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
hasan7n committed Feb 29, 2024
1 parent 23301fd commit b04ee0c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions cli/medperf/commands/aggregator/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ def prepare_cube(self):
def __get_cube(self, uid: int, name: str) -> Cube:
self.ui.text = f"Retrieving {name} cube"
cube = Cube.get(uid)
cube.download_run_files()
self.ui.print(f"> {name} cube download complete")
return cube

Expand Down
1 change: 1 addition & 0 deletions cli/medperf/commands/training/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ def prepare_cube(self):
def __get_cube(self, uid: int, name: str) -> Cube:
self.ui.text = f"Retrieving {name} cube"
cube = Cube.get(uid)
cube.download_run_files()
self.ui.print(f"> {name} cube download complete")
return cube

Expand Down
4 changes: 3 additions & 1 deletion cli/medperf/commands/training/submit.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ def __init__(self, training_exp_info: dict):

def get_mlcube(self):
mlcube_id = self.training_exp.fl_mlcube
Cube.get(mlcube_id)
cube = Cube.get(mlcube_id)
# TODO: do we want to download run files?
cube.download_run_files()

def submit(self):
updated_body = self.training_exp.upload()
Expand Down

0 comments on commit b04ee0c

Please sign in to comment.