sccn / bva-io

Routines for loading and saving data files in Brain Vision Data Exchange format (export and import of Brain Vision Analyzer MATLAB files developed by Arnaud Delorme)
23 stars 11 forks source link

BV data in int_32 format? #21

Open olafdimigen opened 1 year ago

olafdimigen commented 1 year ago

Exported epoched data from BV-Analyzer and would like to read them in with pop_loadbv. But exported data is in int 32-bit format, which is not supported by pop_loadbv.

[Binary Infos]
BinaryFormat=INT_32
UseBigEndianOrder=NO

Any solution for this? I did not see an option to change export bit range in BVA or to export as float-32. Any input appreciated.

arnodelorme commented 1 year ago

Would you mind sharing a file. We will add support if it not too difficult.

olafdimigen commented 1 year ago

Thanks! Here is a file. Epoched data was apparently exported using Analyzer's GenericDataExport.

https://www.dropbox.com/s/j7mus468a5v4hec/example_BVAexportedData_int32.zip?dl=1

arnodelorme commented 1 year ago

Would it be OK to add it to our test cases?

olafdimigen commented 1 year ago

Since it's collaborator data (not my own), I am unfamiliar with exact restrictions, would be better if not added to unit testing cases (sorry)

arnodelorme commented 1 year ago

OK, thank you. Ramon said he would look into it in the next few weeks.

arnodelorme commented 1 year ago

@nucleuscub

crisglav commented 1 year ago

I had the same issue. I think the problem would be solved by adding here https://github.com/sccn/bva-io/blob/a61a74aba5779a0e5412cbe5f50774d674db5c69/pop_loadbv.m#L103

the line case 'int_32', binformat = 'int32'; bps = 4;