Skip to content

Commit

Permalink
Merge pull request #119 from smoia/pre-commit-ci-update-config
Browse files Browse the repository at this point in the history
[pre-commit.ci] pre-commit autoupdate
  • Loading branch information
smoia authored Jun 1, 2024
2 parents 9b04648 + 9b7af82 commit cc73b57
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
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

0 comments on commit cc73b57

Please sign in to comment.