A quick and easy fix for #167
The _md attribute is added to the product in infer_dc_product, but if the product is provided via the product_cache rather than inferred, it might not have the attribute (especially since datacube.model.Product does not have it), causing _item_to_ds to fail when it assumes the attribute exists.
Also take the chance to update the use of DatasetType to Product.
A quick and easy fix for #167 The
_md
attribute is added to the product ininfer_dc_product
, but if the product is provided via theproduct_cache
rather than inferred, it might not have the attribute (especially sincedatacube.model.Product
does not have it), causing_item_to_ds
to fail when it assumes the attribute exists. Also take the chance to update the use ofDatasetType
toProduct
.