Skip to content

Commit caa3891

Browse files
committed
MNT: ruff and lint
1 parent 4088caf commit caa3891

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

rocketpy/environment/environment.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1281,9 +1281,7 @@ def set_atmospheric_model( # pylint: disable=too-many-statements
12811281
_input_dict = (
12821282
dictionary.upper() if isinstance(dictionary, str) else None
12831283
)
1284-
_input_file = (
1285-
file.upper() if isinstance(file, str) else None
1286-
)
1284+
_input_file = file.upper() if isinstance(file, str) else None
12871285

12881286
# Validate format of user-supplied value (if any).
12891287
# When None, auto-detection runs after dictionary resolution.
@@ -1380,7 +1378,7 @@ def set_atmospheric_model( # pylint: disable=too-many-statements
13801378
self.process_ensemble(dataset, dictionary, conversion_factor)
13811379

13821380
ground_pressure = self.pressure(self.elevation)
1383-
if not (30_000 <= ground_pressure <= 120_000):
1381+
if not 30000 <= ground_pressure <= 120_000:
13841382
if pressure_conversion_factor is None:
13851383
hint = (
13861384
"The unit was auto-detected from the file's pressure "

0 commit comments

Comments
 (0)