Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/type_fix' into action-dash
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian-B committed Feb 19, 2025
2 parents 9d791d8 + f8846b8 commit e38686c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -176,14 +176,15 @@ def _get_post_neurons(
f"_fixednumberpost-conn.csv"
print('Output post-connectivity to ', filename)
with open(filename, 'w', encoding="utf-8") as file_handle:
numpy.savetxt(file_handle,
numpy.savetxt(file_handle, # type: ignore[arg-type]
[(synapse_info.n_pre_neurons,
synapse_info.n_post_neurons,
self.__n_post)],
fmt="%u,%u,%u")
for post_neuron in self.__post_neurons:
numpy.savetxt(
file_handle, post_neuron,
file_handle, # type: ignore[arg-type]
post_neuron,
fmt=("%u," * (self.__n_post - 1) + "%u"))

return self.__post_neurons
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,15 +176,15 @@ def _get_pre_neurons(self, synapse_info: SynapseInformation) -> List[
f"{synapse_info.post_population.label}" \
f"_fixednumberpre-conn.csv"
with open(filename, 'w', encoding="utf-8") as file_handle:
numpy.savetxt(file_handle,
numpy.savetxt(file_handle, # type: ignore[arg-type]
[(synapse_info.n_pre_neurons,
synapse_info.n_post_neurons,
self.__n_pre)],
fmt="%u,%u,%u")
for pre_neuron in self.__pre_neurons:
numpy.savetxt(
file_handle, pre_neuron[None, :],
fmt=("%u," * (self.__n_pre - 1) + "%u"))
numpy.savetxt(file_handle, # type: ignore[arg-type]
pre_neuron[None, :],
fmt=("%u," * (self.__n_pre - 1) + "%u"))

return self.__pre_neurons

Expand Down

0 comments on commit e38686c

Please sign in to comment.