Skip to content

Commit

Permalink
Comment out all but first coef creation; sanity check
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin D. Weinberg committed Oct 13, 2024
1 parent 747e6a5 commit 1043436
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions tests/Halo/createCoefs.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,25 +55,25 @@

# exit(0)

mass = np.ones(1000) * 1.0e6
xpos = np.random.normal(0.0, 1.0, 1000)
ypos = np.random.normal(0.0, 1.0, 1000)
zpos = np.random.normal(0.0, 1.0, 1000)
# mass = np.ones(1000) * 1.0e6
# xpos = np.random.normal(0.0, 1.0, 1000)
# ypos = np.random.normal(0.0, 1.0, 1000)
# zpos = np.random.normal(0.0, 1.0, 1000)

print("---- createFromArray using a list of numpy arrays")
coef3 = basis.createFromArray(mass, [xpos, ypos, zpos], time=3.2)
# print("---- createFromArray using a list of numpy arrays")
# coef3 = basis.createFromArray(mass, [xpos, ypos, zpos], time=3.2)

data = np.array([xpos, ypos, zpos])
# data = np.array([xpos, ypos, zpos])

print("---- createFromArray usings pure numpy arrays")
coef4 = basis.createFromArray(mass, data, time=3.3)
# print("---- createFromArray usings pure numpy arrays")
# coef4 = basis.createFromArray(mass, data, time=3.3)

# Add the coefficient structure coefficient structure
coefs = pyEXP.coefs.SphCoefs(True)
coefs.add(coef1)
# coefs.add(coef2)
coefs.add(coef3)
coefs.add(coef4)
# coefs.add(coef3)
# coefs.add(coef4)
print("Times:", coefs.Times())

exit(0)

0 comments on commit 1043436

Please sign in to comment.