#!/usr/bin/env python
'''
These are the same simulations as submit_param_sweep_grids, except that the
external theta current is replaced by a current with a constant amplitude that
delivers the same charge per theta cycle.
'''
import numpy as np

from grid_cell_model.submitting.noise import SubmissionParser
from param_sweep import submitParamSweep, getBumpCurrentSlope
from default_params import defaultParameters as dp

parser = SubmissionParser()
parser.add_argument('--extra_qsub_params', type=str, default='')
o = parser.parse_args()

for noise_sigma in parser.noise_sigmas:
    p = dp.copy()
    p['noise_sigma'] = noise_sigma  # pA

    # Submitting
    ENV = o.env
    simRootDir = o.where
    simLabel = '{0}pA'.format(int(p['noise_sigma']))
    appName = 'simulation_grids.py'
    rtLimit = o.rtLimit or '05:00:00'
    numCPU = 1
    blocking = True
    timePrefix = False
    numRepeat = 1
    dry_run = o.dry_run
    - Bump is initialized, in the beginning [0, theta_start_t], by a very
      strong place cell input.
    - The bump moves, with a constant speed, following **vertical** direction.
      for the duration of the simulation.
    - The speed is controlled by IvelMax and dIvel parameters (currently
      [0, 100] pA, with a step of 10 pA
    - At the end of each run, spikes from E and I population are exported to
      the output file.
'''
import numpy as np

from grid_cell_model.submitting.noise import SubmissionParser
from param_sweep import submitParamSweep
from default_params import defaultParameters as dp

parser = SubmissionParser()
o = parser.parse_args()

for noise_sigma in parser.noise_sigmas:
    p = dp.copy()
    p['noise_sigma'] = noise_sigma # pA

    # Submitting
    ENV         = o.env
    simRootDir  = o.where
    simLabel    = '{0}pA'.format(int(p['noise_sigma']))
    appName     = 'simulation_velocity.py'
    rtLimit     = o.rtLimit or '12:00:00'
    numCPU      = 1
    blocking    = True
    timePrefix  = False
#!/usr/bin/env python
'''
These are the same simulations as submit_param_sweep_grids, except that the
external theta current is replaced by a current with a constant amplitude that
delivers the same charge per theta cycle.
'''
import numpy as np

from grid_cell_model.submitting.noise import SubmissionParser
from param_sweep    import submitParamSweep, getBumpCurrentSlope
from default_params import defaultParameters as dp

parser = SubmissionParser()
parser.add_argument('--extra_qsub_params', type=str, default='')
o = parser.parse_args()

for noise_sigma in parser.noise_sigmas:
    p = dp.copy()
    p['noise_sigma'] = noise_sigma # pA

    # Submitting
    ENV         = o.env
    simRootDir  = o.where
    simLabel    = '{0}pA'.format(int(p['noise_sigma']))
    appName     = 'simulation_grids.py'
    rtLimit     = o.rtLimit or '05:00:00'
    numCPU      = 1
    blocking    = True
    timePrefix  = False
    numRepeat   = 1
    dry_run     = o.dry_run
#!/usr/bin/env python
'''Submit job(s) to the cluster/workstation: export connections to file'''
from __future__ import absolute_import, print_function

import numpy as np
from grid_cell_model.submitting.noise import SubmissionParser
from grid_cell_model.submitting.factory import SubmitterFactory
from grid_cell_model.submitting.arguments import ArgumentCreator

from default_params import defaultParameters as dp

parser = SubmissionParser()
parser.add_argument('--probabilistic_synapses',
                    type=int,
                    choices=(0, 1),
                    default=0,
                    help=('Whether the network should generate '
                          'synapse weights probabilistically.'))
o = parser.parse_args()

p = dp.copy()

# Submitting
ENV = o.env
simRootDir = o.where
simLabel = 'connections'
appName = '../common/simulation_connections.py'
rtLimit = o.rtLimit
numCPU = o.nCPU
blocking = True
timePrefix = False
#!/usr/bin/env python
'''Submit job(s) to the cluster/workstation: export connections to file'''
from __future__ import absolute_import, print_function

import numpy as np
from grid_cell_model.submitting.noise import SubmissionParser
from grid_cell_model.submitting.factory import SubmitterFactory
from grid_cell_model.submitting.arguments import ArgumentCreator

from default_params import defaultParameters as dp

parser = SubmissionParser()
parser.add_argument('--probabilistic_synapses', type=int, choices=(0, 1),
                    default=0, help=('Whether the network should generate '
                                     'synapse weights probabilistically.'))
o = parser.parse_args()

p = dp.copy()

# Submitting
ENV         = o.env
simRootDir  = o.where
simLabel    = 'connections'
appName     = '../common/simulation_connections.py'
rtLimit     = o.rtLimit
numCPU      = o.nCPU
blocking    = True
timePrefix  = False
numRepeat   = 1
dry_run     = o.dry_run