Skip to main content
  • Home
  • Development
  • Documentation
  • Donate
  • Operational login
  • Browse the archive

swh logo
SoftwareHeritage
Software
Heritage
Archive
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

https://github.com/NikVard/memstim-hh
03 January 2024, 01:25:48 UTC
  • Code
  • Branches (12)
  • Releases (0)
  • Visits
    • Branches
    • Releases
    • HEAD
    • refs/heads/NewOpt_6Hz
    • refs/heads/PRC_new_params
    • refs/heads/backup_working_june_2022
    • refs/heads/cuda
    • refs/heads/master
    • refs/heads/minimodel
    • refs/heads/revision
    • refs/heads/working_on_figures
    • refs/tags/v1.0
    • refs/tags/v1.0a
    • refs/tags/v1.0b
    • refs/tags/v1.0c
    No releases to show
  • 98abfed
  • /
  • jupyter
  • /
  • ModelFiles
  • /
  • global_parameters.py
Raw File Download Save again
Take a new snapshot of a software origin

If the archived software origin currently browsed is not synchronized with its upstream version (for instance when new commits have been issued), you can explicitly request Software Heritage to take a new snapshot of it.

Use the form below to proceed. Once a request has been submitted and accepted, it will be processed as soon as possible. You can then check its processing state by visiting this dedicated page.
swh spinner

Processing "take a new snapshot" request ...

To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.

  • content
  • directory
  • revision
  • snapshot
origin badgecontent badge
swh:1:cnt:2319888982c9fa4856beb3e2de80947c0e1bb66a
origin badgedirectory badge
swh:1:dir:c8dfce0f8461e13df72ebd63f6f7453774c7c71b
origin badgerevision badge
swh:1:rev:563f808f6c4f40630f5b8876cc0b440cdf4159e8
origin badgesnapshot badge
swh:1:snp:c2e27ce82d59e51c3aa0d7aaece24f9f6f9a2889

This interface enables to generate software citations, provided that the root directory of browsed objects contains a citation.cff or codemeta.json file.
Select below a type of object currently browsed in order to generate citations for them.

  • content
  • directory
  • revision
  • snapshot
(requires biblatex-software package)
Generating citation ...
(requires biblatex-software package)
Generating citation ...
(requires biblatex-software package)
Generating citation ...
(requires biblatex-software package)
Generating citation ...
Tip revision: 563f808f6c4f40630f5b8876cc0b440cdf4159e8 authored by NikVard on 22 September 2023, 08:19:24 UTC
[UPDATE] Updated default figure names in scripts
Tip revision: 563f808
global_parameters.py
from brian2.units import *
from brian2.core.clocks import defaultclock

""" Fixed parameters required by the equations """
tau_Cl = 100.*ms                # removal rate of chloride ions in excitatory cells; healthy 0.1s | epilepsy 0.5s or 1.0s, page 88, Aussel
Ek = -100.*mV                   # resting potential of potassium channels in excitatory cells; healthy -100mV | epilepsy -90mV or -80mV, page 88, Aussel

# gains and global conductances
gM = 90*usiemens*cmetre**-2     # conductance for M-current
gCAN = 25*usiemens*cmeter**-2   # wakefulness -> table 3.6, page 59, Aussel

""" Model fixed parameters """
areas = ['EC', 'DG', 'CA3', 'CA1']
types = ['exc', 'inh']

G = 3                           # G for wakefulness // var coeff
g_max_e = 60*psiemens
g_max_i = 600*psiemens

gains_all =  [[1./G, 1.], [G, G], [1./G, 1.], [1., G]]

V_th = -20.*mvolt               # spiking threshold
refractory_time = 3*ms          # refractory time after a spike

cell_size_py = 29.e3*umetre**2  # single cell type
cell_size_inh = 14.e3*umetre**2
scale = round(1000/818,6)*umetre

sigma_noise_inh = 200.*uvolt
sigma_noise_exc = 2000.*uvolt

tstep = defaultclock.dt
integ_method = 'exponential_euler'  # integration method


# Kuramoto settings (default parameters)
N_Kur = 200
f0 = 6 # Hz
sigma = 0.5 # std of Gaussian for phase/ang.vel. initialization
kN_frac = 55. # synchronization parameter (k/N factor)
k_gain = 4. # phase reset gain
r_gain = 0.22*nA # output sin rhythm gain (scaling, in nA)

back to top

Software Heritage — Copyright (C) 2015–2026, The Software Heritage developers. License: GNU AGPLv3+.
The source code of Software Heritage itself is available on our development forge.
The source code files archived by Software Heritage are available under their own copyright and licenses.
Terms of use: Archive access, API— Content policy— Contact— JavaScript license information— Web API