-
Notifications
You must be signed in to change notification settings - Fork 96
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
Refactor t2smap
#25
Comments
Hi @emdupre , I am a Mozsprint participant and would be happy to give this a go! Do you have any tests or example data I could use to check I haven't affected the functionality of the code? |
That would be fantastic, @TomMaullin ! ☀️ Unfortunately we don't yet have unit tests, here, but that would be another great addition !! There is continuous integration on the repository, which is slower (as it runs the whole code base) but will confirm if your changes affect the outputs. Please let me know if I can answer any other questions ! |
I don't think that the CI will catch errors in the |
Oh, sorry, I missed your question about example data ! The file is too big to store on github, so we're grabbing it off Dropbox here. |
Related to this, now that there's a submodule called |
You're totally write about testing And I'm totally open to suggestions on names ! Maybe |
What about naming the two methods similarly? I'm not a huge fan of the names What do you think about |
I completely agree about I like the |
I have run out of time but did give this a go and have submitted my WIP as a PR on tsalo/tedana in case any of it can be used. I'm afraid I haven't managed to test it as the docker container took me a while to download and run. |
Thanks so much for your efforts on this, @TomMaullin ! Sorry that the docker container took so long to get going, but the code looks great 🎉 |
Hi @emdupre , I'm happy to address the timeseries flag issue if you still need! That said... I am having some trouble running Tedana and t2sadmap in order to check my code isn't changing any output. I've cloned the Tedana repository, run
This gave the following error message:
I must admit I don't usually work with this data - perhaps I have misunderstood something? |
I think I know what's going on. The scripts in |
Hopefully #64 will fix the problem. |
Thanks @tsalo ! I think you're likely right— I'll review but am planning to merge as soon as Circle is passing. Thanks for looking at this again @TomMaullin ! Having someone using the code is a huge help to figure out bugs like these 🐛 |
As part of this, there is a discrepancy between different versions of the decay model fitting code (as discussed in #61) that needs to be resolved. Namely, in the original tedana code, there is no |
Given that the |
That seems reasonable, @tsalo ! Closing now. |
Use relative path for static figures on dynamic reports
Fixed LGR.debug mistakes
In #23, a
fit
function was added to allow for estimation of a T2*/S0 time series. This shares a lot of code with the originalt2sadmap
function, since it's a bit monolithic in its current implementation. It would be great to refactor these two functions so we have less duplicated code !The text was updated successfully, but these errors were encountered: