acikyazilimagi / acikyazilimagi/musahit-harita-backend

Change Heat Map Method

Ouverte
#53 0 commentaires 0 réactions 1 personne assignée Réclamée par @gurkanguray Voir sur GitHub
Langage dominant
Go
Étoiles
21
Forks
2
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

The method needs to be changed when sending intensity for the heatmap. A general intensity will be subtracted from the average of the sum of the ballot box numbers for the neighbourhoods. For chests, complete or incomplete information will be sent (1-0)
by @kingofsevens
```
maturity_total = 10
neighbourhood = []
for building in neighbourhood_building:
for box in building_boxes:
if box.approved:
intensity = 0
box.state = 1
else:
intensity = math.ceil(count / maturity_total * 5)
box.state = 0
neighbourhood.append(box.intensity)
neighbourhood_intensity = sum(l) / len(l)

```

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.