Skip to content

Commit 654d35a

Browse files
committed
proper asserts
1 parent c6face4 commit 654d35a

File tree

8 files changed

+8
-17
lines changed

8 files changed

+8
-17
lines changed

B737_AVL_Tutorial/tut_mission_B737_AVL.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@
88

99
# SUAVE Imports
1010
import SUAVE
11-
if not SUAVE.__version__=='2.5.0':
12-
assert('These tutorials only work with the SUAVE 2.5.0 release')
11+
assert SUAVE.__version__=='2.5.0', 'These tutorials only work with the SUAVE 2.5.0 release'
1312

1413
from SUAVE.Core import Data, Units
1514
from SUAVE.Plots.Performance.Mission_Plots import *

BWB_CFD/BWB.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@
88
# ----------------------------------------------------------------------
99

1010
import SUAVE
11-
if not SUAVE.__version__=='2.5.0':
12-
assert('These tutorials only work with the SUAVE 2.5.0 release')
11+
assert SUAVE.__version__=='2.5.0', 'These tutorials only work with the SUAVE 2.5.0 release'
1312

1413
import numpy as np
1514
import pylab as plt

Regional_Jet_Optimization/Optimize.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@
88
# ----------------------------------------------------------------------
99

1010
import SUAVE
11-
if not SUAVE.__version__=='2.5.0':
12-
assert('These tutorials only work with the SUAVE 2.5.0 release')
11+
assert SUAVE.__version__=='2.5.0', 'These tutorials only work with the SUAVE 2.5.0 release'
1312
from SUAVE.Core import Units, Data
1413
import numpy as np
1514
import Vehicles

Solar_UAV_Optimization/Optimize.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@
88
# ----------------------------------------------------------------------
99

1010
import SUAVE
11-
if not SUAVE.__version__=='2.5.0':
12-
assert('These tutorials only work with the SUAVE 2.5.0 release')
11+
assert SUAVE.__version__=='2.5.0', 'These tutorials only work with the SUAVE 2.5.0 release'
1312

1413
from SUAVE.Core import Units, Data
1514
import numpy as np

tut_concorde.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@
1212
# ----------------------------------------------------------------------
1313

1414
import SUAVE
15-
if not SUAVE.__version__=='2.5.0':
16-
assert('These tutorials only work with the SUAVE 2.5.0 release')
17-
15+
assert SUAVE.__version__=='2.5.0', 'These tutorials only work with the SUAVE 2.5.0 release'
1816
from SUAVE.Core import Units, Data
1917
from SUAVE.Plots.Performance.Mission_Plots import *
2018
from SUAVE.Methods.Propulsion.turbojet_sizing import turbojet_sizing

tut_mission_B737.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@
1919

2020
# SUAVE Imports
2121
import SUAVE
22-
if not SUAVE.__version__=='2.5.0':
23-
assert('These tutorials only work with the SUAVE 2.5.0 release')
22+
assert SUAVE.__version__=='2.5.0', 'These tutorials only work with the SUAVE 2.5.0 release'
2423
from SUAVE.Core import Data, Units
2524
# The Data import here is a native SUAVE data structure that functions similarly to a dictionary.
2625
# However, iteration directly returns values, and values can be retrieved either with the

tut_payload_range.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
# ----------------------------------------------------------------------
1010

1111
import SUAVE
12-
if not SUAVE.__version__=='2.5.0':
13-
assert('These tutorials only work with the SUAVE 2.5.0 release')
12+
assert SUAVE.__version__=='2.5.0', 'These tutorials only work with the SUAVE 2.5.0 release'
1413
from SUAVE.Core import Units, Data
1514
from SUAVE.Methods.Propulsion.turbofan_sizing import turbofan_sizing
1615
from SUAVE.Methods.Performance import payload_range

tut_solar_uav.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
# Imports
88
# ----------------------------------------------------------------------
99
import SUAVE
10-
if not SUAVE.__version__=='2.5.0':
11-
assert('These tutorials only work with the SUAVE 2.5.0 release')
10+
assert SUAVE.__version__=='2.5.0', 'These tutorials only work with the SUAVE 2.5.0 release'
1211
from SUAVE.Core import Units
1312

1413
import numpy as np

0 commit comments

Comments
 (0)