Skip to content
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

ZapLine improvements #50

Open
3 of 4 tasks
nbara opened this issue Oct 25, 2021 · 9 comments · Fixed by #52 or #57
Open
3 of 4 tasks

ZapLine improvements #50

nbara opened this issue Oct 25, 2021 · 9 comments · Fixed by #52 or #57
Assignees
Labels
enhancement New feature or request

Comments

@nbara
Copy link
Owner

nbara commented Oct 25, 2021

Todo:

@nbara nbara added the enhancement New feature or request label Oct 25, 2021
@maciekszul
Copy link
Contributor

i'm refactoring and improving the algo right now as it was a quick and dirty way to do the job. i should push something ready to use soon. my implementation of fitting relies on psd calculation. currently my code uses the psd_array_multitaper from mne. any suggestions how to go about that issue? not really keen on implementing a new psd calculation.

@nbara
Copy link
Owner Author

nbara commented Nov 17, 2021

Awesome !

currently my code uses the psd_array_multitaper from mne. any suggestions how to go about that issue? not really keen on implementing a new psd calculation.

Mmh not sure I want to add a dependency to MNE-python.

That said, computing a PSD is easy enough and I'm sure we can find an easy replacement with scipy. I suggest you go ahead and open an pull request, and we can find a solution then.

@maciekszul
Copy link
Contributor

maciekszul commented Nov 17, 2021

Mmh not sure I want to add a dependency to MNE-python.

i thought so 😄
i'll use scipy.signal.welch then.

@nbara
Copy link
Owner Author

nbara commented Nov 17, 2021

That would be great thanks. But I can also code that bit myself if you're short on time.

@maciekszul
Copy link
Contributor

I can also code that bit myself if you're short on time.

no worries. i can put together a quick bodge.

@nbara nbara linked a pull request Nov 24, 2021 that will close this issue
@nbara nbara closed this as completed in #52 Nov 29, 2021
@nbara nbara reopened this Nov 30, 2021
@nbara nbara self-assigned this Nov 30, 2021
@nbara nbara linked a pull request Dec 2, 2021 that will close this issue
@malcolmudeozor
Copy link

Hi! Thanks so much for bringing ZapLine to Python. Super great tool. I see in your Todo checklist, you have a note about ZapLine-plus. Have you or are you planning to implement this update into Meegkit?

@nbara
Copy link
Owner Author

nbara commented Apr 26, 2023

Hey @malcolmudeozor , no I haven't got around to implementing it.

To be honest, I'm not sure I ever will because dss_line_iter() does the job for me.

@malcolmudeozor
Copy link

Thats great. I also enjoy using DSS iter because of its simplicity. However, I don't quite understand why it's not performing multiple iterations with my current data set. Do you mind me sending my example? Thank you!

@maciekszul
Copy link
Contributor

Hi malcolmudeozor you need to look at the PSD of your data. On noisy data, infant EEG for example, the window for the target frequency had to be widen. Look at the appropriate arguments in the function win_sz=10, spot_sz=2.5. From my experience, spot_sz has to be widen because the e.g. line noise is wider. Default values were suitable for best quality MEG.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
3 participants