Skip to content

Commit a897b27

Browse files
committed
Infer STIM coordinate from populations
1 parent 8a8ce2f commit a897b27

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

src/miv_simulator/interface/neuroh5_graph.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,14 @@ def __call__(self) -> None:
6363
self.graph.import_h5types(self.architecture.config.filepath)
6464
self.graph.import_soma_coordinates(
6565
self.architecture.config.filepath,
66-
populations=list(populations),
66+
populations=read_population_names(self.architecture.config.filepath),
6767
)
6868
for p in self.synapse_forest.keys():
6969
self.graph.import_synapse_attributes(
7070
p,
7171
self.synapse_forest[p].output_filepath,
7272
self.synapses[p].output_filepath,
7373
)
74-
self.graph.copy_stim_coordinates()
7574

7675
for p, c in self.connections.items():
7776
self.graph.import_projections(p, c.output_filepath)

src/miv_simulator/utils/io.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1177,12 +1177,3 @@ def import_projections(self, population: str, src: str):
11771177
f_dst.create_group("Projections")
11781178
with h5py.File(src, "r") as f_src:
11791179
copy_dataset(f_src, f_dst, projection_dset_path)
1180-
1181-
def copy_stim_coordinates(self):
1182-
with h5py.File(self.cells_filepath, "a") as f:
1183-
if "/Populations/STIM" not in f:
1184-
return
1185-
f.copy(
1186-
"/Populations/STIM/Generated Coordinates",
1187-
"/Populations/STIM/Coordinates",
1188-
)

0 commit comments

Comments
 (0)