Skip to content

Commit

Permalink
some minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kaeldai committed Jul 6, 2024
1 parent 4eb01f9 commit 1e67511
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions bmtk/builder/builder_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ def check_properties_across_ranks(properties, graph_type='node'):
phash = hashlib.md5(pval.encode('utf-8')).hexdigest()

elif isinstance(pval, (int, float, bool)):
if np.isnan(pval):
pval = 'NONE'
phash = pval

elif isinstance(pval, (list, tuple)):
Expand Down
2 changes: 1 addition & 1 deletion bmtk/simulator/pointnet/modules/spikes_inputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def initialize(self, sim):
io.log_exception(f'Could not find @spikes_generator function "{spikes_generator}" required for {self._name} inputs.')
spikes_func = py_modules.spikes_generator(name=spikes_generator)

self._spike_trains = SpikeTrains(cace_to_disk=False)
self._spike_trains = SpikeTrains(cache_to_disk=False)
for node in node_set.fetch_nodes():
timestamps = spikes_func(node, sim)
self._spike_trains.add_spikes(
Expand Down

0 comments on commit 1e67511

Please sign in to comment.