Skip to content

Commit e83d52c

Browse files
run pre-commit hooks on all files
1 parent 577e654 commit e83d52c

File tree

1 file changed

+28
-17
lines changed

1 file changed

+28
-17
lines changed

src/ITS/Propagation/LFMF/LFMF.py

+28-17
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,12 @@
66

77
class Result(Structure):
88
# C Struct for library outputs
9-
_fields_ = [('A_btl__db', c_double),
10-
('E__dBuVm', c_double),
11-
('P_rx__dbm', c_double),
12-
('method', c_int)]
9+
_fields_ = [
10+
("A_btl__db", c_double),
11+
("E__dBuVm", c_double),
12+
("P_rx__dbm", c_double),
13+
("method", c_int),
14+
]
1315

1416

1517
# Load the shared library
@@ -18,21 +20,30 @@ class Result(Structure):
1820
# Define function prototypes
1921
lib.LFMF.restype = c_int
2022
lib.LFMF.argtypes = (
21-
c_double,
22-
c_double,
23-
c_double,
24-
c_double,
25-
c_double,
26-
c_double,
27-
c_double,
28-
c_double,
29-
c_int,
30-
POINTER(Result),
23+
c_double,
24+
c_double,
25+
c_double,
26+
c_double,
27+
c_double,
28+
c_double,
29+
c_double,
30+
c_double,
31+
c_int,
32+
POINTER(Result),
3133
)
3234

3335

34-
def LFMF(h_tx__meter: float, h_rx__meter: float, f__mhz: float, P_tx__watt: float,
35-
N_s: float, d__km: float, epsilon: float, sigma: float, pol: int) -> Result:
36+
def LFMF(
37+
h_tx__meter: float,
38+
h_rx__meter: float,
39+
f__mhz: float,
40+
P_tx__watt: float,
41+
N_s: float,
42+
d__km: float,
43+
epsilon: float,
44+
sigma: float,
45+
pol: int,
46+
) -> Result:
3647
"""
3748
Compute the Low Frequency / Medium Frequency (LF/MF) propagation prediction
3849
@@ -63,7 +74,7 @@ def LFMF(h_tx__meter: float, h_rx__meter: float, f__mhz: float, P_tx__watt: floa
6374
c_double(epsilon),
6475
c_double(sigma),
6576
c_int(int(pol)),
66-
byref(result)
77+
byref(result),
6778
)
6879
)
6980

0 commit comments

Comments
 (0)