utils/find_passes: Remove unused passid

This ID is unused, arbitrary and prevents this code to be parallized.
merge-requests/52/head
Fabian P. Schmidt 2019-11-02 14:42:53 +01:00
parent a6a5ddaa4b
commit df1aaacfae
1 changed files with 0 additions and 3 deletions

View File

@ -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),