Commit Graph

8 Commits

Author SHA1 Message Date
SoftFever
c2e91cb86c validator: detect ambiguous (duplicate) filament subtypes per printer (#14459)
* validator: detect duplicate filament subtype per printer (opt-in)

A filament is matched from the AMS by (filament_id + printer compatibility);
if two compatible filament presets for one printer share a filament_id, the
match is ambiguous and the runtime silently picks whichever loads first.

Add PresetBundle::check_duplicate_filament_subtypes(), gated behind a new
has_errors(check_duplicate_filament_subtypes) parameter and the validator's
-f/--check_filament_subtypes flag (off by default). For each system printer it
groups its vendor's compatible filament presets by filament_id and errors on
any group of 2+, reporting each preset as a clickable file:// URI with a single
"how to fix" hint. CI runs it for BBL only (-v BBL -f) until the other vendors'
profiles are cleaned up.

* profiles: fix ambiguous BBL filament matches

Resolve the duplicate-filament-subtype errors flagged by the validator:
- align compatible_printers with Bambu Studio where Orca over-claimed a nozzle
  that already has a dedicated preset (Bambu PLA Basic/Matte/ABS @BBL H2DP;
  Bambu ASA/PETG HF @BBL H2DP 0.6 nozzle; Fiberon PETG-ESD @BBL X1)
- fix a copy-pasted printer name in Overture Matte PLA @BBL A1M 0.2 nozzle
- fix a wrong inherits in Panchroma PLA Silk @BBL X1C 0.2 nozzle (was inheriting
  Panchroma PLA @base, giving it filament_id GFPM001 instead of GFPM004)

Bump BBL profile version.

* Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-06-28 00:42:02 +08:00
Ian Bassi
16727644bb Reduce size by Json Fromatting (#13163)
Reduce the size of current and new JSONs by standardising them with 1 tab indentation instead of 4 spaces.
This effectively reduces the size by almost 20 MB.

| Current | New |
|---|---|
| 85.2 Mib | 67 Mib |

Used [JQ](https://jqlang.org/) `--tab` to automatically format every current JSON.

> [!NOTE]
> Some profiles had the arrays on the same line, but those created by Orca were in the standard format (each object below the previous one). In some cases, this increases the number of tabs due to the new lines, but the increase is negligible, and this way both the base profiles and those created by Orca maintain the same style.
2026-04-15 22:58:12 +08:00
qian.wang
3d482ce4a0 ENH:batch sync eng_plate_temp with textured_plate_temp
Change-Id: Ia504053d12f357f443dddfb140c561c83308dac3
jira: None
(cherry picked from commit 57239bb8f3ea6fe9310ecf98b4af8f76b3c8ba05)
2025-10-28 15:30:00 +08:00
weizhen.xie
247a811900 Fix: Modify the string delimiter of parameter “volumetric_speed_coefficients”: change “;” to “ ”
Jira: none

Change-Id: Iabe29c14b5d4dadc97d3ea72c4be4104a0e48720
(cherry picked from commit 3a3ed5816b7a70669561d0a33ca6fb9761ab40d2)
2025-10-05 00:00:31 +08:00
weizhen.xie
757d1f4cb1 ENH: Modify filament jsons to support parameter “filament_adaptive_volumetric_speed”
Jira: None
Change-Id: Iddd9fdf1ab39ad1e72da4040b7bb7dd0d1375652
(cherry picked from commit 900d0b5f6e6738eae12e2418dbb6ea1051e131c0)
2025-10-04 23:57:54 +08:00
weizhen.xie
1ce594f4df FIX:Fix the length of parameter “volumetric_speed_coefficients”
Jira:None

Change-Id: I227f17e404ad96d8c4246a93e0fd1b0a5e61f664
(cherry picked from commit 3e4fa9748293a8e6cb1ad0fe957290e649aea13b)
2025-10-03 23:08:56 +08:00
qian.wang
6d6969a315 ENH:[filament/process]Synchronize parameters of O1E with those of O1D
Change-Id: I194543fb38e975aa56592b8dda2e29bde01d949e
(cherry picked from commit c03812c36c47ca2edde3280b2fda4072c65deac6)
2025-10-02 17:59:51 +08:00
xun.zhang
1fd88842d9 ENH: add code for bambu lab h2d pro
jira:STUDIO-12107

Signed-off-by: xun.zhang <xun.zhang@bambulab.com>
Change-Id: I4a8132515ad947f68212d8002c0f365badf8ca71
(cherry picked from commit 76f50132fcae7ca91c689ceb484006db1e4f3dbd)
2025-10-02 17:07:20 +08:00