physiopy / physutils

Common tools for the physiopy suite
Apache License 2.0
0 stars 4 forks source link

Add Physio object generation from BIDS #4

Closed maestroque closed 3 months ago

maestroque commented 4 months ago

Closes #3

Proposed Changes

Change Type

Checklist before review

m-miedema commented 4 months ago

See my comment on the corresponding issue, I think we'll need to add more flexibility to column naming for this to be useful.

maestroque commented 4 months ago

@m-miedema it's fixed for the time being. I have implemented string literals searching, to give the physio_type property that is used in some functions.

m-miedema commented 4 months ago

This looks reasonable to me! Let me know when it's ready for review :)

me-pic commented 4 months ago

Hi @maestroque ! For the addition of unit tests for those new functions, I've talked with a colleague and she recommended to just generate the structure on the fly when we run pytest (and generate random number for the timeseries if we even need to), if we are just concerned about the data structure ! If we are more interested about the content of those files and need actual real data you can take a look at that BIDS app

maestroque commented 4 months ago

Thanks @me-pic ! Sounds reasonable to me

maestroque commented 3 months ago

@me-pic the unit test is ready. I'll address your other comments shortly and it should be good

maestroque commented 3 months ago

@me-pic I integrated your comments, so it should be good from that side!

@m-miedema I also addressed your comments on StartTime and n_slices. Regarding the use of the MRIConfig class and Physio, what you say is true, that was the intended use of the new class as we discussed in the past. It is pending the extraction of data from the trigger channel and the integration into the Physio object. I will open an issue about this, but I will tackle it if time allows after the workflow

maestroque commented 3 months ago

Other than that, it should be gtg

maestroque commented 3 months ago

@me-pic I think we are now ready, let me know if you have anything else in mind

m-miedema commented 3 months ago

Great work, thanks @maestroque !

smoia commented 3 months ago

:rocket: PR was released in 0.2.1 :rocket: