Skip to content

PMU files from version XA30 #8

@alexsayal

Description

@alexsayal

Hello all,

Our MRI console software was recently updated to XA30. This led us to use ideacmdtool to record physiological signals, which are generated in .pmu, .puls, .ecg, and .resp formats.

I tried using the pmu2bidsphysio function to process them, but I get the following error:

Warning: File 'PL01R1AP.puls' does not seem to be a valid VB15A PMU file: Expected: 'not 5002'; got: '5002 [...]'
Traceback (most recent call last):
  File "/home/alexandresayal/miniconda3/bin/pmu2bidsphysio", line 8, in <module>
    sys.exit(main())
  File "/home/alexandresayal/miniconda3/lib/python3.8/site-packages/bidsphysio/pmu2bids/pmu2bidsphysio.py", line 620, in main
    physio_data = pmu2bids(args.infiles, verbose=args.verbose)
  File "/home/alexandresayal/miniconda3/lib/python3.8/site-packages/bidsphysio/pmu2bids/pmu2bidsphysio.py", line 120, in pmu2bids
    physio_type, MDHTime, sampling_rate, physio_signal = readpmu(f, verbose=verbose)
  File "/home/alexandresayal/miniconda3/lib/python3.8/site-packages/bidsphysio/pmu2bids/pmu2bidsphysio.py", line 203, in readpmu
    return readVE11Cpmu(physio_file)
  File "/home/alexandresayal/miniconda3/lib/python3.8/site-packages/bidsphysio/pmu2bids/pmu2bidsphysio.py", line 301, in readVE11Cpmu
    physio_signal = parserawPMUsignal(raw_signal)
  File "/home/alexandresayal/miniconda3/lib/python3.8/site-packages/bidsphysio/pmu2bids/pmu2bidsphysio.py", line 545, in parserawPMUsignal
    signal = [int(v) for v in signal]
  File "/home/alexandresayal/miniconda3/lib/python3.8/site-packages/bidsphysio/pmu2bids/pmu2bidsphysio.py", line 545, in <listcomp>
    signal = [int(v) for v in signal]
ValueError: invalid literal for int() with base 10: ''

I deduce that the files have somehow changed in this version and hence are not compatible. I attach these files.

PL01R1AP.zip

I thank you in advance for any help you can provide regarding this problem.

All the best,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions