def get_data(self, field, function=None, default=None):
f = function or utils.null<EOL>data = []<EOL>for iv in self:<EOL><INDENT>d = iv.data.get(field)<EOL>if d is None:<EOL><INDENT>if default is not None:<EOL><INDENT>d = default<EOL><DEDENT>else:<EOL><INDENT>d = np.nan<EOL><DEDENT><DEDENT>data.append(f(d))<EOL><DEDENT>return np.array(data)<EOL>
Get data from the striplog.