User Tools

Site Tools


pyflow:functions

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

pyflow:functions [2020/01/19 10:03] (current)
admin created
Line 1: Line 1:
 +=======Vector=======
 +=====between======
 +  between vector a and b
 +setDataG; out
 +setDataG; out
 +setDataG; a
 +setDataG; b
 +setDataG; m
 +setDataG; out
 +===INPUT PINS===
 +**__a__** ​
 +[[VectorPin]], ​
 +**__b__** ​
 +[[VectorPin]], ​
 +**__m__** ​
 +[[Integer]], ​
 +===OUTPUT PINS===
 +**__out__** ​
 +[[VectorPin]], ​
 +=====betweenList======
 +  between list a and b
 +setDataG; m
 +===INPUT PINS===
 +**__a__** ​
 +[[AnyPin]], ​
 +**__b__** ​
 +[[AnyPin]], ​
 +**__m__** ​
 +[[Integer]], ​
 +===OUTPUT PINS===
 +**__out__** ​
 +[[AnyPin]], ​
 +=====move======
 +  add vector v to a list of vectors a
 +setDataG; out
 +setDataG; out
 +setDataG; v
 +[]
 +setDataG; out
 +===INPUT PINS===
 +**__a__** ​
 +[[AnyPin]], ​
 +**__v__** ​
 +[[VectorPin]], ​
 +===OUTPUT PINS===
 +**__out__** ​
 +[[VectorPin]], ​
 +=====vecAdd======
 +  adds vector a and b
 +setDataG; out
 +setDataG; out
 +setDataG; a
 +setDataG; b
 +setDataG; out
 +===INPUT PINS===
 +**__a__** ​
 +[[VectorPin]], ​
 +**__b__** ​
 +[[VectorPin]], ​
 +===OUTPUT PINS===
 +**__out__** ​
 +[[VectorPin]], ​
 +=====vecCreate======
 +  vector by coordinates X, Y, Z.
 +setDataG; out
 +setDataG; out
 +setDataG; X
 +setDataG; Y
 +setDataG; Z
 +create vector; Vector (0.0, 0.0, 0.0)
 +setDataG; out
 +===INPUT PINS===
 +**__X__** ​
 +[[Float]], ​
 +**__Y__** ​
 +[[Float]], ​
 +**__Z__** ​
 +[[Float]], ​
 +===OUTPUT PINS===
 +**__out__** ​
 +[[VectorPin]], ​
 +=====vecDotProduct======
 +  Dot product
 +===INPUT PINS===
 +**__a__** ​
 +[[AnyPin]], ​
 +**__b__** ​
 +[[AnyPin]], ​
 +===OUTPUT PINS===
 +**__out__** ​
 +[[FloatPin]], ​
 +=====vecSubstract======
 +  substracts vector a and b
 +setDataG; out
 +setDataG; out
 +setDataG; a
 +setDataG; b
 +setDataG; out
 +===INPUT PINS===
 +**__a__** ​
 +[[VectorPin]], ​
 +**__b__** ​
 +[[VectorPin]], ​
 +===OUTPUT PINS===
 +**__out__** ​
 +[[VectorPin]], ​
 +=====vecX======
 +  vector coordinate x
 +setDataG; Vector
 +===INPUT PINS===
 +**__Vector__** ​
 +[[VectorPin]], ​
 +===OUTPUT PINS===
 +**__out__** ​
 +[[FloatPin]], ​
 +=====vecY======
 +  vector coordinate y
 +setDataG; Vector
 +===INPUT PINS===
 +**__Vector__** ​
 +[[VectorPin]], ​
 +===OUTPUT PINS===
 +**__out__** ​
 +[[FloatPin]], ​
 +=====vecZ======
 +  vector coordinate z
 +setDataG; Vector
 +===INPUT PINS===
 +**__Vector__** ​
 +[[VectorPin]], ​
 +===OUTPUT PINS===
 +**__out__** ​
 +[[FloatPin]], ​
 +=====workspace======
 +setDataG; name
 +workspace called
 +===INPUT PINS===
 +**__name__** ​
 +[[String]], ​
 +**__temp__** ​
 +[[BoolPin]], ​
 +===OUTPUT PINS===
 +**__out__** ​
 +[[StringPin]], ​
 +=======Rotation=======
 +=====rotCreate======
 +  create Rotation from axis and angle
 +setDataG; Axis
 +===INPUT PINS===
 +**__Axis__** ​
 +[[VectorPin]], ​
 +**__Angle__** ​
 +[[FloatPin]], ​
 +===OUTPUT PINS===
 +**__out__** ​
 +[[RotationPin]], ​
 +=====rotCreateBy2Vectors======
 +  create Rotation between vectors From and To
 +setDataG; From
 +setDataG; To
 +===INPUT PINS===
 +**__From__** ​
 +[[VectorPin]], ​
 +**__To__** ​
 +[[VectorPin]], ​
 +===OUTPUT PINS===
 +**__out__** ​
 +[[RotationPin]], ​
 +=====rotCreateBy3Vectors======
 +  three vectors that define rotated axes directions + an optional 3-characher string of capital letters '​X',​ '​Y',​ '​Z'​ that sets the order of importance of the axes (e.g., '​ZXY'​ means z direction is followed strictly, x is used but corrected if necessary, y is ignored) ​
 +setDataG; X
 +setDataG; Y
 +setDataG; Z
 +===INPUT PINS===
 +**__X__** ​
 +[[VectorPin]], ​
 +**__Y__** ​
 +[[VectorPin]], ​
 +**__Z__** ​
 +[[VectorPin]], ​
 +**__mode__** ​
 +[[StringPin]], ​
 +===OUTPUT PINS===
 +**__out__** ​
 +[[RotationPin]], ​
 +=====rotCreateEuler======
 +  create Rotation from Euler angles
 +===INPUT PINS===
 +**__Yaw__** ​
 +[[FloatPin]], ​
 +**__Pitch__** ​
 +[[FloatPin]], ​
 +**__Roll__** ​
 +[[FloatPin]], ​
 +===OUTPUT PINS===
 +**__out__** ​
 +[[RotationPin]], ​
 +=====rotMultiply======
 +  concatenate Rotation a and b
 +===INPUT PINS===
 +**__a__** ​
 +[[RotationPin]], ​
 +**__b__** ​
 +[[RotationPin]], ​
 +===OUTPUT PINS===
 +**__out__** ​
 +[[RotationPin]], ​
 +=======Placement=======
 +=====pmCreate======
 +  create Placement from Base and Rotation ​
 +setDataG; base
 +===INPUT PINS===
 +**__base__** ​
 +[[VectorPin]], ​
 +**__rotation__** ​
 +[[RotationPin]], ​
 +===OUTPUT PINS===
 +**__out__** ​
 +[[PlacementPin]], ​
 +=====pmMultiply======
 +  multiply Placements a, b
 +===INPUT PINS===
 +**__a__** ​
 +[[PlacementPin]], ​
 +**__b__** ​
 +[[PlacementPin]], ​
 +===OUTPUT PINS===
 +**__out__** ​
 +[[PlacementPin]], ​
 +=======Numpy=======
 +=====add======
 +  ​
 +  add two float (lists)
 +  ​
 +setDataG; x
 +setDataG; y
 +===INPUT PINS===
 +**__x__** ​
 +[[Float]], ​
 +**__y__** ​
 +[[Float]], ​
 +===OUTPUT PINS===
 +**__out__** ​
 +[[FloatPin]], ​
 +=====arctan======
 +  arctan(x)
 +===INPUT PINS===
 +**__data__** ​
 +[[FloatPin]], ​
 +===OUTPUT PINS===
 +**__out__** ​
 +[[FloatPin]], ​
 +=====arctan2======
 +  arctan2(y,​x)
 +===INPUT PINS===
 +**__y__** ​
 +[[FloatPin]], ​
 +**__x__** ​
 +[[FloatPin]], ​
 +===OUTPUT PINS===
 +**__out__** ​
 +[[FloatPin]], ​
 +=====cos======
 +  a*cos(b*x+c)
 +===INPUT PINS===
 +**__data__** ​
 +[[FloatPin]], ​
 +**__a__** ​
 +[[FloatPin]], ​
 +**__b__** ​
 +[[FloatPin]], ​
 +**__c__** ​
 +[[FloatPin]], ​
 +===OUTPUT PINS===
 +**__out__** ​
 +[[FloatPin]], ​
 +=====deg2rad======
 +  ​
 +  degree to radians
 +  ​
 +===INPUT PINS===
 +**__degree__** ​
 +[[FloatPin]], ​
 +===OUTPUT PINS===
 +**__out__** ​
 +[[FloatPin]], ​
 +=====fliplr======
 +  ​
 +  fliplr(data) ​   Flip array in the left/right direction.
 +  ​
 +===INPUT PINS===
 +**__data__** ​
 +[[FloatPin]], ​
 +===OUTPUT PINS===
 +**__out__** ​
 +[[FloatPin]], ​
 +=====flipud======
 +  ​
 +  flipud(data) ​   Flip array in the up/​down ​ direction.
 +  ​
 +===INPUT PINS===
 +**__data__** ​
 +[[FloatPin]], ​
 +===OUTPUT PINS===
 +**__out__** ​
 +[[FloatPin]], ​
 +=====interp_cubic======
 +  ​
 +  Interpolate a 1-D function.
 +  xp and yp are arrays of values used to approximate some function ​
 +  f: y = f(x). 
 +  This class returns a function whose call method ​
 +  uses interpolation to find the value of new points x.
 +  ​
 +===INPUT PINS===
 +**__x__** ​
 +[[FloatPin]], ​
 +**__xp__** ​
 +[[FloatPin]], ​
 +**__yp__** ​
 +[[FloatPin]], ​
 +===OUTPUT PINS===
 +**__out__** ​
 +[[FloatPin]], ​
 +=====interp_lin======
 +  ​
 +  One-dimensional linear interpolation.
 +  Returns the one-dimensional piecewise linear interpolant ​
 +  to a function with given discrete data points (xp, fp), 
 +  evaluated at x.
 +  ​
 +===INPUT PINS===
 +**__x__** ​
 +[[FloatPin]], ​
 +**__xp__** ​
 +[[FloatPin]], ​
 +**__yp__** ​
 +[[FloatPin]], ​
 +===OUTPUT PINS===
 +**__out__** ​
 +[[FloatPin]], ​
 +=====linSpace======
 +  create a linear Space
 +===INPUT PINS===
 +**__start__** ​
 +[[FloatPin]], ​
 +**__stop__** ​
 +[[FloatPin]], ​
 +**__num__** ​
 +[[IntPin]], ​
 +===OUTPUT PINS===
 +**__out__** ​
 +[[FloatPin]], ​
 +=====linearTrafo======
 +  ​
 +  a*x + b
 +  ​
 +===INPUT PINS===
 +**__data__** ​
 +[[FloatPin]], ​
 +**__a__** ​
 +[[FloatPin]], ​
 +**__b__** ​
 +[[FloatPin]], ​
 +===OUTPUT PINS===
 +**__out__** ​
 +[[FloatPin]], ​
 +=====max======
 +  ​
 +  maximum value in list x
 +  ​
 +setDataG; x
 +maximum of list
 +1.5
 +===INPUT PINS===
 +**__x__** ​
 +[[Float]], ​
 +===OUTPUT PINS===
 +**__out__** ​
 +[[FloatPin]], ​
 +=====min======
 +  ​
 +  minimum of list x
 +  ​
 +setDataG; x
 +===INPUT PINS===
 +**__x__** ​
 +[[Float]], ​
 +===OUTPUT PINS===
 +**__out__** ​
 +[[FloatPin]], ​
 +=====onesList======
 +  create a list of ones
 +===INPUT PINS===
 +**__size__** ​
 +[[IntPin]], ​
 +===OUTPUT PINS===
 +**__out__** ​
 +[[FloatPin]], ​
 +=====rad2deg======
 +  radians to degree
 +===INPUT PINS===
 +**__radians__** ​
 +[[FloatPin]], ​
 +===OUTPUT PINS===
 +**__out__** ​
 +[[FloatPin]], ​
 +=====randomList======
 +  create a random list
 +===INPUT PINS===
 +**__size__** ​
 +[[IntPin]], ​
 +===OUTPUT PINS===
 +**__out__** ​
 +[[FloatPin]], ​
 +=====reshape======
 +  ​
 +  reshape(data,​ (a [,b [,​c]])) ​   ​
 +  Gives a new shape to an array without changing its data.      ​
 +  ​
 +===INPUT PINS===
 +**__data__** ​
 +[[FloatPin]], ​
 +**__a__** ​
 +[[IntPin]], ​
 +**__b__** ​
 +[[IntPin]], ​
 +**__c__** ​
 +[[IntPin]], ​
 +===OUTPUT PINS===
 +**__out__** ​
 +[[FloatPin]], ​
 +=====roll======
 +  ​
 +  roll(a, shift[, axis]) ​ Roll array elements along a given axis. 
 +  ​
 +===INPUT PINS===
 +**__data__** ​
 +[[FloatPin]], ​
 +**__shift__** ​
 +[[IntPin]], ​
 +**__axis__** ​
 +[[IntPin]], ​
 +===OUTPUT PINS===
 +**__out__** ​
 +[[FloatPin]], ​
 +=====round======
 +  round float list 
 +===INPUT PINS===
 +**__data__** ​
 +[[FloatPin]], ​
 +**__decimals__** ​
 +[[IntPin]], ​
 +===OUTPUT PINS===
 +**__out__** ​
 +[[FloatPin]], ​
 +=====scale======
 +  multiply datalist with factor ​
 +===INPUT PINS===
 +**__data__** ​
 +[[FloatPin]], ​
 +**__factor__** ​
 +[[FloatPin]], ​
 +===OUTPUT PINS===
 +**__out__** ​
 +[[FloatPin]], ​
 +=====sin======
 +  a*sin(b*x+c)
 +===INPUT PINS===
 +**__data__** ​
 +[[FloatPin]], ​
 +**__a__** ​
 +[[FloatPin]], ​
 +**__b__** ​
 +[[FloatPin]], ​
 +**__c__** ​
 +[[FloatPin]], ​
 +===OUTPUT PINS===
 +**__out__** ​
 +[[FloatPin]], ​
 +=====subarray======
 +  ​
 +  returns data[umin:​umax,​vmin:​vmax]
 +  ​
 +setDataG; umin
 +setDataG; umax
 +setDataG; vmin
 +setDataG; vmax
 +===INPUT PINS===
 +**__data__** ​
 +[[FloatPin]], ​
 +**__umin__** ​
 +[[Integer]], ​
 +**__umax__** ​
 +[[Integer]], ​
 +**__vmin__** ​
 +[[Integer]], ​
 +**__vmax__** ​
 +[[Integer]], ​
 +===OUTPUT PINS===
 +**__out__** ​
 +[[FloatPin]], ​
 +=====sum======
 +  ​
 +  sum of list x
 +  ​
 +setDataG; x
 +===INPUT PINS===
 +**__x__** ​
 +[[Float]], ​
 +===OUTPUT PINS===
 +**__out__** ​
 +[[FloatPin]], ​
 +=====tan======
 +  a*tan(b*x+c)
 +===INPUT PINS===
 +**__data__** ​
 +[[FloatPin]], ​
 +**__a__** ​
 +[[FloatPin]], ​
 +**__b__** ​
 +[[FloatPin]], ​
 +**__c__** ​
 +[[FloatPin]], ​
 +===OUTPUT PINS===
 +**__out__** ​
 +[[FloatPin]], ​
 +=====unwrap======
 +  ​
 +  Unwrap by changing deltas between values to 2*pi complement.
 +  Unwrap radian phase p by changing ​
 +  absolute jumps greater than discont ​
 +  to their 2*pi complement along the given axis.
 +  ​
 +===INPUT PINS===
 +**__radians__** ​
 +[[FloatPin]], ​
 +===OUTPUT PINS===
 +**__out__** ​
 +[[FloatPin]], ​
 +=====zerosList======
 +  create a list of zeros
 +===INPUT PINS===
 +**__size__** ​
 +[[IntPin]], ​
 +===OUTPUT PINS===
 +**__out__** ​
 +[[FloatPin]], ​
 +=====zip======
 +  combine coordinate lists to a list of vectors ​
 +setDataG; out
 +setDataG; out
 +===INPUT PINS===
 +**__x__** ​
 +[[FloatPin]], ​
 +**__y__** ​
 +[[FloatPin]], ​
 +**__z__** ​
 +[[FloatPin]], ​
 +===OUTPUT PINS===
 +**__out__** ​
 +[[VectorPin]], ​
 +=====zipRotation======
 +  combine axis(x,y,z) and angle lists to a list of rotations
 +===INPUT PINS===
 +**__x__** ​
 +[[FloatPin]], ​
 +**__y__** ​
 +[[FloatPin]], ​
 +**__z__** ​
 +[[FloatPin]], ​
 +**__angle__** ​
 +[[FloatPin]], ​
 +===OUTPUT PINS===
 +**__out__** ​
 +[[RotationPin]], ​
 +=======Datetime=======
 +=====now======
 +  ​
 +===INPUT PINS===
 +===OUTPUT PINS===
 +**__out__** ​
 +[[FloatPin]], ​
 +=====strftime======
 +  ​
 +===INPUT PINS===
 +**__timestamp__** ​
 +[[FloatPin]], ​
 +**__sformat__** ​
 +[[StringPin]], ​
 +===OUTPUT PINS===
 +**__out__** ​
 +[[StringPin]], ​
 +=====time======
 +  ​
 +===INPUT PINS===
 +**__hour__** ​
 +[[IntPin]], ​
 +**__minute__** ​
 +[[IntPin]], ​
 +**__second__** ​
 +[[IntPin]], ​
 +**__microsecond__** ​
 +[[IntPin]], ​
 +===OUTPUT PINS===
 +**__out__** ​
 +[[FloatPin]], ​
 +======Nodes by category======
 +=====Datetime=====
 +[[nodes::​now]]
 +[[nodes#​fc_now|/​°/ ​ ]]
 +[[nodes::​strftime]]
 +[[nodes#​fc_strftime|/​°/ ​ ]]
 +[[nodes::​time]]
 +[[nodes#​fc_time|/​°/ ​ ]]
 +=====Default=====
 +[[nodes::​max]]
 +[[nodes#​fc_max|/​°/ ​ ]]
 +[[nodes::​min]]
 +[[nodes#​fc_min|/​°/ ​ ]]
 +[[nodes::​sum]]
 +[[nodes#​fc_sum|/​°/ ​ ]]
 +=====Document=====
 +[[nodes::​workspace]]
 +[[nodes#​fc_workspace|/​°/ ​ ]]
 +=====Placement=====
 +[[nodes::​pmCreate]]
 +[[nodes#​fc_pmCreate|/​°/ ​ ]]
 +[[nodes::​pmMultiply]]
 +[[nodes#​fc_pmMultiply|/​°/ ​ ]]
 +=====Rotation=====
 +[[nodes::​rotCreate]]
 +[[nodes#​fc_rotCreate|/​°/ ​ ]]
 +[[nodes::​rotCreateBy2Vectors]]
 +[[nodes#​fc_rotCreateBy2Vectors|/​°/ ​ ]]
 +[[nodes::​rotCreateBy3Vectors]]
 +[[nodes#​fc_rotCreateBy3Vectors|/​°/ ​ ]]
 +[[nodes::​rotCreateEuler]]
 +[[nodes#​fc_rotCreateEuler|/​°/ ​ ]]
 +[[nodes::​rotMultiply]]
 +[[nodes#​fc_rotMultiply|/​°/ ​ ]]
 +=====Vector=====
 +[[nodes::​between]]
 +[[nodes#​fc_between|/​°/ ​ ]]
 +[[nodes::​betweenList]]
 +[[nodes#​fc_betweenList|/​°/ ​ ]]
 +[[nodes::​move]]
 +[[nodes#​fc_move|/​°/ ​ ]]
 +[[nodes::​vecAdd]]
 +[[nodes#​fc_vecAdd|/​°/ ​ ]]
 +[[nodes::​vecCreate]]
 +[[nodes#​fc_vecCreate|/​°/ ​ ]]
 +[[nodes::​vecDotProduct]]
 +[[nodes#​fc_vecDotProduct|/​°/ ​ ]]
 +[[nodes::​vecSubstract]]
 +[[nodes#​fc_vecSubstract|/​°/ ​ ]]
 +[[nodes::​vecX]]
 +[[nodes#​fc_vecX|/​°/ ​ ]]
 +[[nodes::​vecY]]
 +[[nodes#​fc_vecY|/​°/ ​ ]]
 +[[nodes::​vecZ]]
 +[[nodes#​fc_vecZ|/​°/ ​ ]]
 +=====numpy|array=====
 +[[nodes::​fliplr]]
 +[[nodes#​fc_fliplr|/​°/ ​ ]]
 +[[nodes::​flipud]]
 +[[nodes#​fc_flipud|/​°/ ​ ]]
 +[[nodes::​linSpace]]
 +[[nodes#​fc_linSpace|/​°/ ​ ]]
 +[[nodes::​reshape]]
 +[[nodes#​fc_reshape|/​°/ ​ ]]
 +[[nodes::​roll]]
 +[[nodes#​fc_roll|/​°/ ​ ]]
 +[[nodes::​subarray]]
 +[[nodes#​fc_subarray|/​°/ ​ ]]
 +[[nodes::​zip]]
 +[[nodes#​fc_zip|/​°/ ​ ]]
 +[[nodes::​zipRotation]]
 +[[nodes#​fc_zipRotation|/​°/ ​ ]]
 +=====numpy|interpolate=====
 +[[nodes::​interp_cubic]]
 +[[nodes#​fc_interp_cubic|/​°/ ​ ]]
 +[[nodes::​interp_lin]]
 +[[nodes#​fc_interp_lin|/​°/ ​ ]]
 +=====numpy|operations=====
 +[[nodes::​add]]
 +[[nodes#​fc_add|/​°/ ​ ]]
 +[[nodes::​linearTrafo]]
 +[[nodes#​fc_linearTrafo|/​°/ ​ ]]
 +[[nodes::​round]]
 +[[nodes#​fc_round|/​°/ ​ ]]
 +[[nodes::​scale]]
 +[[nodes#​fc_scale|/​°/ ​ ]]
 +=====numpy|random=====
 +[[nodes::​onesList]]
 +[[nodes#​fc_onesList|/​°/ ​ ]]
 +[[nodes::​randomList]]
 +[[nodes#​fc_randomList|/​°/ ​ ]]
 +[[nodes::​zerosList]]
 +[[nodes#​fc_zerosList|/​°/ ​ ]]
 +=====numpy|trigonometry=====
 +[[nodes::​arctan]]
 +[[nodes#​fc_arctan|/​°/ ​ ]]
 +[[nodes::​arctan2]]
 +[[nodes#​fc_arctan2|/​°/ ​ ]]
 +[[nodes::​cos]]
 +[[nodes#​fc_cos|/​°/ ​ ]]
 +[[nodes::​deg2rad]]
 +[[nodes#​fc_deg2rad|/​°/ ​ ]]
 +[[nodes::​rad2deg]]
 +[[nodes#​fc_rad2deg|/​°/ ​ ]]
 +[[nodes::​sin]]
 +[[nodes#​fc_sin|/​°/ ​ ]]
 +[[nodes::​tan]]
 +[[nodes#​fc_tan|/​°/ ​ ]]
 +[[nodes::​unwrap]]
 +[[nodes#​fc_unwrap|/​°/ ​ ]]
 +
 +number of nodes 49
  
pyflow/functions.txt · Last modified: 2020/01/19 10:03 by admin