Skip to content

Remove freq/phase args from HHNeuronExciBlox and HHNeuronInhibBlox #572

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

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

MasonProtter
Copy link
Contributor

Based on a conversation with @anandpathak31 and @harisorgn. Apparently we have no use for this sinusoidal activity, and if we did, we should use a SourceBlox for it.

Comment on lines 95 to +104
peak_freq = ps.freq[argmax(ps.power[3:end])+2]
@test isapprox(peak_freq, 80, atol=1)
@test_broken isapprox(peak_freq, 80, atol=1)

# test Welch periodogram and windows
ps2 = powerspectrum(nn1, sol, "V", window = hamming)
ps3 = powerspectrum(nn1, sol, "V", method = welch_pgram, window = hanning)
peak_freq2 = ps2.freq[argmax(ps2.power[3:end])+2]
peak_freq3 = ps3.freq[argmax(ps3.power[3:end])+2]
@test isapprox(peak_freq, peak_freq2, atol=0.001)
@test isapprox(peak_freq, peak_freq3, atol=1)
@test_broken isapprox(peak_freq, peak_freq3, atol=1)
Copy link
Contributor Author

@MasonProtter MasonProtter Mar 25, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gabrevaya do you have any idea why these tests might be broken by us removing the freq kwarg and how we can fix it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant