Skip to content

Instantly share code, notes, and snippets.

@slarson
slarson / HodgkinHuxleyIPythonNotebook.py
Created December 6, 2014 19:50
Hodgkin Huxley intro
# -*- coding: utf-8 -*-
# <nbformat>3.0</nbformat>
# <markdowncell>
# Full [Hodgkin Huxley Model](http://en.wikipedia.org/wiki/Hodgkin-Huxley_model)
# ==========================
#
# By Stephen Larson ([email protected]) for [OpenWorm](http://openworm.org)
#
import scipy as sp
import pylab as plt
from scipy.integrate import odeint
from scipy import stats
import scipy.linalg as lin
## Full Hodgkin-Huxley Model (copied from Computational Lab 2)
# Constants
C_m = 1.0 # membrane capacitance, in uF/cm^2
@slarson
slarson / gist:8411032
Created January 14, 2014 00:53
Second try with CElegans.net.nml....
unknown1040f3847b74:generatedNeuroML2 slarson$ ls -l CElegans.net.nml
-rw-r--r-- 1 slarson staff 794999 Jan 13 16:43 CElegans.net.nml
unknown1040f3847b74:generatedNeuroML2 slarson$ pip show libNeuroML
---
Name: libNeuroML
Version: 0.1.9.1
Location: /usr/local/lib/python2.7/site-packages
Requires:
unknown1040f3847b74:generatedNeuroML2 slarson$ python
Python 2.7.6 (default, Jan 2 2014, 15:58:06)
@slarson
slarson / shell
Created January 12, 2014 17:53
Attempt to interact with generated NeuroML2 CElegans files with libneuroml
unknown1040f3847b74:CElegans slarson$ ls
CElegans.ncx cellMechanisms generatedMorphML generatedNeuroML2 morphologies
README.md dataSets generatedNeuroML images pythonScripts
unknown1040f3847b74:CElegans slarson$ cd generatedNeuroML2/
unknown1040f3847b74:generatedNeuroML2 slarson$ ls
ADAL.nml BAGL.nml MuscleCellConnections.net.nml SABD.nml
ADAR.nml BAGR.nml NSML.nml SABVL.nml
ADEL.nml BDUL.nml NSMR.nml SABVR.nml
ADER.nml BDUR.nml OLLL.nml SDQL.nml
ADFL.nml CANL.nml OLLR.nml SDQR.nml
@slarson
slarson / gist:8187991
Created December 30, 2013 20:55
bug running neuroConstruct in @rayner's bundle.
unknown1040f3847b74:neuroConstruct slarson$ ./nC.sh
Running neuroConstruct from: . with max Java heap size of 450M
neuroConstruct v1.7.0 starting...
To start application with extra memory, see nC.sh in the neuroConstruct home directory.
12:49:11.057> UncaughtExceptionInfo : *** ERROR*** : Uncaught exception, no GUI warning...
12:49:11.057> UncaughtExceptionInfo : *** ERROR*** : apple/awt/CGraphicsDevice
12:49:11.065> UncaughtExceptionInfo : *** ERROR*** : java.lang.NoClassDefFoundError: apple/awt/CGraphicsDevice
12:49:11.066> UncaughtExceptionInfo : *** ERROR*** : at javax.media.j3d.GraphicsConfigTemplate3D.<clinit>(GraphicsConfigTemplate3D.java:55)
@slarson
slarson / gist:7594335
Created November 22, 2013 03:27
Links to articles about the Whole Brain Catalog

We have been fortunate to have a series of good press from the online community. This page is an attempt to capture the links back to those articles, blog posts and links.

2011

garbagehttp://www.nsf.gov/new

Stephens-MacBook-Air-3:geppetto slarson$ ./bin/startup.sh
The JAVA_HOME environment variable is not defined. Using PATH instead.
[2013-10-05 09:22:14.391] startup-tracker <KE0001I> Kernel starting.
[2013-10-05 09:22:17.785] startup-tracker <KE0002I> Kernel started.
[2013-10-05 09:22:18.112] system-artifacts <DE0000I> Installing plan 'org.eclipse.virgo.kernel.userregion.blueprint' version '3.6.0'.
[2013-10-05 09:22:18.298] system-artifacts <DE0000I> Installing bundle 'org.eclipse.gemini.blueprint.core' version '1.0.2.RELEASE'.
[2013-10-05 09:22:18.350] system-artifacts <DE0000I> Installing bundle 'org.eclipse.gemini.blueprint.extender' version '1.0.2.RELEASE'.
[2013-10-05 09:22:18.363] system-artifacts <DE0000I> Installing bundle 'org.eclipse.gemini.blueprint.io' version '1.0.2.RELEASE'.
[2013-10-05 09:22:18.374] system-artifacts <DE0000I> Installing bundle 'org.eclipse.virgo.kernel.agent.dm' version '3.6.0.RELEASE'.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@slarson
slarson / BAMS-To-NeuroLex
Created October 3, 2013 20:48
BAMS-To-NeuroLex iPython Notebook example
{
"metadata": {
"name": "BAMS-To-NeuroLex"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@slarson
slarson / test
Created October 3, 2013 20:28
Testing gist extension
test test