Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Residual based diffusion #48

Merged
merged 8 commits into from
Aug 18, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Bugfixes in noise diagnostics computation
  • Loading branch information
arshednabeel committed Aug 17, 2023
commit 21b35b69e31681fb345f8628a1822cef85ad84d8
4 changes: 2 additions & 2 deletions pydaddy/analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,8 @@ def _residual_timeseries_vector(self, X, Y, Dt, bins_x, bins_y, inc_x, inc_y,
except IndexError:
bin_y = len(bins_y) - 1

res_x[i] = (res_x[i] - avg_drift_x[bin_x, bin_y] * t_int) #/ ((avg_diff_x[bin_x, bin_y] + avg_diff_xy[bin_x, bin_y]) * np.sqrt(t_int))
res_y[i] = (res_y[i] - avg_drift_y[bin_x, bin_y] * t_int) #/ ((avg_diff_y[bin_x, bin_y] + avg_diff_xy[bin_x, bin_y]) * np.sqrt(t_int))
res_x[i] = (res_x[i] - avg_drift_x[bin_x, bin_y] * t_int) #/ np.sqrt((avg_diff_x[bin_x, bin_y] + avg_diff_xy[bin_x, bin_y]) * t_int)
res_y[i] = (res_y[i] - avg_drift_y[bin_x, bin_y] * t_int) #/ np.sqrt((avg_diff_y[bin_x, bin_y] + avg_diff_xy[bin_x, bin_y]) * t_int)

return res_x / np.sqrt(Dt * t_int), res_y / np.sqrt(Dt * t_int)

Expand Down