Skip to content

Commit

Permalink
Merge pull request #197 from PixelgenTechnologies/fix/exe-2058-graph-…
Browse files Browse the repository at this point in the history
…error-for-missing-component

Fixing the error output for calling pixel graph function with non-existing component name
  • Loading branch information
ptajvar authored Nov 6, 2024
2 parents d9e4022 + dbfbd98 commit 9834f48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pixelator/pixeldataset/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ def graph(
"""
if component_id:
potential_component = self.edgelist_lazy.filter(
pl.col("component") == component_id
pl.col("component").cast(pl.String) == component_id
)
if potential_component.head(1).collect().is_empty():
raise KeyError(f"{component_id} not found in edgelist")
Expand Down

0 comments on commit 9834f48

Please sign in to comment.