File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
src/natural_language_geocoding/geocode_index/ingesters Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -439,6 +439,8 @@ def process_features() -> None:
439
439
counting_generator (_get_all_ne_features (), logger = logger ), _bulk_index_features
440
440
)
441
441
442
+
443
+ if __name__ == "__main__" and "get_ipython" not in globals ():
442
444
logging .getLogger ("opensearch" ).setLevel (logging .WARNING )
443
445
logging .getLogger ("natural_language_geocoding.geocode_index.index.GeocodeIndex" ).setLevel (
444
446
logging .WARNING
@@ -447,6 +449,8 @@ def process_features() -> None:
447
449
process_features ()
448
450
449
451
452
+
453
+
450
454
## Code for manual testing
451
455
# ruff: noqa: ERA001, E501
452
456
@@ -512,3 +516,4 @@ def process_features() -> None:
512
516
# print_hierarchies_with_names(index, place.hierarchies)
513
517
514
518
# display_geometry([place.geom])
519
+
You can’t perform that action at this time.
0 commit comments