<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="FR-CH" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Dear Community,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-US">My name is Chris Schneider, and I am a postdoc working on EEG-based Brain-Computer Interfaces. Recently I discovered the extremely useful feature of transforming my datasets into a BIDS-compatible format for publishing
 the data on the OpenNEURO platform.<br>
<br>
I have figured out how to set all the fields I want and need, except one: the “HardwareFilters” for the eeg.json files. In the data2bids.m file it is written that this field should contain a <<List of hardware (amplifier) filters applied or ideally  key:value
 pairs of pre-applied filters and their parameter values>>. In the meg section the explanation is more detailed <<List of temporal hardware filters applied. Ideally key:value pairs of pre-applied hardware filters and their parameter values: e.g., {"HardwareFilters":
 {"Highpass RC filter": {"Half amplitude cutoff (Hz)": 0.0159, "Roll-off": "6dB/Octave"}}}. Write n/a if no hardware filters applied.>><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I know that the structure in the final .json file should look like this:<br>
<img width="244" height="107" style="width:2.5416in;height:1.1145in" id="_x0037_9965741-7568-4204-A6D0-8909F14D265F" src="cid:image001.png@01D56273.E266D9D0"><br>
<br>
However, I was not successful in finding the right way of setting the attribute for the save2bids.m. I tried copy-pasting the example given for the meg, but it resulted in an error complaining about the colons not being strings. Then I converted the information
 into MATLAB key:value pairs, but this also resulted in a parsing error when preparing the json structure. Finally, I also tried to just pass it as a string, but then it gets written as one continuous string also in the json – and not in the requested key-value
 pairs (as in the image above).<br>
<br>
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I am out of ideas now short of implementing my own script for writing the json file. I would really appreciate to know if anybody successfully set this attribute in the save2bids.m , and if so, how. Thank you already
 very much in advance!<br>
<br>
Best,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Chris<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;mso-fareast-language:FR-CH">Christoph Schneider, PhD<br>
Assistant de recherche<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;mso-fareast-language:FR-CH">Laboratoire de Neurorééducation aigüe (LNRA)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;mso-fareast-language:FR-CH">Département des Neurosciences Cliniques (DNC)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;mso-fareast-language:FR-CH">Centre Hospitalier Universitaire Vaudois (CHUV)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;mso-fareast-language:FR-CH">Lausanne, Switzerland<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>