MCPcopy Create free account
hub / github.com/NGSolve/ngsolve / GetSlice

Function GetSlice

python/__expr.py:161–168  ·  view source on GitHub ↗
(self, index)

Source from the content-addressed store, hash-verified

159
160
161def GetSlice(self, index):
162 if not isinstance(index,slice):
163 return self.Get(index)
164 index = index.indices(len(self))
165 if(index[2]!=1):
166 print("Slicing with 3 parameters not supported!")
167 return none
168 return self.Range(index[0], index[1])
169
170def SetSlice(self, index, other):
171 if not isinstance(index,slice):

Callers

nothing calls this directly

Calls 2

GetMethod · 0.45
RangeMethod · 0.45

Tested by

no test coverage detected