simpeg.data.Data.fromvec#

Data.fromvec(v)[source]#

Convert data to vector and assign to observed data

This method converts the input numerical array v to a vector using py:meth:mkvc, then replaces the current dobs property of the data object with the new vector.

Parameters:
vnumpy.ndarray

A numerical array that will be converted to a vector and used to replace the current quantity stored in the dobs property.