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

Adams model on ketamine #358

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

Adams model on ketamine #358

wants to merge 22 commits into from

Conversation

anandpathak31
Copy link
Contributor

No description provided.

Project.toml Outdated
@@ -40,6 +40,8 @@ OptimizationOptimisers = "42dfb2eb-d2b4-4451-abcd-913932933ac1"
OrderedCollections = "bac558e1-5e72-5ebc-8fee-abe8a469f55d"
OrdinaryDiffEq = "1dea7af3-3e70-54e6-95c3-0bf5283fa5ed"
Peaks = "18e31ff7-3703-566c-8e60-38913d67486b"
Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80"
Pluto = "c3e4b0f8-55cb-11ea-2926-15256bba5781"
Copy link
Contributor

Choose a reason for hiding this comment

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

Pluto and Plots shouldn't be in the Neuroblox project.

The way I'd recommend doing this would be to add a Project.toml in the examples folder that has things like Plots and Pluto in it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@MasonProtter thanks for checking out. Once the code is straightened, I always remove those packages before merging. Its not an oversight I assure.

Copy link
Contributor

Choose a reason for hiding this comment

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

Sure, but I think it'd actually be helpful to have those tools in a separate project so that users can use them in the examples.

The way this would be done is you'd do something like

cd Neuroblox
julia --project=examples

and then from within julia you'd do

julia> using Pkg; pkg"dev ." # add Neuroblox itself to the current environment

julia> pkg"add Plots Pluto DifferentialEquations Graphs MetaGraphs"

and then whenever you work on code that goes in the examples, you just need to activate the Neuroblox/examples folder instead of the Neuroblox folder itself.

@MasonProtter
Copy link
Contributor

MasonProtter commented Jul 20, 2024

Okay, so it turns out that what I did here with the SDESystems acutally does cause problems, so I'm going to undo that merge. Sorry about that.

@anandpathak31
Copy link
Contributor Author

Okay, so it turns out that what I did here with the SDESystems acutally does cause problems, so I'm going to undo that merge. Sorry about that.

@MasonProtter Just curious, what was the problem with noise_eqs ?

@anandpathak31
Copy link
Contributor Author

@harisorgn the utils test is failing. Could not figure out.

@harisorgn
Copy link
Member

@harisorgn the utils test is failing. Could not figure out.

You overwrote some lines from master when resolving conflicts. Your inner_namespaced_nameof is the master's namespaced_nameof and in master inner_namespaced_nameof does not exist.

Check here how it is in master

namespaced_nameof(blox) = namespaced_name(inner_namespaceof(blox), nameof(blox))

And the error comes from using the wrong namespacing function here

function voltage_timeseries(blox::AbstractNeuronBlox, sol::SciMLBase.AbstractSolution)
namespaced_name = namespaced_nameof(blox)
state_name = Symbol(namespaced_name, "₊V")
s = only(@variables $(state_name)(t))
return sol[s]
end

So basically replace your inner_namespaced_nameof with namespaced_nameof having the definition above from master in the first link.

Also please make sure that no other changes were overwritten using diff.

@anandpathak31
Copy link
Contributor Author

anandpathak31 commented Sep 19, 2024

@harisorgn the utils test is failing. Could not figure out.

You overwrote some lines from master when resolving conflicts. Your inner_namespaced_nameof is the master's namespaced_nameof and in master inner_namespaced_nameof does not exist.

Check here how it is in master

namespaced_nameof(blox) = namespaced_name(inner_namespaceof(blox), nameof(blox))

And the error comes from using the wrong namespacing function here

function voltage_timeseries(blox::AbstractNeuronBlox, sol::SciMLBase.AbstractSolution)
namespaced_name = namespaced_nameof(blox)
state_name = Symbol(namespaced_name, "₊V")
s = only(@variables $(state_name)(t))
return sol[s]
end

So basically replace your inner_namespaced_nameof with namespaced_nameof having the definition above from master in the first link.

Also please make sure that no other changes were overwritten using diff.

That's weird. I always accepted incoming changes, not the current changes during conflict resilution.
I think the safer thing to do now is to ditch this PR, start a new branch and copy my changes into that new branch.
Otherwise there is not other way to ensure that every thing else is same as master.

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.

3 participants