Browse Source

Determine the number of processes to create automatically

tags/v0.1.0
Jérôme Deuchnord 4 years ago
parent
commit
402fe6a723
No known key found for this signature in database GPG Key ID: BC6F3C345B7D33B0
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      ephemeris.py

+ 1
- 1
ephemeris.py View File

@@ -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 = {}


Loading…
Cancel
Save