triqs.gf.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_window (optional) – The window of x variable (omega/omega_n/t/tau) for which data is requested.
flatten_y (bool, optional) – If the Greens function is of size (1, 1) flatten the array as a 1d array.
- Returns:
(X, data) – 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.
- Return type:
tuple