Skip to content

Commit

Permalink
Update createCoefs.py
Browse files Browse the repository at this point in the history
add 'sleep()' to try to get some diagnostic output from the runner
  • Loading branch information
The9Cat authored Oct 13, 2024
1 parent 34bedce commit fa3740c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tests/Halo/createCoefs.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import os
import os, time
import pyEXP
import random
import numpy as np
Expand Down Expand Up @@ -27,12 +27,16 @@

print("---- created basis")

time.sleep(1)

# Create a coefficient structure
#
coefs = pyEXP.coefs.SphCoefs(True)

print("---- created coefficients")

time.sleep(1)

# Call the basis to generate coefficients
#
mass = []
Expand All @@ -48,8 +52,9 @@
zpos.append(random.random()*2.0 - 1.0)

print("---- createFromArray usings lists")
time.sleep(1)
coef1 = basis.createFromArray(mass, [xpos, ypos, zpos], time=3.0)

time.sleep(1)
coefs.add(coef1)

print("Times:", coefs.Times())
Expand Down

0 comments on commit fa3740c

Please sign in to comment.