Skip to content

Commit a7edc8e

Browse files
Fix lint
1 parent d410bdb commit a7edc8e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

rocketpy/simulation/flight_data_exporter.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,7 @@ class attributes which are instances of the Function class. Usage
149149
# Deal with decorated Flight methods
150150
else:
151151
try:
152-
obj = getattr(f.__class__, variable)
153-
variable_function = obj.__get__(f, f.__class__)
152+
variable_function = getattr(f, variable)
154153
except AttributeError as exc:
155154
raise AttributeError(
156155
f"Variable '{variable}' not found in Flight class"

tests/integration/test_flight.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import os
21
from unittest.mock import patch
32

43
import matplotlib as plt

tests/unit/test_flight_data_exporter.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ def test_export_sensor_data_writes_json(flight_calisto, tmp_path, monkeypatch):
5050
"""
5151

5252
class DummySensor:
53+
"""Dummy sensor with name attribute for testing."""
54+
5355
def __init__(self, name):
5456
self.name = name
5557

0 commit comments

Comments
 (0)