1
0
Fork
You've already forked brakey
0

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

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).

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).
Sign in to join this conversation.
No Branch/Tag specified
main
No results found.
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
Reference in a new issue
UserCurt/brakey
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?