Skip to content

Commit 68ba507

Browse files
author
Franz Masatoshi Yuri
committed
removing libraries
1 parent cb2c2c9 commit 68ba507

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

rocketpy/utilities.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ def compute_CdS_from_drop_test(
3939

4040
return 2 * rocket_mass * g / ((terminal_velocity ** 2) * air_density)
4141

42+
4243
# TODO: Needs tests
4344

4445

@@ -212,14 +213,14 @@ def create_dispersion_dictionary(dic):
212213
Dictionary with all rocket data used in dispersion analysis.
213214
"""
214215
try:
215-
file = np.genfromtxt(dic,usecols = (1,2,3),delimiter = ',',dtype = str)
216+
file = np.genfromtxt(dic, usecols=(1, 2, 3), delimiter=",", dtype=str)
216217
except:
217-
file = np.genfromtxt(dic,usecols = (1,2,3),delimiter = ';',dtype = str)
218+
file = np.genfromtxt(dic, usecols=(1, 2, 3), delimiter=";", dtype=str)
218219
analysis_parameters = dict()
219220
for list in file:
220-
if list[0] !="":
221-
if list[2] =="":
221+
if list[0] != "":
222+
if list[2] == "":
222223
analysis_parameters[list[0]] = float(list[1])
223224
else:
224-
analysis_parameters[list[0]] = (float(list[1]),float(list[2]))
225+
analysis_parameters[list[0]] = (float(list[1]), float(list[2]))
225226
return analysis_parameters

0 commit comments

Comments
 (0)