From 3500a1e588fb3618ec1393f094310f181709d4ee Mon Sep 17 00:00:00 2001 From: SoftFever Date: Mon, 7 Sep 2026 10:46:59 +0800 Subject: [PATCH] unify id generation scripts --- .github/pull_request_template.md | 2 +- docs/HLSD/filament_id.md | 86 +- scripts/assign_vendor_setting_ids.py | 258 ----- scripts/orca_extra_profile_check.py | 20 +- ...assign_filament_ids.py => orca_id_tool.py} | 1009 +++++++++++------ scripts/tests/test_filament_id.py | 696 ++++++++++-- scripts/tests/test_setting_id.py | 902 +++++++++++++++ scripts/update_bambu_filament_ids.py | 4 +- src/libslic3r/Preset.cpp | 2 +- src/libslic3r/Preset.hpp | 4 +- src/libslic3r/PresetBundle.cpp | 4 +- tests/libslic3r/test_preset_setting_id.cpp | 6 +- 12 files changed, 2230 insertions(+), 763 deletions(-) delete mode 100644 scripts/assign_vendor_setting_ids.py rename scripts/{assign_filament_ids.py => orca_id_tool.py} (54%) create mode 100644 scripts/tests/test_setting_id.py diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 8b82f51730..cf9799df19 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -20,7 +20,7 @@ > Please describe the tests that you have conducted to verify the changes made in this PR. --> -- [ ] New filament/material profiles: I wrote **no** `filament_id` key by hand — I ran `python scripts/assign_filament_ids.py` and `--update-snapshot` and committed both diffs (see `doc/developer-reference/filament_id.md`) +- [ ] New filament/material profiles: I wrote **no** `filament_id` key by hand — I ran `python scripts/orca_id_tool.py --generate` and `--update-snapshot` and committed both diffs (see [docs/HLSD/filament_id.md](docs/HLSD/filament_id.md))