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

[pre-commit.ci] pre-commit autoupdate #119

Merged
merged 3 commits into from
Jun 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ repos:
- id: rst-directive-colons
- id: rst-inline-touching-normal
- repo: https://github.com/codespell-project/codespell
rev: v2.2.6
rev: v2.3.0
hooks:
- id: codespell
4 changes: 2 additions & 2 deletions phys2cvr/phys2cvr.py
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,7 @@ def phys2cvr(

for i in lag_idx_list:
LGR.info(
f"Perform L-GLM for lag {lag_list[i]} ({i+1} of "
f"Perform L-GLM for lag {lag_list[i]} ({i + 1} of "
f"{len(lag_idx_list)}"
)
try:
Expand Down Expand Up @@ -700,7 +700,7 @@ def phys2cvr(
)

for n, i in enumerate(lag_range):
LGR.info(f"Perform L-GLM number {n+1} of {len(lag_range)}")
LGR.info(f"Perform L-GLM number {n + 1} of {len(lag_range)}")
try:
regr = regr_shifts[:, i]
LGR.debug(f"Using shift {i} from matrix in memory: {regr}")
Expand Down
4 changes: 2 additions & 2 deletions phys2cvr/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,10 +218,10 @@ def get_regr(

if not skip_xcorr:
_, optshift, xcorr = x_corr(func_cut, petco2hrf, nrep, abs_xcorr=abs_xcorr)
LGR.info(f"Cross correlation estimated bulk shift at {optshift/freq} seconds")
LGR.info(f"Cross correlation estimated bulk shift at {optshift / freq} seconds")
# Export estimated optimal shift in seconds
with open(f"{outname}_optshift.1D", "w") as f:
print(f"{(optshift/freq):.4f}", file=f)
print(f"{(optshift / freq):.4f}", file=f)
# Export xcorr figure
plt.figure(figsize=FIGSIZE, dpi=SET_DPI)
plt.plot(time_axis, xcorr)
Expand Down