Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Read pnsSet.xml files #26

Open
ephathaway opened this issue Feb 10, 2020 · 3 comments
Open

Read pnsSet.xml files #26

ephathaway opened this issue Feb 10, 2020 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@ephathaway
Copy link
Member

We would like to add functionality to read pnsSet.xml files. These files are generated when recording with the Physio16 kit and contain info about the sensors included. This file is very similar to sensorLayout.xml, so we could potentially create a superclass in mffpy/bin_files.py that encompasses all "sensor files" and then create subclasses for SensorLayout and PNSSet.

@ephathaway ephathaway added the enhancement New feature or request label Feb 10, 2020
@ephathaway ephathaway self-assigned this Feb 10, 2020
@jusjusjus
Copy link
Collaborator

@ephathaway , is this still something we need to do? Can you add some "pnsSet.xml" example here?

@ephathaway
Copy link
Member Author

@jusjusjus, yes this is fairly high priority for me anyway because it will support what I am doing with MFF reading in MNE. Being able to parse pnsSet.xml gives us the names of the PNS channels (ECG, EMG, etc.). Otherwise we have to guess what they are or just give them generic names.

@ephathaway
Copy link
Member Author

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<PNSSet xmlns="http://www.egi.com/pnsSet_mff" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <name>Physio 16 set 60hz 1.0</name>
    <ampSeries>400</ampSeries>
    <sensors>
        <sensor>
            <name>ECG</name>
            <number>0</number>
            <unit>uV</unit>
            <psgType>0</psgType>
            <mapping>1</mapping>
            <samplingRate>0</samplingRate>
            <sensorType>ECG</sensorType>
            <highpass>0.3000000119</highpass>
            <lowpass>70</lowpass>
            <notch>60</notch>
            <groupNumber>1</groupNumber>
            <gain>1</gain>
            <defaultDisplayAmplitude>7.5</defaultDisplayAmplitude>
            <highpassDisplay>0.3000000119</highpassDisplay>
            <lowpassDisplay>70</lowpassDisplay>
            <notchDisplay>60</notchDisplay>
            <color>0.0000,0.0000,0.0000,1.0000</color>
            <positiveUp>false</positiveUp>
        </sensor>
        <sensor>
            <name>EMG</name>
            <number>1</number>
            <unit>uV</unit>
            <psgType>0</psgType>
            <mapping>2</mapping>
            <samplingRate>0</samplingRate>
            <sensorType>EMG</sensorType>
            <highpass>10</highpass>
            <lowpass>100</lowpass>
            <notch>60</notch>
            <groupNumber>1</groupNumber>
            <gain>1</gain>
            <defaultDisplayAmplitude>7.5</defaultDisplayAmplitude>
            <highpassDisplay>10</highpassDisplay>
            <lowpassDisplay>100</lowpassDisplay>
            <notchDisplay>60</notchDisplay>
            <color>0.0000,0.0000,0.0000,1.0000</color>
            <positiveUp>false</positiveUp>
        </sensor>
    </sensors>
</PNSSet>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants