MCPcopy Create free account
hub / github.com/numpy/numpy / copy

Method copy

numpy/ma/core.py:6631–6635  ·  view source on GitHub ↗

Copy is a no-op on the maskedconstant, as it is a scalar

(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

6629 del __iop__ # don't leave this around
6630
6631 def copy(self, *args, **kwargs):
6632 """ Copy is a no-op on the maskedconstant, as it is a scalar """
6633 # maskedconstant is a scalar, so copy doesn't need to copy. There's
6634 # precedent for this with `np.bool_` scalars.
6635 return self
6636
6637 def __copy__(self):
6638 return self

Callers 15

sdistFunction · 0.45
unpack_windows_zipFunction · 0.45
__init__Method · 0.45
_interpret_inheritMethod · 0.45
HTMLTemplateClass · 0.45
__call__Method · 0.45
testScaleMethod · 0.45
testFloorMethod · 0.45
testCeilMethod · 0.45
testProcess1DMethod · 0.45
testProcess3DMethod · 0.45

Calls

no outgoing calls

Tested by 15

testScaleMethod · 0.36
testFloorMethod · 0.36
testCeilMethod · 0.36
testProcess1DMethod · 0.36
testProcess3DMethod · 0.36
test_shuffle_maskedMethod · 0.36
test_shuffle_maskedMethod · 0.36
test_shuffle_maskedMethod · 0.36
test_basicMethod · 0.36