<div dir="ltr">Hi Matthew:<div><br></div><div>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.</div><div><br></div><div>Carlo  </div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Oct 17, 2022 at 1:18 PM Brown, Matthew via GSAS-II <<a href="mailto:gsas-ii@aps.anl.gov">gsas-ii@aps.anl.gov</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="msg-2234072807973040177">





<div lang="EN-CA">
<div class="m_-2234072807973040177WordSection1">
<p class="MsoNormal"><span style="font-family:"Book Antiqua",serif">Salutations<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 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)<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">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.   <u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Book Antiqua",serif"><u></u> <u></u></span></p>
<ol style="margin-top:0in" start="1" type="1">
<li class="m_-2234072807973040177MsoListParagraph" style="margin-left:0in"><span style="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. <u></u><u></u></span></li><li class="m_-2234072807973040177MsoListParagraph" style="margin-left:0in"><span style="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>'):”
<u></u><u></u></span></li></ol>
<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">Let me know if me documenting any of this would be useful, and I hope I can help,
<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"><u></u> <u></u></p>
</div>
</div>

_______________________________________________<br>
GSAS-II mailing list<br>
<a href="mailto:GSAS-II@aps.anl.gov" target="_blank">GSAS-II@aps.anl.gov</a><br>
<a href="https://mailman.aps.anl.gov/mailman/listinfo/gsas-ii" rel="noreferrer" target="_blank">https://mailman.aps.anl.gov/mailman/listinfo/gsas-ii</a></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>