Skip to content

Commit 8086226

Browse files
committed
Merge remote-tracking branch 'suny-downstate-medical-center/master' into development
2 parents 56ca1e7 + 6a3d2f5 commit 8086226

File tree

13 files changed

+41
-33
lines changed

13 files changed

+41
-33
lines changed

CHANGES.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Version in development
1+
# Version 1.1.0
22

33
**New features**
44

@@ -14,6 +14,8 @@
1414

1515
- Solve minor bug in the uniform field for extracelular stimulation (sign). Deposited the xtra.mod in support module.
1616

17+
- Fixed batch SGE example (credit: Adam Newton)
18+
1719
- Solved small bug when plotting colorbar in the raster plot colored by the LFP phase
1820

1921
- Solved conflict between diversity and segment coordinates (per population), used in LFP setups
@@ -22,6 +24,10 @@
2224

2325
- Update of documentation (stimSourceParams and stimTargetParams) incorporating how to define extracellular stimulations
2426

27+
- Fixed ODict in examples/batchCell (credit: Hyunsu Lee)
28+
29+
- Fix in RxD to support NEURON 9 (credit: Adam Newton)
30+
2531
- Fixed recording from variables of Point process
2632

2733
- Fixed time slicing on pre-loaded data in plotCSD() (credit: Nikita Novikov)
@@ -30,6 +36,8 @@
3036

3137
- Fixes, refactoring and fail-fast checks in multisinaptic connections
3238

39+
- Fix verbatim function defs in mod files (credit: Ankur Sinha)
40+
3341
# Version 1.0.7
3442

3543
**New features**

doc/source/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@
6767
# built documents.
6868
#
6969
# The short X.Y version.
70-
version = '1.0.7'
70+
version = '1.1.0'
7171
# The full version, including alpha/beta/rc tags.
72-
release = '1.0.7'
72+
release = '1.1.0'
7373

7474
# The language for content autogenerated by Sphinx. Refer to documentation
7575
# for a list of supported languages.

