Skip to content

Commit

Permalink
bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
franciscovillaescusa committed Dec 14, 2022
1 parent 05c1b98 commit 45f337f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions library/Pk_library/Pk_library.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -1361,6 +1361,7 @@ def XPk_dv(delta,Vx,Vy,Vz,BoxSize,axis=2,MAS='CIC',threads=1):
dims = len(delta); middle = dims//2
kF,kN,kmax_par,kmax_per,kmax = frequencies(BoxSize,dims)
MAS_index = MAS_function(MAS)
MAS_corr = np.zeros(3, dtype=np.float64)

# compute the fields (1+delta)*V
Vx *= (1.0 + delta); Vy *= (1.0 + delta); Vz *= (1.0 + delta)
Expand Down Expand Up @@ -1636,6 +1637,8 @@ def XPk_2D(delta1,delta2,BoxSize,axis=2,MAS1='CIC',MAS2='CIC',threads=1):
kF,kN,kmax_par,kmax_per,kmax = frequencies(BoxSize,dims)
MAS_index1 = MAS_function(MAS1)
MAS_index2 = MAS_function(MAS2)
MAS_corr1 = np.zeros(3, dtype=np.float64)
MAS_corr2 = np.zeros(3, dtype=np.float64)

# find maximum wavenumbers, in kF units, along the par and perp directions
imax_par = middle
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@

setup(
name="Pylians",
version="0.5",
version="0.6",
author="Francisco Villaescusa-Navarro",
author_email="villaescusa.francisco@gmail.com",
description="Python libraries for the analysis of numerical simulations",
Expand Down

0 comments on commit 45f337f

Please sign in to comment.