Coder Social home page Coder Social logo

Comments (14)

ikitayama avatar ikitayama commented on June 1, 2024

Can you @pramodk jump in also and make comments?

from ringtest.

nrnhines avatar nrnhines commented on June 1, 2024

From https://neuronsimulator.github.io/nrn/py_doc/modelspec/programmatic/network/parcon.html#ParallelContext.source_var

Associates the source voltage variable with an integer. This integer has nothing to do with and does not conflict with the discrete event gid used by the Parallel Network methods.

So you don't need to be concerned with overlapping gid and sgid. However, gap junctions are generally simulated with a pair of reciprocal voltage locations and POINT_PROCESSes on opposite sides of the gap, and thus there are often twice as many sgid as there are gap junctions. (not always the case. eg. for single compartment heart cells with many adjacent heart cells, only a single sgid is needed for each cell, and each cell has as many Gap point processes as there are adjacent cells.)
gapspec

from ringtest.

ikitayama avatar ikitayama commented on June 1, 2024

Thank you, @nrnhines! In the simple ring network case, mk_halfgap should be called only once in mk_gap in ring.py.

from ringtest.

nrnhines avatar nrnhines commented on June 1, 2024

There are several examples, tests, that have the word "ring" in them. If you are referring to the ringtest repository, then
mk_gap in the right circumstances (soma and dend both exist on the same rank) properly calls mk_halfgap twice.

from ringtest.

ikitayama avatar ikitayama commented on June 1, 2024

Is this applicable to pass source Calcium concentration as well? Could this be used with gid_connect()?

from ringtest.

ikitayama avatar ikitayama commented on June 1, 2024

@nrnhines I will file this question in nrn GitHub Issue Tracker.

from ringtest.

nrnhines avatar nrnhines commented on June 1, 2024

The intention is to support transfer of Calcium concentration using the same methods as for voltage transfer. I.e.

pc.source_var(section(x)._ref_cai, sgid)

I'll check this out and make sure it is working.

from ringtest.

ikitayama avatar ikitayama commented on June 1, 2024

@nrnhines here sgid means a split global ID, or source global ID?

from ringtest.

nrnhines avatar nrnhines commented on June 1, 2024

It means source global identifier. An sgid value is unique in source_var and can be sent to any number of target_var. It is a completely different integer space than the set_gid2node space. i.e a sgid=1 is in no way necessarily associated with gid=1

from ringtest.

ikitayama avatar ikitayama commented on June 1, 2024

@nrnhines so, are you saying source global identifiers need to be prepared uniquely for membrane potential, and ion variants a user wants to transfer to the target respectively?

from ringtest.

ikitayama avatar ikitayama commented on June 1, 2024

I must admit that I never separately managed them in my Python analysis script.

from ringtest.

nrnhines avatar nrnhines commented on June 1, 2024

Yes. In other words a 1-1 correspondence between source variable references and sgid.

from ringtest.

pramodk avatar pramodk commented on June 1, 2024

@ikitayama : If there are no outstanding questions, this can be closed?

from ringtest.

ikitayama avatar ikitayama commented on June 1, 2024

Yes, please go ahead.

from ringtest.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.