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
  • c9ea75c
  • /
  • model
  • /
  • globals.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:ba70438c41df12d42c9ed085c9e9232c77345c26
origin badgedirectory badge
swh:1:dir:a94804cd9b2d4b56cc800cdbda1f06a3b265fef3
origin badgerevision badge
swh:1:rev:3db0e522a6c40a756534723c3f127da7b7d19860
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: 3db0e522a6c40a756534723c3f127da7b7d19860 authored by NikVard on 09 June 2022, 17:36:36 UTC
[RESULTS] opt inp EC fin
Tip revision: 3db0e52
globals.py
from brian2.units import *
from brian2 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

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 = 150*umetre              # model scale | 150*umetre
# scale = round(1000/379,6)*umetre
scale = round(1000/818,6)*umetre
scale_aussel = 150*umetre

# sigma_noise_inh = 1.*uvolt
# sigma_noise_exc = 10.*uvolt

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

# Spikes-2-Rates filter
filter_params = {
    'tauFR' : 10*ms
}


# ANSI Colored text output!
class bcolors:
    # TEXT COLOR
    BLACK = '\u001b[30m'
    RED = '\u001b[31m'
    GREEN = '\u001b[32m'
    YELLOW = '\u001b[33m'
    BLUE = '\u001b[34m'
    MAGENTA = '\u001b[35m'
    CYAN = '\u001b[36m'
    WHITE = '\u001b[37m'

    # BACKGROUND COLOR
    BGBLACK = '\u001b[40m'
    BGRED = '\u001b[41m'
    BGGREEN = '\u001b[42m'
    BGYELLOW = '\u001b[43m'
    BGBLUE = '\u001b[44m'
    BGMAGENTA = '\u001b[45m'
    BGCYAN = '\u001b[46m'
    BGWHITE = '\u001b[47m'

    # STYLES
    BOLD = '\u001b[1m'
    UND = '\u001b[4m'
    REV = '\u001b[7m'


    # RESET
    ENDC = '\u001b[0m'

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