You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order for pydcf to run, I had to force the user input to be an integer---even though I entered integers for the lag_range_low and lag_range_high, for some reason they were scanned as floats (np.float64, to be more specific). Perhaps this is some incompatibility between pydcf (in the readme, stated to be compatible with Python 2.7, 3.4, 3.5) and newer versions of Python (I've been using 3.11).
Here are the changes (to lines 331-333) that worked for me:
DT = int(OPTS.dt[0])
N = int(np.around((OPTS.lgh[0] - OPTS.lgl[0]) / float(DT)))
T = np.linspace(int(OPTS.lgl[0]+(DT/2.0)), int(OPTS.lgh[0]-(DT/2.0)), N)
Not sure if some python environment weirdness means this is just a personal issue or if others have run into it, but I wanted to at least point it out in the off chance that others have run into issues computing DCFs.
The text was updated successfully, but these errors were encountered:
In order for pydcf to run, I had to force the user input to be an integer---even though I entered integers for the lag_range_low and lag_range_high, for some reason they were scanned as floats (np.float64, to be more specific). Perhaps this is some incompatibility between pydcf (in the readme, stated to be compatible with Python 2.7, 3.4, 3.5) and newer versions of Python (I've been using 3.11).
Here are the changes (to lines 331-333) that worked for me:
DT = int(OPTS.dt[0])
N = int(np.around((OPTS.lgh[0] - OPTS.lgl[0]) / float(DT)))
T = np.linspace(int(OPTS.lgl[0]+(DT/2.0)), int(OPTS.lgh[0]-(DT/2.0)), N)
Not sure if some python environment weirdness means this is just a personal issue or if others have run into it, but I wanted to at least point it out in the off chance that others have run into issues computing DCFs.
The text was updated successfully, but these errors were encountered: