MCPcopy Create free account
hub / github.com/DedalusProject/dedalus / __str__

Method __str__

dedalus/libraries/dedalus_sphere/shell.py:75–77  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

73 Codomain.__init__(self,dn,dk,Output=ShellCodomain)
74
75 def __str__(self):
76 s = f'(n->n+{self[0]},k->k+{self[1]})'
77 return s.replace('+0','').replace('+-','-')
78
79 def __eq__(self,other):
80 return self[1] == other[1]

Callers

nothing calls this directly

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected