From df1aaacfae90d2b62ca5c7bcea181aa9423ff40b Mon Sep 17 00:00:00 2001 From: "Fabian P. Schmidt" Date: Sat, 2 Nov 2019 14:42:53 +0100 Subject: [PATCH] utils/find_passes: Remove unused passid This ID is unused, arbitrary and prevents this code to be parallized. --- utils.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/utils.py b/utils.py index 75ba1e7..8bd4fb8 100644 --- a/utils.py +++ b/utils.py @@ -223,7 +223,6 @@ def report_efficiency(scheduledpasses, passes): def find_passes(satellites, observer, tmin, tmax, minimum_altitude, min_pass_duration): # Loop over satellites passes = [] - passid = 0 logging.info('Finding all passes for %s satellites:' % len(satellites)) for satellite in tqdm(satellites): # Set start time @@ -259,7 +258,6 @@ def find_passes(satellites, observer, tmin, tmax, minimum_altitude, min_pass_dur azimuth_s = format(math.degrees(azs), '.0f') except TypeError: break - passid += 1 pass_duration = ts.datetime() - tr.datetime() @@ -277,7 +275,6 @@ def find_passes(satellites, observer, tmin, tmax, minimum_altitude, min_pass_dur # get pass information satpass = { - 'passid': passid, 'mytime': str(observer.date), 'name': str(satellite.name), 'id': str(satellite.id),