We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eade6e9 commit 504a425Copy full SHA for 504a425
data_loader/data_loader.py
@@ -6,19 +6,13 @@
6
import click
7
import requests
8
9
-if len(sys.argv) != 2:
10
- print("Usage: python data_loader.py <opensearch|elasticsearch>")
+if len(sys.argv) != 1:
+ print("Usage: python data_loader.py")
11
sys.exit(1)
12
13
DATA_DIR = os.path.join(os.path.dirname(__file__), "setup_data/")
14
15
-backend = sys.argv[1].lower()
16
-if backend == "opensearch":
17
- STAC_API_BASE_URL = "http://localhost:8082"
18
-elif backend == "elasticsearch":
19
- STAC_API_BASE_URL = "http://localhost:8080"
20
-else:
21
- print("Invalid backend tag. Enter either 'opensearch' or 'elasticsearch'.")
+STAC_API_BASE_URL = "http://localhost:8084"
22
23
24
def load_data(filename):
0 commit comments