triqs.gfs.gf.Gf.x_data_view

Gf.x_data_view(x_window=None, flatten_y=False)[source]

Helper method for getting a view of the data.

Parameters:
x_windowtuple of float, optional

The window of x variable (omega/omega_n/t/tau) for which data is requested.

flatten_ybool, optional

If the Green’s function is of size (1, 1) flatten the array as a 1d array.

Returns:
(X, data)tuple

X is a 1d numpy array of the x variable inside the window requested. data is a 3d numpy array of dim (:, :, len(X)), the corresponding slice of data. If flatten_y is True and dim is (1, 1, *) it returns a 1d numpy array.