-
Notifications
You must be signed in to change notification settings - Fork 0
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
Neural mass housekeeping #530
base: master
Are you sure you want to change the base?
Conversation
Looks like there's an old test here: Neuroblox.jl/test/components.jl Lines 278 to 284 in b051eac
that needs to be removed |
also some renaming for aesthetics
Plus function export and shortened test
Oops I think the new Kuramoto split is breaking GraphDynamics |
I'm trying to accomodate it now, but I'm getting a very strange disagreement between MTK and GD for the stochastic version that I havent' figured out quite yet. |
Okay, I was tearing out my hair trying to figure out what was going on here. Turns out what happened was that this method (I ended up realizing this was the problem while thinking about it in the shower): Neuroblox.jl/src/blox/connections.jl Lines 488 to 504 in 56a18fe
was suddenly no longer getting hit by the new The only reason I caught this was that I luckily remembered to do the connection rules for both types in GraphDynamics, but I could have very easily also forgotten to do that, and then if I did, we'd both have incorrect results that agree! I'm just finishing up my changes for the GraphDynamics side and then I'll push them to this branch. |
Edit: no longer relevant due to #532 |
Ah that is bad. I'm also unhappy in general with this dispatch on the functions as constructors because it's going to be a pretty severe departure from how we've been doing block creation (normally the constructor has the same name as the block). I don't have a great solution for that though, other than holding off on merging this in right away. Sorry for the inconvenience though! Agree that better tests are really becoming necessary (we're working through another headache on the CS model for what's likely a similar compatibility issue). |
Agreed, we could always use more tests. One issue is that there is no ground truth data for every combination of Blox (there might not even be for a graph of only one type of Blox), so we can't always do the right thing for correctness. I'd say it's safe to assume that it won't exist most of the time, outside of paper figures. So maybe as a middle ground we can add equations checks. Not sure how equality checks for |
@MasonProtter @helmutstrey cleanup for the VdP we were discussing. I've included an initial stab at what a wrapper function would look like for the split masses (ODE vs SDE). @helmutstrey we should also look at the desired frequency because the default parameters seem a bit high for milliseconds (oscillations are on the order of 100Hz with default params).