Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

cleanup, remove unused imports

Jason Kent0e54d6192427
diff --git a/tasks/python3/getCapabilities.py b/tasks/python3/getCapabilities.py
index 9dc8bb8a5..56e788c8e 100755
--- a/tasks/python3/getCapabilities.py
+++ b/tasks/python3/getCapabilities.py
@@ -2,7 +2,6 @@
from concurrent.futures import ThreadPoolExecutor
from optparse import OptionParser
-from datetime import datetime
from collections import OrderedDict
import os
import sys
@@ -136,7 +135,7 @@ def process_colormaps():
sys.stdout.flush()
if not os.path.exists(colormaps_dir):
os.makedirs(colormaps_dir)
- with ThreadPoolExecutor(max_workers=20) as executor:
+ with ThreadPoolExecutor() as executor:
for link in colormaps.values():
executor.submit(process_single_colormap, link)
@@ -182,7 +181,7 @@ def process_vectordata():
tolerant = config.get("tolerant", False)
if "wv-options-fetch" in config:
- with ThreadPoolExecutor(max_workers=3) as executor:
+ with ThreadPoolExecutor() as executor:
for entry in config["wv-options-fetch"]:
try:
remote_count += 1
diff --git a/tasks/python3/processColormap.py b/tasks/python3/processColormap.py
index 22a7c3596..4d3f81bde 100755
--- a/tasks/python3/processColormap.py
+++ b/tasks/python3/processColormap.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python
-from concurrent.futures import ProcessPoolExecutor
+from concurrent.futures import ProcessPoolExecutor
from optparse import OptionParser
import os
import re
@@ -180,12 +180,12 @@ file_count = 0
error_count = 0
futures = []
-with ProcessPoolExecutor(max_workers=100) as readExecutor:
+with ProcessPoolExecutor() as readExecutor:
for root, dirs, files in os.walk(input_dir):
for file in files:
input_file = os.path.join(root, file)
futures.append(readExecutor.submit(read_file, input_file))
-with ProcessPoolExecutor(max_workers=100) as writeExecutor:
+with ProcessPoolExecutor() as writeExecutor:
for future in futures:
try:
file_count += 1