From 1e67511fcbef984db05204109c885ca70a8b9d6a Mon Sep 17 00:00:00 2001 From: kaeldai Date: Sat, 6 Jul 2024 10:44:09 -0700 Subject: [PATCH] some minor fixes --- bmtk/builder/builder_utils.py | 2 ++ bmtk/simulator/pointnet/modules/spikes_inputs.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/bmtk/builder/builder_utils.py b/bmtk/builder/builder_utils.py index af0ff1f2..7137c07d 100644 --- a/bmtk/builder/builder_utils.py +++ b/bmtk/builder/builder_utils.py @@ -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)): diff --git a/bmtk/simulator/pointnet/modules/spikes_inputs.py b/bmtk/simulator/pointnet/modules/spikes_inputs.py index f193b039..f872ec45 100644 --- a/bmtk/simulator/pointnet/modules/spikes_inputs.py +++ b/bmtk/simulator/pointnet/modules/spikes_inputs.py @@ -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(