Selaa lähdekoodia

Determine the number of processes to create automatically

tags/v0.1.0
Jérôme Deuchnord 4 vuotta sitten
vanhempi
commit
402fe6a723
No known key found for this signature in database GPG Key ID: BC6F3C345B7D33B0
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. +1
    -1
      ephemeris.py

+ 1
- 1
ephemeris.py Näytä tiedosto

@@ -75,7 +75,7 @@ class Ephemeris:
'observer': {'latitude': self.latitude, 'longitude': self.longitude},
'year': year, 'month': month, 'day': day})

with ThreadPool(4) as pool:
with ThreadPool() as pool:
planets = pool.map(Ephemeris.get_planet, args)

obj = {}


Ladataan…
Peruuta
Tallenna