When saving layouts using optimize.py, some modes typically return a single result (e.g., nearest or local). However, --output is set up to specify a directory with files prefixed with rank. This can lead to users expecting a single result to accidentally specify the saved directory with a suffix .yaml. This feature request suggests improving the API to make this behavior obvious or not possible. One approach is to use separate commands whether saving the best result (specify a file) or the top-N results (specify a directory).
Tweak API to make the usage clearer when there is one result or multiple results from optimization #1
Open
opened 2026年02月13日 02:57:46 +01:00 by UserCurt
·
0 comments
UserCurt
commented 2026年02月13日 02:57:46 +01:00
When saving layouts using `optimize.py`, some modes typically return a single result (e.g., `nearest` or `local`). However, `--output` is set up to specify a directory with files prefixed with rank. This can lead to users expecting a single result to accidentally specify the saved directory with a suffix `.yaml`. This feature request suggests improving the API to make this behavior obvious or not possible. One approach is to use separate commands whether saving the best result (specify a file) or the top-N results (specify a directory).
UserCurt
added the 2026年02月13日 02:57:46 +01:00
enhancement/feature
label
Sign in to join this conversation.
Labels
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Dependencies
No dependencies set.
Reference
UserCurt/brakey#1
Loading...
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?