Skip to content

Commit

Permalink
add __repr__
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasdiener authored Oct 12, 2023
1 parent 82e1933 commit 6c4b64d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions grudge/trace_pair.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,9 @@ def update_persistent_hash(self, key_hash, key_builder):
key_builder.rec(key_hash, (self.__class__.__module__,
self.__class__.__qualname__))

def __repr__(self) -> str:
return self.__class__.__module__ + "." + self.__class__.__qualname__


def interior_trace_pairs(dcoll: DiscretizationCollection, vec, *,
comm_tag: Optional[Hashable] = None, tag: Hashable = None,
Expand Down

0 comments on commit 6c4b64d

Please sign in to comment.