Skip to content

Commit

Permalink
Index a location even when not embedding it.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyh committed May 23, 2022
1 parent dfaa38e commit e0e6791
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion eodatasets3/prepare/sentinel_l1_prepare.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
from datacube.utils.uris import normalise_path
from defusedxml import minidom

from eodatasets3 import DatasetDoc, DatasetPrepare, serialise
from eodatasets3 import DatasetDoc, DatasetPrepare, names, serialise
from eodatasets3.properties import Eo3Interface
from eodatasets3.ui import PathPath
from eodatasets3.utils import pass_config
Expand Down Expand Up @@ -248,6 +248,8 @@ def prepare_and_write(
doc = serialise.from_doc(
p.written_dataset_doc, skip_validation=True, normalise_properties=False
)
if not doc.locations:
doc.locations = [names.resolve_location(dataset_location)]
return doc, metadata_path


Expand Down

0 comments on commit e0e6791

Please sign in to comment.