Skip to content

Commit 504a425

Browse files
committed
update data loader
1 parent eade6e9 commit 504a425

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

data_loader/data_loader.py

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,13 @@
66
import click
77
import requests
88

9-
if len(sys.argv) != 2:
10-
print("Usage: python data_loader.py <opensearch|elasticsearch>")
9+
if len(sys.argv) != 1:
10+
print("Usage: python data_loader.py")
1111
sys.exit(1)
1212

1313
DATA_DIR = os.path.join(os.path.dirname(__file__), "setup_data/")
1414

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'.")
15+
STAC_API_BASE_URL = "http://localhost:8084"
2216

2317

2418
def load_data(filename):

0 commit comments

Comments
 (0)