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

Method __str__

dedalus/libraries/dedalus_sphere/sphere.py:200–203  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

198 Jacobi.JacobiCodomain.__init__(self,*(dL,dm,ds,pi),Output=SphereCodomain)
199
200 def __str__(self):
201 s = f'(L->L+{self[0]},m->m+{self[1]},s->s+{self[2]})'
202 if self[3]: s = s.replace('s->s','s->-s')
203 return s.replace('+0','').replace('+-','-')
204
205 def __call__(self,*args,evaluate=True):
206 L,m,s = args[:3]

Callers

nothing calls this directly

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected