<div dir="ltr">Yes, it is open source, I have attached it in case Brian or Bob are interested in it.  At the moment it is written as a filter so I can convert a bunch of data at once.<div><br></div><div>Carlo</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Oct 17, 2022 at 3:22 PM Brown, Matthew <<a href="mailto:matthew.brown@ubc.ca">matthew.brown@ubc.ca</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="msg7620959742197132228">





<div lang="EN-CA">
<div class="m_7620959742197132228WordSection1">
<p class="MsoNormal"><span style="font-family:"Book Antiqua",serif">Carlo<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Book Antiqua",serif"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Book Antiqua",serif">I’d be happy to see your code, is it open-source? It would probably be more useful to Bob though, to save him some time.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Book Antiqua",serif"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Book Antiqua",serif">Dr. Matthew L. Brown  (he/him, they/them)<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Book Antiqua",serif">Lab Technician V (Chemistry, Crystallography)<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Book Antiqua",serif">Office: 250-807-8365 | WD Lab (PXRD): x376665<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Book Antiqua",serif"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Book Antiqua",serif">UBC School of Engineering<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Book Antiqua",serif">1540 Innovation Dr.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Book Antiqua",serif">Kelowna, BC<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Book Antiqua",serif">V1V 1V7<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Book Antiqua",serif"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span lang="EN-US">From:</span></b><span lang="EN-US"> Carlo Segre <<a href="mailto:segre@iit.edu" target="_blank">segre@iit.edu</a>>
<br>
<b>Sent:</b> Monday, October 17, 2022 1:19 PM<br>
<b>To:</b> Brown, Matthew <<a href="mailto:matthew.brown@ubc.ca" target="_blank">matthew.brown@ubc.ca</a>><br>
<b>Cc:</b> <a href="mailto:gsas-ii@aps.anl.gov" target="_blank">gsas-ii@aps.anl.gov</a><br>
<b>Subject:</b> Re: [Ext] [GSAS-II] Bruker brml files<u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
<table border="0" cellspacing="0" cellpadding="0" style="border-collapse:collapse">
<tbody>
<tr>
<td style="padding:0.75pt 0.75pt 0.75pt 0in">
<p class="MsoNormal"><span style="font-size:9pt;font-family:Arial,sans-serif;color:black;background:rgb(255,236,179)">[<strong><span style="font-family:Arial,sans-serif">CAUTION:</span></strong> Non-UBC Email]</span><span><u></u><u></u></span></p>
</td>
</tr>
</tbody>
</table>
<div>
<p class="MsoNormal"><span style="font-size:10pt">Hi Matthew:<u></u><u></u></span></p>
<div>
<p class="MsoNormal"><span style="font-size:10pt"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10pt">I have written a python program that extracts a gsas file from the Bruker brml files.  I am happy to share it.  The brml file is simply a zip file with an XML folder with all the information about the experiment.<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10pt"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10pt">Carlo  <u></u><u></u></span></p>
</div>
</div>
<p class="MsoNormal"><span style="font-size:10pt"><u></u> <u></u></span></p>
<div>
<div>
<p class="MsoNormal"><span style="font-size:10pt">On Mon, Oct 17, 2022 at 1:18 PM Brown, Matthew via GSAS-II <</span><a href="mailto:gsas-ii@aps.anl.gov" target="_blank"><span style="font-size:10pt">gsas-ii@aps.anl.gov</span></a><span style="font-size:10pt">> wrote:<u></u><u></u></span></p>
</div>
<blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0in 0in 0in 6pt;margin:5pt 0in 5pt 4.8pt">
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-family:"Book Antiqua",serif">Salutations</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:"Book Antiqua",serif"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:"Book Antiqua",serif">I hope I’m sending this to the right place. I was at the Canadian Powder Diffraction Workshop last week, and noticed that GSAS-II
 doesn’t seem to support *.brml files, what my Bruker PXRD saves as by default. That format is just a zip file full of xml wearing a fancy hat, so it is quite easy to parse; the python unzip library opens it perfectly. I’m actually doing so for a project I’m
 working on.(1)</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:"Book Antiqua",serif"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:"Book Antiqua",serif">If GSAS-II wanted to support *.brml files, I’d be glad to help: if someone gave me a list of what GSAS-II needs to extract from the
 file, I could work out where in the XML that is stored for you. I might even be able to write up the extractor if you told me what output formats you, but I’m not the world’s greatest programmer(2) so I’m not sure you’d want me directly contributing code.
   </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:"Book Antiqua",serif"> </span><u></u><u></u></p>
<ol start="1" type="1">
<li class="m_7620959742197132228m-2234072807973040177msolistparagraph">
<span style="font-size:10pt;font-family:"Book Antiqua",serif">Since many of you know I’m very new to PXRD, don’t worry, I’m not trying to do any actual calculations. I just got tired of looking up the settings I’d run every experiment at in EVA each time,
 and worried that I would make a typo and the user would report the wrong parameters in their paper, so I wrote up a little python tool that extracts those numbers into a format I can just copy and paste and send to the user.
</span><span style="font-size:10pt"><u></u><u></u></span></li><li class="m_7620959742197132228m-2234072807973040177msolistparagraph">
<span style="font-size:10pt;font-family:"Book Antiqua",serif">My script doesn’t even use an XML parser, I just brute force loop over RawData0.xml using stuff like “elif line.startswith('<TimePerStep>'):”
</span><span style="font-size:10pt"><u></u><u></u></span></li></ol>
<p class="MsoNormal"><span style="font-family:"Book Antiqua",serif"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:"Book Antiqua",serif">Let me know if me documenting any of this would be useful, and I hope I can help,
</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:"Book Antiqua",serif"> </span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Book Antiqua",serif">Dr. Matthew L. Brown  (he/him, they/them)</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Book Antiqua",serif">Lab Technician V (Chemistry, Crystallography)</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Book Antiqua",serif">Office: 250-807-8365 | WD Lab (PXRD): x376665</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Book Antiqua",serif"> </span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Book Antiqua",serif">UBC School of Engineering</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Book Antiqua",serif">1540 Innovation Dr.</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Book Antiqua",serif">Kelowna, BC</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Book Antiqua",serif">V1V 1V7</span><u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
</div>
<p class="MsoNormal"><span style="font-size:10pt">_______________________________________________<br>
GSAS-II mailing list<br>
</span><a href="mailto:GSAS-II@aps.anl.gov" target="_blank"><span style="font-size:10pt">GSAS-II@aps.anl.gov</span></a><span style="font-size:10pt"><br>
</span><a href="https://mailman.aps.anl.gov/mailman/listinfo/gsas-ii" target="_blank"><span style="font-size:10pt">https://mailman.aps.anl.gov/mailman/listinfo/gsas-ii</span></a><span style="font-size:10pt"><u></u><u></u></span></p>
</div>
</blockquote>
</div>
<p class="MsoNormal"><span style="font-size:10pt"><br clear="all">
<u></u><u></u></span></p>
<div>
<p class="MsoNormal"><span style="font-size:10pt"><u></u> <u></u></span></p>
</div>
<p class="MsoNormal"><span style="font-size:10pt">-- <u></u><u></u></span></p>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:10pt">Carlo U. Segre (he/him) -- Duchossois Leadership Professor of Physics<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10pt">Professor of Materials Science & Engineering<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10pt">Director, Center for Synchrotron Radiation Research and Instrumentation<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10pt">Illinois Institute of Technology<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10pt">Voice: 312.567.3498            Fax: 312.567.3494<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><a href="mailto:segre@iit.edu" target="_blank"><span style="font-size:10pt">segre@iit.edu</span></a><span style="font-size:10pt">  
</span><a href="http://phys.iit.edu/~segre" target="_blank"><span style="font-size:10pt">http://phys.iit.edu/~segre</span></a><span style="font-size:10pt">  
</span><a href="mailto:segre@debian.org" target="_blank"><span style="font-size:10pt">segre@debian.org</span></a><span style="font-size:10pt"><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10pt"><u></u> <u></u></span></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>

</div></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Carlo U. Segre (he/him) -- Duchossois Leadership Professor of Physics</div><div>Professor of Materials Science & Engineering</div><div>Director, Center for Synchrotron Radiation Research and Instrumentation</div><div>Illinois Institute of Technology</div><div>Voice: 312.567.3498            Fax: 312.567.3494</div><div><a href="mailto:segre@iit.edu" target="_blank">segre@iit.edu</a>   <a href="http://phys.iit.edu/~segre" target="_blank">http://phys.iit.edu/~segre</a>   <a href="mailto:segre@debian.org" target="_blank">segre@debian.org</a></div><div><br></div></div></div></div></div>