Example #1
0
from __future__ import absolute_import, print_function
from copy import deepcopy

from grid_cell_model.submitting import flagparse
import noisefigs
from noisefigs.env import NoiseEnvironment

import config_original as config

parser = flagparse.FlagParser()
parser.add_flag('--pbumps_Iext_e')
parser.add_flag('--pbumps_Iext_e_vs_uni_GABA')
args = parser.parse_args()

if args.pbumps_Iext_e or args.all:
    new_config = deepcopy(config.get_config())
    new_config.update({
        'grids_data_root':
        None,
        'bump_data_root': ('simulation_data/i_surround/'
                           'gamma_bump_Iext_e_theta_vs_Iext_e_const'),
        'vel_data_root':
        None,
        'const_pos_data_root':
        None,
        'singleDataRoot':
        None,
        'noise_sigmas': [0, 150, 300],
        'even_shape':
        None,
        'output_dir':
    env = NoiseEnvironment(user_config=new_config)
    env.register_class(noisefigs.plotters.GridSweepsPlotter,
                       config={

                           'GridSweepsPlotter': {
                               'fname_prefix': "pastoll_pc_weight_3_",
                               'vmin': -0.4286,
                               'vmax': 0.8582,
                               'ann': None,
                           },
                       })
    env.plot()


if args.grids_pastoll_pc_weight or args.all:
    new_config = deepcopy(config.get_config())
    new_config.update({
        'bump_data_root': None,
        'grids_data_root': os.path.join('simulation_data',
                                        'i_surround',
                                        'pastoll_et_al_pc_max_rate_vs_weight',
                                        'grids'),
        'vel_data_root':  None,
        'const_pos_data_root': None,
        'singleDataRoot': None,

        'noise_sigmas': [150],
        'even_shape': None,
        'output_dir': 'panels',
    })
    env = NoiseEnvironment(user_config=new_config)
Example #3
0
from grid_cell_model.submitting import flagparse
import noisefigs
from noisefigs.env import NoiseEnvironment

import config_original as config

parser = flagparse.FlagParser()
parser.add_flag('--pbumps_sweep')
parser.add_flag('--pbumps_threshold_sweep')
parser.add_flag('--bump_examples')
parser.add_flag('--bump_examples_isbump')
parser.add_flag('--bump_examples_colorbar')
args = parser.parse_args()


env = NoiseEnvironment(user_config=config.get_config())

if args.pbumps_sweep or args.all:
    env.register_plotter(noisefigs.plotters.MainBumpFormationPlotter)

if args.pbumps_threshold_sweep or args.all:
    env.register_plotter(noisefigs.plotters.MainIsBumpPlotter)

if args.bump_examples or args.all:
    env.register_plotter(noisefigs.plotters.BumpExamplePlotter)

if args.bump_examples_isbump or args.all:
    env.register_plotter(noisefigs.plotters.IsBumpExamplePlotter)

if args.bump_examples_colorbar or args.all:
    env.register_plotter(noisefigs.plotters.BumpExampleColorbarPlotter)