Skip to content

Commit 403a4cf

Browse files
committed
stores: remove main() code
The call to _find_product_fixed_metadata is faulty. This code is apparently not tested or used frequently, so remove it.
1 parent 83b22b7 commit 403a4cf

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

cubedash/summary/_stores.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@
5050
from cubedash._version import version as explorer_version
5151
except ModuleNotFoundError:
5252
explorer_version = "ci-test-pipeline"
53-
from datacube import Datacube
5453
from datacube.drivers.postgres._fields import PgDocField
5554
from datacube.index import Index
5655
from datacube.model import Dataset, MetadataType, Product, Range
@@ -1723,16 +1722,3 @@ def _get_shape(geometry: WKBElement, crs) -> Optional[Geometry]:
17231722
)
17241723
shape = newshape
17251724
return shape
1726-
1727-
1728-
if __name__ == "__main__":
1729-
# For debugging store commands...
1730-
with Datacube() as dc:
1731-
from pprint import pprint
1732-
1733-
store = SummaryStore.create(dc.index)
1734-
pprint(
1735-
store._find_product_fixed_metadata(
1736-
dc.index.products.get_by_name("ls8_nbar_scene"), sample_percentage=50
1737-
)
1738-
)

0 commit comments

Comments
 (0)