acikyazilimagi / acikyazilimagi/musahit-harita-backend

Change Heat Map Method

Aperta
#53 0 commenti 0 reazioni 1 assegnatario Rivendicata da @gurkanguray Vedi su GitHub
Lingua principale
Go
Stelle
21
Fork
2
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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)

```

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.