edickie / ciftify

The tools of the Human Connectome Project (HCP) adapted for working with non-HCP datasets
https://edickie.github.io/ciftify/
MIT License
116 stars 157 forks source link

[FIX] Add Soroush's falff fixes #177

Open DESm1th opened 2 years ago

DESm1th commented 2 years ago

It seems like the main fix happening is the use of repetition time as the second argument to np.fft.fftfreq on line 178, instead of 1. The two tests in tests/functional/test_ciftify_falff.py pass both before and after the changes. Unfortunately, I'm not sure precisely how to update them to capture what these changes are fixing.

edickie commented 2 years ago

I think the major error here is that repetition time should never be hard coded.

We want it as an extra argument - or read from the file meta data.

I think I do this already in other scripts (cifti_clean?) so maybe we can just add that in?

On Tue, Nov 8, 2022 at 6:18 PM Dawn E. Smith @.***> wrote:

It seems like the main fix happening is the use of repetition time as the second argument to np.fft.fftfreq on line 178, instead of 1. The two tests in tests/functional/test_ciftify_falff.py pass both before and after the changes. Unfortunately, I'm not sure precisely how to update them to capture what these changes are fixing.

You can view, comment on, or merge this pull request online at:

https://github.com/edickie/ciftify/pull/177 Commit Summary

File Changes

(1 file https://github.com/edickie/ciftify/pull/177/files)

Patch Links:

— Reply to this email directly, view it on GitHub https://github.com/edickie/ciftify/pull/177, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADEXT5VP473TVFNZ6AAGLWDWHLNSRANCNFSM6AAAAAAR23BB24 . You are receiving this because your review was requested.Message ID: @.***>