4
4
5
5
6
6
@pytest .fixture
7
- def flight_calisto (calisto , example_env ): # old name: flight
7
+ def flight_calisto (calisto , example_plain_env ): # old name: flight
8
8
"""A rocketpy.Flight object of the Calisto rocket. This uses the calisto
9
9
without the aerodynamic surfaces and parachutes. The environment is the
10
10
simplest possible, with no parameters set.
@@ -13,7 +13,7 @@ def flight_calisto(calisto, example_env): # old name: flight
13
13
----------
14
14
calisto : rocketpy.Rocket
15
15
An object of the Rocket class. This is a pytest fixture too.
16
- example_env : rocketpy.Environment
16
+ example_plain_env : rocketpy.Environment
17
17
An object of the Environment class. This is a pytest fixture too.
18
18
19
19
Returns
@@ -23,7 +23,7 @@ def flight_calisto(calisto, example_env): # old name: flight
23
23
conditions.
24
24
"""
25
25
return Flight (
26
- environment = example_env ,
26
+ environment = example_plain_env ,
27
27
rocket = calisto ,
28
28
rail_length = 5.2 ,
29
29
inclination = 85 ,
@@ -33,7 +33,7 @@ def flight_calisto(calisto, example_env): # old name: flight
33
33
34
34
35
35
@pytest .fixture
36
- def flight_calisto_nose_to_tail (calisto_nose_to_tail , example_env ):
36
+ def flight_calisto_nose_to_tail (calisto_nose_to_tail , example_plain_env ):
37
37
"""A rocketpy.Flight object of the Calisto rocket. This uses the calisto
38
38
with "nose_to_tail" coordinate system orientation, just as described in the
39
39
calisto_nose_to_tail fixture.
@@ -42,7 +42,7 @@ def flight_calisto_nose_to_tail(calisto_nose_to_tail, example_env):
42
42
----------
43
43
calisto_nose_to_tail : rocketpy.Rocket
44
44
An object of the Rocket class. This is a pytest fixture too.
45
- example_env : rocketpy.Environment
45
+ example_plain_env : rocketpy.Environment
46
46
An object of the Environment class. This is a pytest fixture too.
47
47
48
48
Returns
@@ -52,7 +52,7 @@ def flight_calisto_nose_to_tail(calisto_nose_to_tail, example_env):
52
52
"nose_to_tail".
53
53
"""
54
54
return Flight (
55
- environment = example_env ,
55
+ environment = example_plain_env ,
56
56
rocket = calisto_nose_to_tail ,
57
57
rail_length = 5.2 ,
58
58
inclination = 85 ,
@@ -62,7 +62,7 @@ def flight_calisto_nose_to_tail(calisto_nose_to_tail, example_env):
62
62
63
63
64
64
@pytest .fixture
65
- def flight_calisto_robust (calisto_robust , example_env_robust ):
65
+ def flight_calisto_robust (calisto_robust , example_spaceport_env ):
66
66
"""A rocketpy.Flight object of the Calisto rocket. This uses the calisto
67
67
with the aerodynamic surfaces and parachutes. The environment is a bit more
68
68
complex than the one in the flight_calisto fixture. This time the latitude,
@@ -74,7 +74,7 @@ def flight_calisto_robust(calisto_robust, example_env_robust):
74
74
----------
75
75
calisto_robust : rocketpy.Rocket
76
76
An object of the Rocket class. This is a pytest fixture too.
77
- example_env_robust : rocketpy.Environment
77
+ example_spaceport_env : rocketpy.Environment
78
78
An object of the Environment class. This is a pytest fixture too.
79
79
80
80
Returns
@@ -84,7 +84,7 @@ def flight_calisto_robust(calisto_robust, example_env_robust):
84
84
condition.
85
85
"""
86
86
return Flight (
87
- environment = example_env_robust ,
87
+ environment = example_spaceport_env ,
88
88
rocket = calisto_robust ,
89
89
rail_length = 5.2 ,
90
90
inclination = 85 ,
@@ -94,7 +94,7 @@ def flight_calisto_robust(calisto_robust, example_env_robust):
94
94
95
95
96
96
@pytest .fixture
97
- def flight_calisto_custom_wind (calisto_robust , example_env_robust ):
97
+ def flight_calisto_custom_wind (calisto_robust , example_spaceport_env ):
98
98
"""A rocketpy.Flight object of the Calisto rocket. This uses the calisto
99
99
with the aerodynamic surfaces and parachutes. The environment is a bit more
100
100
complex than the one in the flight_calisto_robust fixture. Now the wind is
@@ -104,15 +104,15 @@ def flight_calisto_custom_wind(calisto_robust, example_env_robust):
104
104
----------
105
105
calisto_robust : rocketpy.Rocket
106
106
An object of the Rocket class. This is a pytest fixture too.
107
- example_env_robust : rocketpy.Environment
107
+ example_spaceport_env : rocketpy.Environment
108
108
An object of the Environment class. This is a pytest fixture too.
109
109
110
110
Returns
111
111
-------
112
112
rocketpy.Flight
113
113
114
114
"""
115
- env = example_env_robust
115
+ env = example_spaceport_env
116
116
env .set_atmospheric_model (
117
117
type = "custom_atmosphere" ,
118
118
temperature = 300 ,
@@ -130,7 +130,7 @@ def flight_calisto_custom_wind(calisto_robust, example_env_robust):
130
130
131
131
132
132
@pytest .fixture
133
- def flight_calisto_air_brakes (calisto_air_brakes_clamp_on , example_env ):
133
+ def flight_calisto_air_brakes (calisto_air_brakes_clamp_on , example_plain_env ):
134
134
"""A rocketpy.Flight object of the Calisto rocket. This uses the calisto
135
135
with the aerodynamic surfaces and air brakes. The environment is the
136
136
simplest possible, with no parameters set. The air brakes are set to clamp
@@ -140,7 +140,7 @@ def flight_calisto_air_brakes(calisto_air_brakes_clamp_on, example_env):
140
140
----------
141
141
calisto_air_brakes_clamp_on : rocketpy.Rocket
142
142
An object of the Rocket class.
143
- example_env : rocketpy.Environment
143
+ example_plain_env : rocketpy.Environment
144
144
An object of the Environment class.
145
145
146
146
Returns
@@ -151,7 +151,7 @@ def flight_calisto_air_brakes(calisto_air_brakes_clamp_on, example_env):
151
151
"""
152
152
return Flight (
153
153
rocket = calisto_air_brakes_clamp_on ,
154
- environment = example_env ,
154
+ environment = example_plain_env ,
155
155
rail_length = 5.2 ,
156
156
inclination = 85 ,
157
157
heading = 0 ,
0 commit comments