Skip to content

Commit 716c285

Browse files
committed
Fixing issue with ingesting natural earth features
1 parent edf0a20 commit 716c285

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/natural_language_geocoding/geocode_index/ingesters/natural_earth.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -439,6 +439,8 @@ def process_features() -> None:
439439
counting_generator(_get_all_ne_features(), logger=logger), _bulk_index_features
440440
)
441441

442+
443+
if __name__ == "__main__" and "get_ipython" not in globals():
442444
logging.getLogger("opensearch").setLevel(logging.WARNING)
443445
logging.getLogger("natural_language_geocoding.geocode_index.index.GeocodeIndex").setLevel(
444446
logging.WARNING
@@ -447,6 +449,8 @@ def process_features() -> None:
447449
process_features()
448450

449451

452+
453+
450454
## Code for manual testing
451455
# ruff: noqa: ERA001, E501
452456

@@ -512,3 +516,4 @@ def process_features() -> None:
512516
# print_hierarchies_with_names(index, place.hierarchies)
513517

514518
# display_geometry([place.geom])
519+

0 commit comments

Comments
 (0)