if t_min is None: time_range = [0.0, t_max] else: time_range = [t_min, t_max] if not populations: populations = ['eachPop'] plot.plot_spike_histogram(spike_events_path, spike_events_namespace, include=populations, time_variable=t_variable, time_range=time_range, pop_rates=True, bin_size=bin_size, smooth=smooth, quantity=quantity, fontSize=font_size, overlay=overlay, graph_type=graph_type, progress=progress, include_artificial=include_artificial, saveFig=True, figFormat=save_format) if __name__ == '__main__': main(args=sys.argv[( utils.list_find(lambda x: os.path.basename(x) == script_name, sys.argv ) + 1):])
import os, sys import click from ca1 import env, utils, io_utils from ca1.env import Env @click.command() @click.option("--input-path", '-p', default='ca1_h5types.h5', type=click.Path(exists=True, file_okay=True, dir_okay=False)) def main(input_path): io_utils.show_celltypes(input_path) if __name__ == '__main__': main(args=sys.argv[(utils.list_find(lambda x: os.path.basename(x) == os.path.basename(__file__), sys.argv)+1):])
pop_start + i: { 'X Coordinate': np.asarray([x_coord], dtype=np.float32), 'Y Coordinate': np.asarray([y_coord], dtype=np.float32), 'Z Coordinate': np.asarray([z_coord], dtype=np.float32), 'U Coordinate': np.asarray([u_coord], dtype=np.float32), 'V Coordinate': np.asarray([v_coord], dtype=np.float32), 'L Coordinate': np.asarray([l_coord], dtype=np.float32) } for (i, (x_coord, y_coord, z_coord, u_coord, v_coord, l_coord)) in enumerate(sampled_coords) } append_cell_attributes(output_path, population, coords_dict, namespace=output_namespace, io_size=io_size, chunk_size=chunk_size, value_chunk_size=value_chunk_size, comm=comm0) comm.barrier() comm0.Free() if __name__ == '__main__': main(args=sys.argv[( list_find(lambda x: os.path.basename(x) == os.path.basename(__file__), sys.argv) + 1):])