core pack¶
25 nodes, in noodlelab and above.
Convert¶
Float To Integer¶
core.float_to_int
Turn a number into an integer. Inserted when a float is linked into an integer input.
Inputs
Name |
Type |
Description |
|---|---|---|
|
|
|
|
|
Default |
Outputs
Name |
Type |
Description |
|---|---|---|
|
|
Path To Text¶
core.path_to_text
A path as text. Applied automatically when a path is linked into a text input.
Inputs
Name |
Type |
Description |
|---|---|---|
|
|
Outputs
Name |
Type |
Description |
|---|---|---|
|
|
Input¶
Boolean¶
core.boolean
A constant true/false switch.
Inputs
Name |
Type |
Description |
|---|---|---|
|
|
Default |
Outputs
Name |
Type |
Description |
|---|---|---|
|
|
File Path¶
core.file_path
A path to a file or folder, relative to the workspace. The node it is linked into checks that the file exists and previews it.
Inputs
Name |
Type |
Description |
|---|---|---|
|
|
Default |
Outputs
Name |
Type |
Description |
|---|---|---|
|
|
Integer¶
core.integer
A constant integer.
Inputs
Name |
Type |
Description |
|---|---|---|
|
|
Default |
Outputs
Name |
Type |
Description |
|---|---|---|
|
|
Number¶
core.number
A constant floating point value.
Inputs
Name |
Type |
Description |
|---|---|---|
|
|
Default |
Outputs
Name |
Type |
Description |
|---|---|---|
|
|
Read Text File¶
core.read_text_file
Read a UTF-8 text file, from the workspace or remote storage. It is read again when the file changes.
Inputs
Name |
Type |
Description |
|---|---|---|
|
|
Outputs
Name |
Type |
Description |
|---|---|---|
|
|
Text¶
core.text
A constant piece of text.
Inputs
Name |
Type |
Description |
|---|---|---|
|
|
Default |
Outputs
Name |
Type |
Description |
|---|---|---|
|
|
Internal¶
Iteration¶
core.repeat_iteration
The number of the pass, from 0.
Outputs
Name |
Type |
Description |
|---|---|---|
|
|
Optimize Zone¶
core.optimize
Find the parameter values that make the zone’s objective smallest, e.g. a sum of squared residuals to calibrate a model against data. The body runs once per point the optimiser (SciPy) tries.
Inputs
Name |
Type |
Description |
|---|---|---|
|
|
One per line: name = low .. high [unit], optionally ‘, start x’ Default |
|
|
Default |
|
|
When to stop improving Default |
|
|
Default |
Outputs
Name |
Type |
Description |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Parameters¶
core.sweep_row
The parameter values of the current pass of a sweep or optimize zone.
Outputs
Name |
Type |
Description |
|---|---|---|
|
|
Repeat State¶
core.repeat_state
A zone’s state item: its first value on the first pass, then what the previous pass produced.
Inputs
Name |
Type |
Description |
|---|---|---|
|
|
Outputs
Name |
Type |
Description |
|---|---|---|
|
|
Repeat Zone¶
core.repeat
Run the nodes of the zone again and again, each pass starting from the
state the previous one produced. iterations is the number of passes
made, converged whether the Until condition came true (always true in
count mode), and history the collected state of every pass.
Inputs
Name |
Type |
Description |
|---|---|---|
|
|
How many passes (mode count) Default |
|
|
count: a fixed number of passes; until: until the Until input is true Default |
|
|
Mode until: stop after this many passes Default |
Outputs
Name |
Type |
Description |
|---|---|---|
|
|
|
|
|
|
|
|
Result¶
core.sweep_result
A result a sweep or optimize zone collects on each pass.
Outputs
Name |
Type |
Description |
|---|---|---|
|
|
Sweep Zone¶
core.sweep
Run the nodes of the zone once per row of the design, each pass getting that row’s values, and collect what reaches Sweep Output into a table: the design with a column per result.
Inputs
Name |
Type |
Description |
|---|---|---|
|
|
A table of parameter sets, e.g. from Grid Design |
Outputs
Name |
Type |
Description |
|---|---|---|
|
|
|
|
|
Math¶
Compare¶
core.compare
Compare two numbers.
Inputs
Name |
Type |
Description |
|---|---|---|
|
|
Default |
|
|
Default |
|
|
Default |
|
|
Default |
Outputs
Name |
Type |
Description |
|---|---|---|
|
|
Map Range¶
core.map_range
Linearly remap a value from one range to another.
Inputs
Name |
Type |
Description |
|---|---|---|
|
|
Default |
|
|
Default |
|
|
Default |
|
|
Default |
|
|
Default |
|
|
Default |
Outputs
Name |
Type |
Description |
|---|---|---|
|
|
Math¶
core.math
Scalar math. Unary operations ignore B.
Inputs
Name |
Type |
Description |
|---|---|---|
|
|
Default |
|
|
Default |
|
|
Default |
Outputs
Name |
Type |
Description |
|---|---|---|
|
|
Value To Class¶
core.value_class
The label of the class a number falls in, e.g. a vibration velocity into ISO zones A–D or a concentration into “below / above the limit”. A value equal to a break goes into the upper class.
Inputs
Name |
Type |
Description |
|---|---|---|
|
|
Default |
|
|
Ascending class boundaries: 1.4, 2.8, 4.5 Default |
|
|
One more label than breaks Default |
Outputs
Name |
Type |
Description |
|---|---|---|
|
|
Output¶
Save Text File¶
core.save_text_file
Write text into this run’s output folder.
Inputs
Name |
Type |
Description |
|---|---|---|
|
|
|
|
|
Default |
Outputs
Name |
Type |
Description |
|---|---|---|
|
|
Text¶
Format Text¶
core.format_text
Python str.format with a single value, e.g. “{value:.3f} mm”. Fields
are names only: {value.attr} and {value[0]} are refused.
Inputs
Name |
Type |
Description |
|---|---|---|
|
|
Default |
|
|
Optional. |
Outputs
Name |
Type |
Description |
|---|---|---|
|
|
Format Values¶
core.format_values
Text with up to eight computed values, for report paragraphs: “The slope is {a:.3f} ± {b:.2g} (R² = {c:.4f})”. Quantities take Pint’s format codes too: {a:.2f~P} gives “9.81 m/s²”. Fields are names only: {a.attr} and {a[0]} are refused.
Inputs
Name |
Type |
Description |
|---|---|---|
|
|
Python format string with {a} … {h}, e.g. {a:.3f} Default |
|
|
Optional. |
|
|
Optional. |
|
|
Optional. |
|
|
Optional. |
|
|
Optional. |
|
|
Optional. |
|
|
Optional. |
|
|
Optional. |
Outputs
Name |
Type |
Description |
|---|---|---|
|
|
Join Text¶
core.join_text
Join two pieces of text.
Inputs
Name |
Type |
Description |
|---|---|---|
|
|
Default |
|
|
Default |
|
|
Default |
Outputs
Name |
Type |
Description |
|---|---|---|
|
|
Utility¶
Describe Data¶
core.describe_data
Say what a value is and where it came from: a title, a description, its sources (files, instruments, URLs), licence, citations and quality notes. The value passes through unchanged; what you write travels with it and everything computed from it, into the inspector and to Add Data Sources in reports.
Inputs
Name |
Type |
Description |
|---|---|---|
|
|
|
|
|
Default |
|
|
Default |
|
|
One per line Default |
|
|
Default |
|
|
One per line Default |
|
|
Quality notes, one per line Default |
Outputs
Name |
Type |
Description |
|---|---|---|
|
|
Viewer¶
core.viewer
Pass a value through unchanged. Select the node to inspect it in full.
Inputs
Name |
Type |
Description |
|---|---|---|
|
|
Optional. |
Outputs
Name |
Type |
Description |
|---|---|---|
|
|