Skip to content

Commit 78a393c

Browse files
committed
Rewrite ingested data reading to match MATLAB approach
The MATLAB-ingested data uses compressed segment files (ai_group*_seg.nbf_*) read via ndicompress, and channel metadata from channel_list.bin. The previous Python implementation tried to read a single VHSB data_file which doesn't exist for MATLAB-ingested cloud data. Key changes: - getchannelsepoch_ingested: reads channel_list.bin via database_openbinarydoc (triggers ndic:// cloud fetch) and parses with mfdaq_epoch_channel - samplerate_ingested: now returns (sr, offset, scale) tuple matching MATLAB, looks up channels by both type AND number - readchannels_epochsamples_ingested: reads compressed segment files using ndicompress.expand_ephys/expand_digital/expand_time, handles segment arithmetic and channel group decoding - epochsamples2times_ingested/epochtimes2samples_ingested: updated for new samplerate_ingested return signature https://claude.ai/code/session_01A7rAxYf5pSvs19iVJe3ncL
1 parent e54dd07 commit 78a393c

1 file changed

Lines changed: 170 additions & 137 deletions

File tree

0 commit comments

Comments
 (0)