Maxwell Henderson | f5123fe | 2023-02-04 13:44:41 -0800 | [diff] [blame] | 1 | import numpy |
| 2 | |
| 3 | from graph_tools import * |
| 4 | |
Maxwell Henderson | 4491348 | 2023-02-04 16:37:27 -0800 | [diff] [blame] | 5 | neutral = to_theta_with_circular_index(-0.2, 0.33, circular_index=-1) |
| 6 | zero = to_theta_with_circular_index(0.0, 0.0, circular_index=-1) |
Maxwell Henderson | f5123fe | 2023-02-04 13:44:41 -0800 | [diff] [blame] | 7 | |
Maxwell Henderson | 4491348 | 2023-02-04 16:37:27 -0800 | [diff] [blame] | 8 | neutral_to_cone_1 = to_theta_with_circular_index(0.0, 0.7, circular_index=-1) |
| 9 | neutral_to_cone_2 = to_theta_with_circular_index(0.2, 0.5, circular_index=-1) |
| 10 | cone_pos = to_theta_with_circular_index(1.0, 0.4, circular_index=-1) |
Maxwell Henderson | f5123fe | 2023-02-04 13:44:41 -0800 | [diff] [blame] | 11 | |
Maxwell Henderson | 4491348 | 2023-02-04 16:37:27 -0800 | [diff] [blame] | 12 | neutral_to_cone_perch_pos_1 = to_theta_with_circular_index(0.4, |
| 13 | 1.0, |
| 14 | circular_index=-1) |
| 15 | neutral_to_cone_perch_pos_2 = to_theta_with_circular_index(0.7, |
| 16 | 1.5, |
| 17 | circular_index=-1) |
| 18 | cone_perch_pos = to_theta_with_circular_index(1.0, 2.0, circular_index=-1) |
Maxwell Henderson | f5123fe | 2023-02-04 13:44:41 -0800 | [diff] [blame] | 19 | |
Maxwell Henderson | 83cf6d6 | 2023-02-10 20:29:26 -0800 | [diff] [blame] | 20 | points = [] |
| 21 | front_points = [] |
| 22 | back_points = [] |
| 23 | unnamed_segments = [] |
| 24 | named_segments = [] |
| 25 | |
Maxwell Henderson | 4491348 | 2023-02-04 16:37:27 -0800 | [diff] [blame] | 26 | segments = [ |
| 27 | ThetaSplineSegment(neutral, neutral_to_cone_1, neutral_to_cone_2, cone_pos, |
| 28 | "NeutralToCone"), |
| 29 | ThetaSplineSegment(neutral, neutral_to_cone_perch_pos_1, |
| 30 | neutral_to_cone_perch_pos_2, cone_perch_pos, |
| 31 | "NeutralToPerchedCone"), |
Maxwell Henderson | f5123fe | 2023-02-04 13:44:41 -0800 | [diff] [blame] | 32 | ] |