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

Method clone_with

dedalus/core/basis.py:110–114  ·  view source on GitHub ↗
(self, **new_kw)

Source from the content-addressed store, hash-verified

108 return Domain(dist, (self,))
109
110 def clone_with(self, **new_kw):
111 (_, *argnames), _, _, _, _, _, _ = inspect.getfullargspec(type(self).__init__)
112 kw = {name: getattr(self, name) for name in argnames}
113 kw.update(new_kw)
114 return type(self)(**kw)
115
116 @CachedAttribute
117 def constant(self):

Callers 15

__add__Method · 0.80
__mul__Method · 0.80
__rmatmul__Method · 0.80
derivative_basisMethod · 0.80
derivative_basisMethod · 0.80
radial_basisMethod · 0.80
__add__Method · 0.80
__mul__Method · 0.80
_new_kMethod · 0.80
radial_basisMethod · 0.80
__add__Method · 0.80
__mul__Method · 0.80

Calls 1

updateMethod · 0.80

Tested by 8

test_radial_multiplyFunction · 0.64
test_radial_dotFunction · 0.64
test_radial_crossFunction · 0.64
test_meridional_multiplyFunction · 0.64
test_meridional_dotFunction · 0.64
test_meridional_crossFunction · 0.64
test_eval_jacobi_nccFunction · 0.64
test_solve_jacobi_nccFunction · 0.64