Skip to content

Commit

Permalink
hotfix: better ui for mlcube retrieval while preparation (#568)
Browse files Browse the repository at this point in the history
  • Loading branch information
hasan7n committed Mar 28, 2024
1 parent a9fb50d commit c944f89
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cli/medperf/commands/dataset/prepare.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ def run(cls, dataset_id: int, approve_sending_reports: bool = False):
preparation = cls(dataset_id, approve_sending_reports)
preparation.get_dataset()
preparation.validate()
preparation.get_prep_cube()
with preparation.ui.interactive():
preparation.get_prep_cube()
preparation.setup_parameters()

# TODO: make these more readable
Expand Down Expand Up @@ -135,7 +136,10 @@ def validate(self):
raise InvalidArgumentError("This dataset is in operation mode")

def get_prep_cube(self):
self.ui.text = "Retrieving data preparation cube"
self.ui.text = (
"Retrieving and setting up data preparation MLCube. "
"This may take some time."
)
self.cube = Cube.get(self.dataset.data_preparation_mlcube)
self.cube.download_run_files()
self.ui.print("> Preparation cube download complete")
Expand Down

0 comments on commit c944f89

Please sign in to comment.