utils/find_passes: Remove unused passid
This ID is unused, arbitrary and prevents this code to be parallized.merge-requests/52/head
parent
a6a5ddaa4b
commit
df1aaacfae
3
utils.py
3
utils.py
|
@ -223,7 +223,6 @@ def report_efficiency(scheduledpasses, passes):
|
||||||
def find_passes(satellites, observer, tmin, tmax, minimum_altitude, min_pass_duration):
|
def find_passes(satellites, observer, tmin, tmax, minimum_altitude, min_pass_duration):
|
||||||
# Loop over satellites
|
# Loop over satellites
|
||||||
passes = []
|
passes = []
|
||||||
passid = 0
|
|
||||||
logging.info('Finding all passes for %s satellites:' % len(satellites))
|
logging.info('Finding all passes for %s satellites:' % len(satellites))
|
||||||
for satellite in tqdm(satellites):
|
for satellite in tqdm(satellites):
|
||||||
# Set start time
|
# 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')
|
azimuth_s = format(math.degrees(azs), '.0f')
|
||||||
except TypeError:
|
except TypeError:
|
||||||
break
|
break
|
||||||
passid += 1
|
|
||||||
|
|
||||||
pass_duration = ts.datetime() - tr.datetime()
|
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
|
# get pass information
|
||||||
satpass = {
|
satpass = {
|
||||||
'passid': passid,
|
|
||||||
'mytime': str(observer.date),
|
'mytime': str(observer.date),
|
||||||
'name': str(satellite.name),
|
'name': str(satellite.name),
|
||||||
'id': str(satellite.id),
|
'id': str(satellite.id),
|
||||||
|
|
Loading…
Reference in New Issue