Commit 59170e65 authored by Ansgar Schmidt's avatar Ansgar Schmidt 🚀
Browse files

Fix lint findings


Signed-off-by: Ansgar Schmidt's avatarAnsgar Schmidt <ansgar.schmidt@gmx.net>
parent cb9f29e9
Pipeline #229144044 failed with stage
in 56 seconds
......@@ -103,7 +103,7 @@ def find_passes(satellite, observer, tmin, tmax, minimum_altitude, min_pass_dura
'tt': tt.datetime(), # Max altitude time
'altt': elevation, # Max altitude
'ts': ts.datetime(), # Set time
'td': pass_duration, # Set duration
'td': pass_duration, # Set duration
'azs': azimuth_s, # Set azimuth
'transmitter': {
'uuid': satellite.transmitter,
......
......@@ -97,7 +97,7 @@ def get_scheduled_passes_from_network(ground_station, tmin, tmax):
# r.json() is a list of dicts/observations
for o in r.json():
start = datetime.strptime(o['start'].replace("Z", ""), "%Y-%m-%dT%H:%M:%S")
end = datetime.strptime(o['end'].replace("Z", ""), "%Y-%m-%dT%H:%M:%S")
end = datetime.strptime(o['end'].replace("Z", ""), "%Y-%m-%dT%H:%M:%S")
satpass = {
"tr": start,
"ts": end,
......
......@@ -60,6 +60,7 @@ def print_scheduledpass_summary(scheduledpasses, ground_station_id, printer=prin
"%4d | %3s | %05d | %s | %s | %s | %3.0f | %4.6f | %s | %-10s | %s" %
(ground_station_id, 'Y' if satpass['scheduled'] else 'N', int(
satpass['satellite']['id']), satpass['tr'].strftime("%Y-%m-%dT%H:%M:%S"),
satpass['ts'].strftime("%Y-%m-%dT%H:%M:%S"), str(satpass['td']).split(".")[0], float(satpass['altt']) if satpass['altt']
satpass['ts'].strftime("%Y-%m-%dT%H:%M:%S"),
str(satpass['td']).split(".")[0], float(satpass['altt']) if satpass['altt']
else 0., satpass.get('priority', 0.0), satpass['transmitter'].get('uuid', ''),
satpass['transmitter'].get('mode', ''), satpass['satellite']['name'].rstrip()))
......@@ -11,7 +11,7 @@ from auto_scheduler import __version__ as auto_scheduler_version
from auto_scheduler.io import read_priorities_transmitters, read_tles, \
read_transmitters
from auto_scheduler.pass_predictor import constrain_pass_to_az_window, \
create_observer, find_passes, constrain_pass_to_max_observation_duration
constrain_pass_to_max_observation_duration, create_observer, find_passes
from auto_scheduler.satnogs_client import get_groundstation_info, \
get_scheduled_passes_from_network, schedule_observations_batch
from auto_scheduler.schedulers import ordered_scheduler, report_efficiency
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment