fixed timing and optimizer speed
This commit is contained in:
@@ -318,6 +318,7 @@ class LandmarkManager:
|
||||
|
||||
if "viewpoint" in tag:
|
||||
score += self.viewpoint_bonus
|
||||
duration = 10
|
||||
|
||||
if "image" in tag:
|
||||
score += self.image_bonus
|
||||
@@ -334,7 +335,6 @@ class LandmarkManager:
|
||||
if tag == "building" and elem.tag('building') in ['retail', 'supermarket', 'parking']:
|
||||
skip = True
|
||||
break
|
||||
|
||||
|
||||
# Get additional information
|
||||
# if tag == 'wikipedia' :
|
||||
@@ -352,14 +352,14 @@ class LandmarkManager:
|
||||
score = score_function(score)
|
||||
if "place_of_worship" in elem.tags().values() :
|
||||
score = int(score*self.church_coeff)
|
||||
duration = 20
|
||||
duration = 15
|
||||
|
||||
elif "museum" in elem.tags().values() :
|
||||
score = int(score*self.church_coeff)
|
||||
duration = 60
|
||||
|
||||
else :
|
||||
duration = 30
|
||||
duration = 5
|
||||
|
||||
# Generate the landmark and append it to the list
|
||||
landmark = Landmark(
|
||||
|
Reference in New Issue
Block a user