MCPcopy Index your code
hub / github.com/numpy/numpy / copy

Method copy

numpy/ma/core.py:6830–6834  ·  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

6828 del __iop__ # don't leave this around
6829
6830 def copy(self, *args, **kwargs):
6831 """ Copy is a no-op on the maskedconstant, as it is a scalar """
6832 # maskedconstant is a scalar, so copy doesn't need to copy. There's
6833 # precedent for this with `np.bool` scalars.
6834 return self
6835
6836 def __copy__(self):
6837 return self

Callers 15

testScaleMethod · 0.45
testFloorMethod · 0.45
testCeilMethod · 0.45
testProcess1DMethod · 0.45
testProcess3DMethod · 0.45
performance.pyFile · 0.45
test_shuffle_maskedMethod · 0.45
test_shuffle_maskedMethod · 0.45
test_shuffle_maskedMethod · 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_stdlib_copyFunction · 0.36