What types are supported in nTop Automate?

Question:

What file types are supported in nTop Automate?

Applies to:

  • nTop Automate

Answer:

Supported types for Input

Variable Type Comment Example
Boolean Each value should be true or false -- not enclosed in quotes.
{
  "name": "Rotate Y to Z",
  "type": "bool",
  "value": true,
}
Scalar Each value can be an integer or a float, and units are optional.
{
  "name": "Scalar_0",
  "type": "scalar",
  "value": 5,
  "units": "mm"
}
Integer Each value must be an integer without units.
{
  "name": "Number of points",
  "type": "integer",
  "value": 6
}
Text Each value should be a string.
{
  "name": "Text_0",
  "type": "text",
  "value": "d:\\auto"
}
File Path Each value should be a valid file path as a string. Note that paths require double slashes due to JSON string rules.
{
  "name": "Path",
  "type": "file_path",
  "value": "C:\\Outputs\\geometry.stl"
}
Point Each value should be an array of integers or floats.
{
  "name": "Center",
  "type": "point",
  "value": [1, 1, 1],
  "units": "mm"
}
Vector Each value should be an array of integers or floats. Units are optional (more precisely, some vectors require units, and if not provided, the notebook will not run)
{
  "name": "Scale",
  "type": "vector",
  "value": [1, 1, 1],
  "units": "mm"
}
Enum Enums refer to any input types selected from a dropdown menu in a block input in nTop. Each value should be an array of integers representing the enum's desired id. You can find the id of your enum in the Internal Documentation.
{
  "name": "Lattice Type",
  "type": "enum",
  "value": 0
}

More on this topic:

Keywords:

 file question type ntopcl input supported 
Was this article helpful?

Comments

1 comment
  • Hello Ajay,

    I have a question regarding the inputs. Can we define input for "Scalar Fields Variable"?
    I want to create a Gyroid Field and my input for changing the unit cell is like (x*0.5mm, y*0.5mm, and z*0.5mm; with unit mm^2), that I want to change the constant coefficients (0.5,0.5,0.5 to 1,1,1) but they are not included in the above input that you mentioned. I did not try it in my python yet but before that, I wanted to be sure that I am in the correct steps. I can not attach a picture to show you my workflow.

    Thanks.

    0

Please sign in to leave a comment.