← All procedures

algebra.exprKnobs

This function gives the knobs that a duration reads, by the names of the machine for them.

CLI
Package
@procedures/algebra · README
Path
["algebra","exprKnobs"]
CLI
mark algebra exprKnobs --e <object | object | object | object>
As data
{"$proc":["algebra","exprKnobs"],"input":{}}

Use it

In TypeScript

import { Client, LocalTransport, PROCEDURE_REGISTRY } from "@procedures/client";
import "@procedures/algebra/register"; // registers its procedures

const client = new Client(new LocalTransport({ registry: PROCEDURE_REGISTRY }));
const result = await client.exec(["algebra","exprKnobs"], { e: "<e>" });
console.log(JSON.stringify(result));

From the command line

$ mark algebra exprKnobs --e <object | object | object | object>

As data, in a program

{ "$proc": ["algebra", "exprKnobs"], "input": { "e": "<e>" } }

Input

FieldTypeRequiredDefaultDescription
eobject | object | object | objectyes

Output

The schema does not list fields (string[]).

JSON Schemas
{
  "input": {
    "type": "object",
    "properties": {
      "e": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "const": {
                "type": "number"
              },
              "unit": {
                "type": "string"
              }
            },
            "required": [
              "const",
              "unit"
            ],
            "additionalProperties": {}
          },
          {
            "type": "object",
            "properties": {
              "expr": {
                "type": "string"
              },
              "unit": {
                "type": "string"
              }
            },
            "required": [
              "expr",
              "unit"
            ],
            "additionalProperties": {}
          },
          {
            "type": "object",
            "properties": {
              "knob": {
                "type": "string"
              },
              "unit": {
                "type": "string"
              }
            },
            "required": [
              "knob",
              "unit"
            ],
            "additionalProperties": {}
          },
          {
            "type": "object",
            "properties": {
              "model": {
                "type": "string"
              },
              "knobs": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "unit": {
                "type": "string"
              }
            },
            "required": [
              "model",
              "knobs",
              "unit"
            ],
            "additionalProperties": {}
          }
        ]
      }
    },
    "required": [
      "e"
    ],
    "additionalProperties": false
  },
  "output": {
    "type": "array",
    "items": {
      "type": "string"
    }
  }
}