carrien / free-speech

Analysis and plotting code for speech neuroimaging experiments.
MIT License
4 stars 5 forks source link

No logs in gen_dataVals #106

Closed cwnaber closed 10 months ago

cwnaber commented 1 year ago

gen_dataVals_from_wave_viewer should include more metadata. Specifically:

This would improve troubleshooting and investigation after a dataVals of unknown provenance is used.

We should probably do the same for variants of gen_dataVals_from_wave_viewer

carrien commented 1 year ago

Agreed, with the most important being what settings were used (not just inputs, but also other parameters set by the logic of the function). Not sure we need to worry about variants since I think they're all experiment-specific, and we're moving towards not needing to use variants with the multiple cases covered by gen_dataVals_from_wave_viewer.

cwnaber commented 1 year ago

Notes from talking to carrie today.

Fields to include in log:

For variables that don't always get set (such as eventMode), use [] if it isn't set by the function.

Save the results in another variable called dataVals_params. When the file dataVals.mat gets saved, it can include the variables dataVals and dataVals_params.

For the "variants," eg gen_dataVals_timeAdapt, we do not plan to make this change, since they are rarely used. As a separate issue, many of the variants can be moved to their respective folder in the current-studies repo, if one exists.

NEXT STEPS: Chris will code up changes and send for review.

cwnaber commented 10 months ago

Fixed in #110