Skip to content

Commit 28f3eba

Browse files
Merge pull request #6 from NTIA/aromanielloNTIA-patch-1
Minimize what is imported, add Polarization enum
2 parents 259cb5f + 2fb911d commit 28f3eba

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

src/ITS/Propagation/LFMF/LFMF.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ class Result(Structure):
3333
)
3434

3535

36+
class Polarization(IntEnum):
37+
Horizontal = 0
38+
Vertical = 1
39+
40+
3641
def LFMF(
3742
h_tx__meter: float,
3843
h_rx__meter: float,
@@ -42,7 +47,7 @@ def LFMF(
4247
d__km: float,
4348
epsilon: float,
4449
sigma: float,
45-
pol: int,
50+
pol: Polarization,
4651
) -> Result:
4752
"""
4853
Compute the Low Frequency / Medium Frequency (LF/MF) propagation prediction

src/ITS/Propagation/LFMF/__init__.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,4 @@
22
# and Z is the version of this Python wrapper
33
__version__ = "1.1.0"
44

5-
from .LFMF import *
6-
7-
__all__ = ["LFMF"]
5+
from .LFMF import LFMF, Polarization, Result

0 commit comments

Comments
 (0)