Skip to content

Commit

Permalink
fixes #60
Browse files Browse the repository at this point in the history
  • Loading branch information
Kay-Robert Dormann committed Oct 17, 2024
1 parent 0c9a3e5 commit 2525c13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion amep/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def average_func(
if(nr == None or nr > N - skip * N):
nr = max(1,int(N-skip*N))

evaluated_indices = np.ceil(np.linspace(skip*N, N-1, nr))
evaluated_indices = np.array(np.ceil(np.linspace(skip*N, N-1, nr)), dtype=int)
func_result = [func(x, **kwargs) for x in tqdm(data[evaluated_indices])]
evaluated = np.array(func_result)
if indices:
Expand Down

0 comments on commit 2525c13

Please sign in to comment.