Skip to content

Commit

Permalink
ENH: remove links for parts
Browse files Browse the repository at this point in the history
  • Loading branch information
genematx authored and danielballan committed Jan 13, 2025
1 parent 97caed7 commit 05eaeb4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
14 changes: 0 additions & 14 deletions tiled/server/links.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,20 +54,6 @@ def links_for_container(structure_family, structure, base_url, path_str, **kwarg
def links_for_composite(structure_family, structure, base_url, path_str, **kwargs):
links = {}
links["full"] = f"{base_url}/container/full/{path_str}"

# This contains the links for each (sub-)structure
links["parts"] = []
if structure.contents is not None:
for key, item in structure.contents:
item_links = LINKS_BY_STRUCTURE_FAMILY[item.structure_family](
item.structure_family,
item.structure,
base_url,
path_str,
part=item.name,
)
item_links["self"] = f"{base_url}/metadata/{path_str}"
links["parts"].append(item_links)
return links


Expand Down
1 change: 0 additions & 1 deletion tiled/server/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,6 @@ class SparseLinks(pydantic.BaseModel):
class CompositeLinks(pydantic.BaseModel):
self: str
full: str
parts: List[Union[ArrayLinks, AwkwardLinks, DataFrameLinks, SparseLinks]]


resource_links_type_by_structure_family = {
Expand Down

0 comments on commit 05eaeb4

Please sign in to comment.