From 2f65e08afcb75ef516eaff53ab016334bb15215a Mon Sep 17 00:00:00 2001 From: Sebastian Kuzminsky Date: Sun, 12 Jan 2025 23:37:06 -0700 Subject: [PATCH] peristaltic-pump recipe: make `inputs` a Table, not an Array `[inputs]` is now a TOML Table (a key/value store). Each input is represented in the `[inputs]` table by a key/value pair. The key is a unique name (which also maps to the recipe file for building that input thing). The value is another table describing that input, that we'll represent with an Input struct. --- .../recipes/peristaltic-pump/peristaltic_pump.toml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modular-recipes/recipes/peristaltic-pump/peristaltic_pump.toml b/modular-recipes/recipes/peristaltic-pump/peristaltic_pump.toml index 53ed697..1405c95 100644 --- a/modular-recipes/recipes/peristaltic-pump/peristaltic_pump.toml +++ b/modular-recipes/recipes/peristaltic-pump/peristaltic_pump.toml @@ -1,22 +1,22 @@ -[[inputs]] +[inputs] pump_housing_front_with_stepper = {version = 0.1, quantity=1} bearing_roller = {version=0.1, quantity=1} pump_housing_rear_with_stepper = {version=0.1, quantity=1} tube_support = {version=0.1, quantity=1} -[[inputs.silicone_tubing]] +[inputs.silicone_tubing] type = "silicone tubing, 6mm OD, 4mm ID" quantity = "1 meter" comment = "PVC tube isn't flexible enough. Adjust quantity to suit your application." -[[inputs.m4_25_bhcs]] +[inputs.m4_25_bhcs] name = "m4_25_bhcs" type = "M4x25 BHCS" quantity = 4 comment = """BHCS is preferred over SHCS so the screw heads sit recessed below the surface of the pump body.""" -[[inputs.m4_nuts]] +[inputs.m4_nuts] type = "M4 nuts" quantity = 4