Twolineelement: Fix class name (uppercase)
parent
33832f0dbd
commit
86d86b2269
|
@ -1,2 +1,2 @@
|
||||||
from .tle import twolineelement
|
from .tle import Twolineelement
|
||||||
from .satellite import satellite
|
from .satellite import satellite
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
class twolineelement:
|
class Twolineelement:
|
||||||
"""TLE class"""
|
"""TLE class"""
|
||||||
|
|
||||||
def __init__(self, tle0, tle1, tle2):
|
def __init__(self, tle0, tle1, tle2):
|
||||||
|
|
|
@ -17,7 +17,7 @@ from utils import get_active_transmitter_info, \
|
||||||
get_satellite_info, \
|
get_satellite_info, \
|
||||||
update_needed, \
|
update_needed, \
|
||||||
get_priority_passes
|
get_priority_passes
|
||||||
from auto_scheduler import twolineelement, satellite
|
from auto_scheduler import Twolineelement, satellite
|
||||||
from auto_scheduler.pass_predictor import find_passes
|
from auto_scheduler.pass_predictor import find_passes
|
||||||
from auto_scheduler.schedulers import ordered_scheduler, \
|
from auto_scheduler.schedulers import ordered_scheduler, \
|
||||||
report_efficiency
|
report_efficiency
|
||||||
|
@ -258,7 +258,7 @@ def main():
|
||||||
with open(os.path.join(cache_dir, "tles_%d.txt" % ground_station_id), "r") as f:
|
with open(os.path.join(cache_dir, "tles_%d.txt" % ground_station_id), "r") as f:
|
||||||
lines = f.readlines()
|
lines = f.readlines()
|
||||||
tles = [
|
tles = [
|
||||||
twolineelement(lines[i], lines[i + 1], lines[i + 2]) for i in range(0, len(lines), 3)
|
Twolineelement(lines[i], lines[i + 1], lines[i + 2]) for i in range(0, len(lines), 3)
|
||||||
]
|
]
|
||||||
|
|
||||||
# Read transmitters
|
# Read transmitters
|
||||||
|
|
Loading…
Reference in New Issue