Public Member Functions | |
| __init__ (self, float length, float tau=0.0, float kappa_g=0.0, float kappa_n=0.0, float ramp=0.0, str shape="plateau", str name="segment") | |
| profile (self, float x) | |
| bool | is_constant (self, float x0, float x1) |
| np.ndarray | omega (self, float x) |
| np.ndarray | domega (self, float x) |
| float | effective_length (self) |
| np.ndarray | total_rotation (self) |
| __repr__ (self) | |
Public Attributes | |
| length = float(length) | |
| float | ramp = float(ramp) |
| str | shape = shape |
| amplitude = np.array([tau, kappa_g, kappa_n], dtype=float) | |
| name = name | |
| knots = np.unique(np.clip(np.array(knots), 0.0, self.length)) | |
Strip section of given length with curvature amplitudes times a profile.
| pancake.lead.Segment.__init__ | ( | self, | |
| float | length, | ||
| float | tau = 0.0, | ||
| float | kappa_g = 0.0, | ||
| float | kappa_n = 0.0, | ||
| float | ramp = 0.0, | ||
| str | shape = "plateau", | ||
| str | name = "segment" ) |
| pancake.lead.Segment.__repr__ | ( | self | ) |
| np.ndarray pancake.lead.Segment.domega | ( | self, | |
| float | x ) |
| float pancake.lead.Segment.effective_length | ( | self | ) |
Integral of the profile: the length that contributes to the total rotation.
| bool pancake.lead.Segment.is_constant | ( | self, | |
| float | x0, | ||
| float | x1 ) |
True if the profile is constant (== 1) on [x0, x1].
| np.ndarray pancake.lead.Segment.omega | ( | self, | |
| float | x ) |
| pancake.lead.Segment.profile | ( | self, | |
| float | x ) |
Profile P(x) and dP/dx.
| np.ndarray pancake.lead.Segment.total_rotation | ( | self | ) |
Integrated (tau, kappa_g, kappa_n) in radians.
| pancake.lead.Segment.amplitude = np.array([tau, kappa_g, kappa_n], dtype=float) |
| pancake.lead.Segment.knots = np.unique(np.clip(np.array(knots), 0.0, self.length)) |
| pancake.lead.Segment.length = float(length) |
| pancake.lead.Segment.name = name |
| pancake.lead.Segment.ramp = float(ramp) |
| pancake.lead.Segment.shape = shape |