allenai / rslearn

A tool for developing remote sensing datasets and models.
Apache License 2.0
5 stars 0 forks source link

Extend some data sources with get_item_by_name and retrieve_item functions #10

Closed favyen2 closed 7 months ago

favyen2 commented 8 months ago
    def get_item_by_name(self, name: str) -> Item:
        ...

    def retrieve_item(self, item: Item) -> Generator[tuple[str, BinaryIO]]:
        # yield filename, blob_file
        ...

These can be optional functions to enable users to retrieve entire files from the data source without the ingestion component.