Skip to content

Commit

Permalink
Bump dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
frthjf committed Jan 6, 2025
1 parent a17dcb5 commit 82cac9d
Show file tree
Hide file tree
Showing 4 changed files with 1,112 additions and 641 deletions.
6 changes: 4 additions & 2 deletions src/miv_simulator/interface/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ def launch(self):
30,
sum(config.cell_distributions[population].values()),
),
"write_size": sum(config.cell_distributions[population].values()) // 32,
"write_size": sum(config.cell_distributions[population].values())
// 32,
"chunk_size": _lp(
0,
5e5,
Expand Down Expand Up @@ -143,7 +144,8 @@ def launch(self):
20,
sum(config.cell_distributions[population].values()),
),
"write_size": sum(config.cell_distributions[population].values()) // 32,
"write_size": sum(config.cell_distributions[population].values())
// 32,
"chunk_size": _lp(
0,
5e5,
Expand Down
1 change: 0 additions & 1 deletion src/miv_simulator/stimulus.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,6 @@ def get_equilibration(env: AbstractEnv) -> Tuple[ndarray, int]:
/ env.stimulus_config["Temporal Resolution"]
)
from scipy.signal.windows import hann


equilibrate_hann = hann(2 * equilibrate_len)[:equilibrate_len]
equilibrate = (equilibrate_hann, equilibrate_len)
Expand Down
8 changes: 5 additions & 3 deletions src/miv_simulator/utils/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -1155,7 +1155,7 @@ def import_synapse_attributes(
):
forest_dset_path = f"/Populations/{population}/Trees"
forest_syns_dset_path = f"/Populations/{population}/Synapse Attributes"

with h5py.File(self.cells_filepath, "a") as f_dst:
with h5py.File(forest_file, "r") as f_src:
copy_dataset(f_src, f_dst, forest_dset_path)
Expand All @@ -1174,5 +1174,7 @@ def copy_stim_coordinates(self):
with h5py.File(self.cells_filepath, "a") as f:
if "/Populations/STIM" not in f:
return
f.copy("/Populations/STIM/Generated Coordinates", "/Populations/STIM/Coordinates")

f.copy(
"/Populations/STIM/Generated Coordinates",
"/Populations/STIM/Coordinates",
)
Loading

0 comments on commit 82cac9d

Please sign in to comment.