import h5py

f = h5py.File("nodes_brunel.h5", "a")

nodes = f.create_group('nodes')

pop_e = nodes.create_group('pop_e')
pop_i = nodes.create_group('pop_i')

node_group_id = pop_e.create_dataset("node_group_id", (400,), dtype='i')
for i in range(0,400):
    node_group_id[i] = 0

node_group_index = pop_e.create_dataset("node_group_index", (400,), dtype='i')
for i in range(0,400):
    node_group_index[i] = i

node_type_id = pop_e.create_dataset("node_type_id", (400,), dtype='i')
for i in range(0,400):
    node_type_id[i] = 100


node_group_id = pop_i.create_dataset("node_group_id", (100,), dtype='i')
for i in range(0,100):
    node_group_id[i] = 0

node_group_index = pop_i.create_dataset("node_group_index", (100,), dtype='i')
for i in range(0,100):
    node_group_index[i] = i

node_type_id = pop_i.create_dataset("node_type_id", (100,), dtype='i')
for i in range(0,100):
    node_type_id[i] = 101

f.close()

8fb0145c6989e6ad1bc75d3a2443d2bfebbf673c
<mask token>

<mask token>
for i in range(0, 400):
    node_group_id[i] = 0
<mask token>
for i in range(0, 400):
    node_group_index[i] = i
<mask token>
for i in range(0, 400):
    node_type_id[i] = 100
<mask token>
for i in range(0, 100):
    node_group_id[i] = 0
<mask token>
for i in range(0, 100):
    node_group_index[i] = i
<mask token>
for i in range(0, 100):
    node_type_id[i] = 101
f.close()

<mask token>
f = h5py.File('nodes_brunel.h5', 'a')
nodes = f.create_group('nodes')
pop_e = nodes.create_group('pop_e')
pop_i = nodes.create_group('pop_i')
node_group_id = pop_e.create_dataset('node_group_id', (400,), dtype='i')
for i in range(0, 400):
    node_group_id[i] = 0
node_group_index = pop_e.create_dataset('node_group_index', (400,), dtype='i')
for i in range(0, 400):
    node_group_index[i] = i
node_type_id = pop_e.create_dataset('node_type_id', (400,), dtype='i')
for i in range(0, 400):
    node_type_id[i] = 100
node_group_id = pop_i.create_dataset('node_group_id', (100,), dtype='i')
for i in range(0, 100):
    node_group_id[i] = 0
node_group_index = pop_i.create_dataset('node_group_index', (100,), dtype='i')
for i in range(0, 100):
    node_group_index[i] = i
node_type_id = pop_i.create_dataset('node_type_id', (100,), dtype='i')
for i in range(0, 100):
    node_type_id[i] = 101
f.close()

import h5py
f = h5py.File('nodes_brunel.h5', 'a')
nodes = f.create_group('nodes')
pop_e = nodes.create_group('pop_e')
pop_i = nodes.create_group('pop_i')
node_group_id = pop_e.create_dataset('node_group_id', (400,), dtype='i')
for i in range(0, 400):
    node_group_id[i] = 0
node_group_index = pop_e.create_dataset('node_group_index', (400,), dtype='i')
for i in range(0, 400):
    node_group_index[i] = i
node_type_id = pop_e.create_dataset('node_type_id', (400,), dtype='i')
for i in range(0, 400):
    node_type_id[i] = 100
node_group_id = pop_i.create_dataset('node_group_id', (100,), dtype='i')
for i in range(0, 100):
    node_group_id[i] = 0
node_group_index = pop_i.create_dataset('node_group_index', (100,), dtype='i')
for i in range(0, 100):
    node_group_index[i] = i
node_type_id = pop_i.create_dataset('node_type_id', (100,), dtype='i')
for i in range(0, 100):
    node_type_id[i] = 101
f.close()

import h5py

f = h5py.File("nodes_brunel.h5", "a")

nodes = f.create_group('nodes')

pop_e = nodes.create_group('pop_e')
pop_i = nodes.create_group('pop_i')

node_group_id = pop_e.create_dataset("node_group_id", (400,), dtype='i')
for i in range(0,400):
    node_group_id[i] = 0

node_group_index = pop_e.create_dataset("node_group_index", (400,), dtype='i')
for i in range(0,400):
    node_group_index[i] = i

node_type_id = pop_e.create_dataset("node_type_id", (400,), dtype='i')
for i in range(0,400):
    node_type_id[i] = 100


node_group_id = pop_i.create_dataset("node_group_id", (100,), dtype='i')
for i in range(0,100):
    node_group_id[i] = 0

node_group_index = pop_i.create_dataset("node_group_index", (100,), dtype='i')
for i in range(0,100):
    node_group_index[i] = i

node_type_id = pop_i.create_dataset("node_type_id", (100,), dtype='i')
for i in range(0,100):
    node_type_id[i] = 101

f.close()
