Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion realtime_decoder/decoder_process.py
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ def _init_decoder(self):
config = self._config
rank = self.rank

if config['algorithm'] in ('clusterless_decoder, clusterless_classifier'):
if config['algorithm'] in ('clusterless_decoder', 'clusterless_classifier'):
self._decoder = ClusterlessDecoder(
rank, config,
position.PositionBinStruct(
Expand Down
6 changes: 5 additions & 1 deletion realtime_decoder/encoder_process.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,10 +229,14 @@ def get_joint_prob(self, mark):
# print("")
# print(weights)

# `density=` (formerly `normed=`) intentionally omitted: we want the
# raw weighted sum per bin, which is the default behavior. `normed=`
# was removed in NumPy 1.24, which broke this call on any modern
# install.
hist, hist_edges = np.histogram(
a=positions,
bins=self._pos_bin_struct.pos_bin_edges,
weights=weights, normed=False
weights=weights,
)

hist += 0.0000001
Expand Down