Skip to content

Commit b294928

Browse files
fix warnings
1 parent 52e1897 commit b294928

8 files changed

Lines changed: 10 additions & 10 deletions

File tree

rocketserializer/_helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def parse_ork_file(ork_path: Path):
7676
try:
7777
with open(ork_path, encoding="utf-8") as file:
7878
bs = BeautifulSoup(file, features="xml")
79-
datapoints = bs.findAll("datapoint")
79+
datapoints = bs.find_all("datapoint")
8080
logger.info(
8181
"Successfully parsed .ork file at '%s' with %d datapoints",
8282
ork_path.as_posix(),

rocketserializer/components/fins.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def search_trapezoidal_fins(bs, elements):
2626
"sweep_length", "sweep_angle", "cant_angle", "section".
2727
"""
2828
settings = {}
29-
fins = bs.findAll("trapezoidfinset")
29+
fins = bs.find_all("trapezoidfinset")
3030
logger.info("A total of %d trapezoidal fin sets were detected", len(fins))
3131

3232
if len(fins) == 0:
@@ -131,7 +131,7 @@ def search_elliptical_fins(bs, elements):
131131
"section".
132132
"""
133133
settings = {}
134-
fins = bs.findAll("ellipticalfinset")
134+
fins = bs.find_all("ellipticalfinset")
135135
logger.info("A total of %d elliptical fin sets were detected", len(fins))
136136

137137
if len(fins) == 0:

rocketserializer/components/nose_cone.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def search_nosecone(bs, elements=None, rocket_radius=None, just_radius=False):
3131
if not nosecone:
3232
nosecones = list(
3333
filter(
34-
lambda x: x.find("name").text == "Nosecone", bs.findAll("transition")
34+
lambda x: x.find("name").text == "Nosecone", bs.find_all("transition")
3535
)
3636
)
3737
if len(nosecones) == 0:

rocketserializer/components/parachute.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def search_parachutes(bs):
2525
"""
2626
settings = {}
2727

28-
chutes = bs.findAll("parachute")
28+
chutes = bs.find_all("parachute")
2929
logger.info("A total of %d parachutes were detected", len(chutes))
3030

3131
for idx, chute in enumerate(chutes):

rocketserializer/components/rail_buttons.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def search_rail_buttons(bs, elements: dict) -> dict:
2323
name = str(lugs_elements[0]["name"])
2424

2525
angular_position = 0.0
26-
lugs = bs.findAll("launchlug")
26+
lugs = bs.find_all("launchlug")
2727
for lug in lugs:
2828
if lug.find("name").text == name:
2929
angular_position = float(lug.find("radialdirection").text)

rocketserializer/components/rocket.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ def search_rocket(bs, datapoints, data_labels, burnout_position):
5151

5252
def get_rocket_radius(bs):
5353
# We want to take the maximum radius of the rocket
54-
tubes = bs.findAll("bodytube")
55-
noses = bs.findAll("nosecone")
54+
tubes = bs.find_all("bodytube")
55+
noses = bs.find_all("nosecone")
5656

5757
tubes_radius = [i.find("radius").text for i in tubes]
5858
noses_radius = [i.find("aftradius").text for i in noses]

rocketserializer/components/transition.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def search_transitions(bs, elements, ork):
2626
"bottom_radius", "length", "position".
2727
"""
2828
settings = {}
29-
transitions = bs.findAll("transition")
29+
transitions = bs.find_all("transition")
3030
logger.info("A total of %d transitions were found", len(transitions))
3131

3232
transitions_ork = [

rocketserializer/ork_extractor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def __init_vectors(bs):
144144
time_vector : list
145145
The time vector.
146146
"""
147-
datapoints = bs.findAll("datapoint")
147+
datapoints = bs.find_all("datapoint")
148148
data_labels = bs.find("databranch").attrs["types"].split(",")
149149

150150
time_vector = [float(datapoint.text.split(",")[0]) for datapoint in datapoints]

0 commit comments

Comments
 (0)