Skip to content

Commit

Permalink
Update XDI to use URI.
Browse files Browse the repository at this point in the history
  • Loading branch information
danielballan committed Jan 20, 2024
1 parent 5f7bcf6 commit c470aaa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tiled/examples/xdi.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@

from tiled.adapters.dataframe import DataFrameAdapter
from tiled.structures.core import Spec
from tiled.utils import path_from_uri


def read_xdi(filepath, structure=None, metadata=None, specs=None, access_policy=None):
def read_xdi(data_uri, structure=None, metadata=None, specs=None, access_policy=None):
"Read XDI-formatted file."
filepath = path_from_uri(data_uri)
with open(filepath, "r") as file:
metadata = {}
fields = collections.defaultdict(dict)
Expand Down

0 comments on commit c470aaa

Please sign in to comment.