Skip to content

Commit

Permalink
[tail] Fix in BlockGf functionality of make_zero_tail
Browse files Browse the repository at this point in the history
  • Loading branch information
Wentzell committed Dec 11, 2018
1 parent dbad12d commit 8f28b70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytriqs/gf/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def make_zero_tail(g, n_moments=10):
n_moments = max(1, n_moments)
return np.zeros((n_moments,) + g.target_shape, dtype = g.data.dtype)
elif isinstance(g, BlockGf):
return map_block(lambda g_bl: make_zero_tail(g_bl, max_order), g)
return map_block(lambda g_bl: make_zero_tail(g_bl, n_moments), g)
else:
raise RuntimeError, "Error: make_zero_tail has to be called on a Frequency Green function object"

Expand Down

0 comments on commit 8f28b70

Please sign in to comment.