Skip to content

Commit c49c357

Browse files
authored
Merge pull request #228 from AllenNeuralDynamics:feat-add-extra-information-to-prompt
Add model information to prompts
2 parents 8b4a5aa + fd0cea8 commit c49c357

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/clabe/pickers/default_behavior.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,9 @@ def pick_rig(self, model: Type[TRig]) -> TRig:
234234
rig_path = available_rigs[0]
235235
rig = model_from_json_file(rig_path, model)
236236
else:
237-
rig_path = self.ui_helper.prompt_pick_from_list(available_rigs, prompt="Choose a rig:")
237+
rig_path = self.ui_helper.prompt_pick_from_list(
238+
available_rigs, prompt=f"Choose a rig for {model.__name__}:"
239+
)
238240
if rig_path is not None:
239241
rig = self._load_rig_from_path(Path(rig_path), model)
240242
assert rig_path is not None
@@ -336,7 +338,9 @@ def pick_task_logic(self, model: Type[TTaskLogic]) -> TTaskLogic:
336338
available_files = glob.glob(os.path.join(_path, "*.json"))
337339
if len(available_files) == 0:
338340
break
339-
path = self.ui_helper.prompt_pick_from_list(available_files, prompt="Choose a task logic:")
341+
path = self.ui_helper.prompt_pick_from_list(
342+
available_files, prompt=f"Choose a task logic for {model.__name__}:"
343+
)
340344
if not isinstance(path, str):
341345
raise ValueError("Invalid choice.")
342346
if not os.path.isfile(path):

0 commit comments

Comments
 (0)