Open oterocoronel opened 1 year ago
I was about to open an issue about the same thing.
This would require adding a key to the params dict, call it "MotionCorrect-constructor", which is a dict of kwargs then checking if it exists and dumping it here: https://github.com/nel-lab/mesmerize-core/blob/master/mesmerize_core/algorithms/mcorr.py#L66
I could do a PR later today, unless you want to try it out?
I have some .h5 files that have the data in a field named 'data'. I have tried passing
var_name_hdf5 = 'data'
when adding an additional parameter like this:But when trying to actually run mcorr, it fails. The output is:
I suspect that the issue is that when trying to run MotionCorrection, it is only passing the motion parameters. This is easy to fix in CaImAn vanilla, because I can invoke it like this:
mc = MotionCorrect(fnames, dview=dview, var_name_hdf5='data', **opts.get_group('motion'))
Any suggestions? Thanks!