doc/source/user_documentation.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1408,9 +1408,7 @@ Example:
14081408
14091409
.. code-block:: python
14101410
1411-
: $Id: MyExp2SynBB.mod,v 1.4 2010/12/13 21:27:51 samn Exp $
14121411
NEURON {
1413-
: THREADSAFE
14141412
POINT_PROCESS MyExp2SynBB
14151413
RANGE tau1, tau2, e, i, g, Vwt, gmax
14161414
NONSPECIFIC_CURRENT i

examples/batchCell/src/utils.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def readBatchData(dataFolder, batchLabel, loadAll=False, saveAll=True, vars=None
1919
print('\nLoading single file with all data...')
2020
filename = '%s/%s/%s_allData.json' % (dataFolder, batchLabel, batchLabel)
2121
with open(filename, 'r') as fileObj:
22-
dataLoad = json.load(fileObj, object_pairs_hook=specs.OrderedDict)
22+
dataLoad = json.load(fileObj, object_pairs_hook=specs.ODict)
2323
params = dataLoad['params']
2424
data = dataLoad['data']
2525
return params, data
@@ -52,10 +52,10 @@ def readBatchData(dataFolder, batchLabel, loadAll=False, saveAll=True, vars=None
5252
# read output file
5353
iCombStr = ''.join([''.join('_'+str(i)) for i in iComb])
5454
simLabel = b['batchLabel']+iCombStr
55-
outFile = b['saveFolder']+'/'+simLabel+'.json'
55+
outFile = b['saveFolder']+'/'+simLabel+'_data.json'
5656
try:
5757
with open(outFile, 'r') as fileObj:
58-
output = json.load(fileObj, object_pairs_hook=specs.OrderedDict)
58+
output = json.load(fileObj, object_pairs_hook=specs.ODict)
5959

6060
# save output file in data dict
6161
data[iCombStr] = {}
@@ -87,14 +87,14 @@ def compare(source_file, target_file, source_key=None, target_key=None):
8787
from deepdiff import DeepDiff
8888
with open(source_file, 'r') as fileObj:
8989
if source_file.endswith('.json'):
90-
source = json.load(fileObj, object_pairs_hook=specs.OrderedDict)
90+
source = json.load(fileObj, object_pairs_hook=specs.ODict)
9191
elif source_file.endswith('.pkl'):
9292
source = pickle.load(fileObj)
9393
if source_key: source = source[source_key]
9494

9595
with open(target_file, 'r') as fileObj:
9696
if target_file.endswith('.json'):
97-
target = json.load(fileObj, object_pairs_hook=specs.OrderedDict)
97+
target = json.load(fileObj, object_pairs_hook=specs.ODict)
9898
elif source_file.endswith('.pkl'):
9999
target = pickle.load(fileObj)
100100
if target_key: target = target[target_key]

examples/batchCellMapping/src/utils.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def readBatchData(dataFolder, batchLabel, loadAll=False, saveAll=True, vars=None
1919
print('\nLoading single file with all data...')
2020
filename = '%s/%s/%s_allData.json' % (dataFolder, batchLabel, batchLabel)
2121
with open(filename, 'r') as fileObj:
22-
dataLoad = json.load(fileObj, object_pairs_hook=specs.OrderedDict)
22+
dataLoad = json.load(fileObj, object_pairs_hook=specs.ODict)
2323
params = dataLoad['params']
2424
data = dataLoad['data']
2525
return params, data
@@ -52,10 +52,10 @@ def readBatchData(dataFolder, batchLabel, loadAll=False, saveAll=True, vars=None
5252
# read output file
5353
iCombStr = ''.join([''.join('_'+str(i)) for i in iComb])
5454
simLabel = b['batchLabel']+iCombStr
55-
outFile = b['saveFolder']+'/'+simLabel+'.json'
55+
outFile = b['saveFolder']+'/'+simLabel+'_data.json'
5656
try:
5757
with open(outFile, 'r') as fileObj:
58-
output = json.load(fileObj, object_pairs_hook=specs.OrderedDict)
58+
output = json.load(fileObj, object_pairs_hook=specs.ODict)
5959

6060
# save output file in data dict
6161
data[iCombStr] = {}
@@ -87,14 +87,14 @@ def compare(source_file, target_file, source_key=None, target_key=None):
8787
from deepdiff import DeepDiff
8888
with open(source_file, 'r') as fileObj:
8989
if source_file.endswith('.json'):
90-
source = json.load(fileObj, object_pairs_hook=specs.OrderedDict)
90+
source = json.load(fileObj, object_pairs_hook=specs.ODict)
9191
elif source_file.endswith('.pkl'):
9292
source = pickle.load(fileObj)
9393
if source_key: source = source[source_key]
9494

9595
with open(target_file, 'r') as fileObj:
9696
if target_file.endswith('.json'):
97-
target = json.load(fileObj, object_pairs_hook=specs.OrderedDict)
97+
target = json.load(fileObj, object_pairs_hook=specs.ODict)
9898
elif source_file.endswith('.pkl'):
9999
target = pickle.load(fileObj)
100100
if target_key: target = target[target_key]

examples/batchSGE/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ simulation logs are generated in ~/qsub/
3535
b.runCfg = {'type': 'hpc_sge',
3636
'jobName': 'my_batch',
3737
'cores': 4,
38-
'script': 'init.py',
38+
'script': 'src/init.py',
3939
'skip': True}
4040
```
4141

examples/batchSGE/src/batch.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ def batchTauWeight():
1919
b.runCfg = {'type': 'hpc_sge',
2020
'jobName': 'my_batch',
2121
'cores': 4,
22-
'script': 'init.py',
22+
'script': 'src/init.py',
2323
'skip': True}
2424

2525
# Run batch simulations
2626
b.run()
2727

2828
# Main code
2929
if __name__ == '__main__':
30-
batchTauWeight()
30+
batchTauWeight()

netpyne/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
NetPyNE consists of a number of sub-packages and modules.
55
"""
66

7-
__version__ = '1.0.7'
7+
__version__ = '1.1.0'
88
import os, sys
99

1010
display = os.getenv('DISPLAY')

netpyne/batch/grid.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,8 @@ def gridSubmit(batch, pc, netParamsSavePath, jobName, simLabel, processes, proce
326326
'vmem': '32G',
327327
'queueName': 'cpu.q',
328328
'cores': 2,
329-
'pre': '', 'post': '',
329+
'pre': 'source ~/.bashrc',
330+
'post': '',
330331
'mpiCommand': 'mpiexec',
331332
#'log': "~/qsub/{}".format(jobName)
332333
'log': "{}/{}".format(os.getcwd(), jobName)
@@ -335,8 +336,9 @@ def gridSubmit(batch, pc, netParamsSavePath, jobName, simLabel, processes, proce
335336
sge_args.update(batch.runCfg)
336337

337338
#(batch, pc, netParamsSavePath, jobName, simLabel, processes, processFiles):
338-
sge_args['command'] = '%s -n $NSLOTS -hosts $(hostname) nrniv -python -mpi %s simConfig=%s netParams=%s' % (
339+
sge_args['command'] = '%s -n %i nrniv -python -mpi %s simConfig=%s netParams=%s' % (
339340
sge_args['mpiCommand'],
341+
sge_args['cores'],
340342
script,
341343
cfgSavePath,
342344
netParamsSavePath,

netpyne/batch/utils.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ def jobStringHPCSGE(jobName, walltime, vmem, queueName, cores, pre, command, pos
107107
#$ -o {log}.run
108108
#$ -e {log}.err
109109
{pre}
110-
source ~/.bashrc
111110
{command}
112111
{post}
113112
"""

0 commit comments

Comments
 (0)