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

Function get_fill_value

numpy/ma/core.py:542–552  ·  view source on GitHub ↗

Return the filling value of a, if any. Otherwise, returns the default filling value for that type.

(a)

Source from the content-addressed store, hash-verified

540
541
542def get_fill_value(a):
543 """
544 Return the filling value of a, if any. Otherwise, returns the
545 default filling value for that type.
546
547 """
548 if isinstance(a, MaskedArray):
549 result = a.fill_value
550 else:
551 result = default_fill_value(a)
552 return result
553
554
555def common_fill_value(a, b):

Callers 1

common_fill_valueFunction · 0.85

Calls 1

default_fill_valueFunction · 0.85

Tested by

no test coverage detected