Skip to content
This repository was archived by the owner on Mar 11, 2026. It is now read-only.
This repository was archived by the owner on Mar 11, 2026. It is now read-only.

pycbsdk.examples.print_rates with --skip_startup reports Firing rate = 0 with specific dataset #1

@paoloviviani

Description

@paoloviviani

I'm running nPlay server and pycbsdk print_rates example on the same machine, i.e.,

Terminal 1

$ /opt/CBNSP/bin/nPlayServer --network inst=127.0.0.1:51001 --autostart sampleData.nev 

Terminal 2

$ python -m pycbsdk.examples.print_rates --inst_addr 127.0.0.1 --inst_port 51001 -v   --protocol=4.1
Found 128 channels with spiking enabled and 0 with spiking disabled.
0 of the spike-enabled channels are using auto-thresholding.
Firing rate:    0.00 Hz +/- 0.00 (0.00 - 0.00)
0.39 +/- 747.22,        15.83 +/- 756.45,       15.10 +/- 739.81,       -0.17 +/- 0.37
12.97 +/- 747.33,       18.86 +/- 754.88,       11.35 +/- 740.68,       -0.17 +/- 0.37
[....]

and everything works as expected.

If I try to skip the startup on the pycbsdk side (i.e., only listening for incoming packets, using autostart on the nPlay side), some firing rate is reported for the standard sampleData.nev file (test_data.zip), although no channel avg/stddev is reported between firing rates.

$ python -m pycbsdk.examples.print_rates --inst_addr 127.0.0.1 --inst_port 51001 -v --skip_startup  --protocol=4.1
Found 128 channels with spiking enabled and 0 with spiking disabled.
0 of the spike-enabled channels are using auto-thresholding.
Firing rate:    0.00 Hz +/- 0.00 (0.00 - 0.00)
Firing rate:    25.33 Hz +/- 43.87 (0.00 - 102.00)

If I try to use from nPlay the input file Cyril001.nev (also attached), then I get firing rate 0, even though it works without the --skip_startup.

Terminal 1

$ /opt/CBNSP/bin/nPlayServer --network inst=127.0.0.1:51001 --autostart ~/Documents/demo_pycbsdk/Cyril001.nev 

Terminal 2

$ python -m pycbsdk.examples.print_rates --inst_addr 127.0.0.1 --inst_port 51001 -v --skip_startup  --protocol=4.1
Found 128 channels with spiking enabled and 0 with spiking disabled.
0 of the spike-enabled channels are using auto-thresholding.
Firing rate:    0.00 Hz +/- 0.00 (0.00 - 0.00)
Firing rate:    0.00 Hz +/- 0.00 (0.00 - 0.00)
Firing rate:    0.00 Hz +/- 0.00 (0.00 - 0.00)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions