<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=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<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;}
@font-face
        {font-family:"Book Antiqua";
        panose-1:2 4 6 2 5 3 5 3 3 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
p.m-2234072807973040177msolistparagraph, li.m-2234072807973040177msolistparagraph, div.m-2234072807973040177msolistparagraph
        {mso-style-name:m_-2234072807973040177msolistparagraph;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Book Antiqua",serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:269092572;
        mso-list-template-ids:-1711638272;}
@list l0:level1
        {mso-level-tab-stop:.5in;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level2
        {mso-level-tab-stop:1.0in;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level3
        {mso-level-tab-stop:1.5in;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level4
        {mso-level-tab-stop:2.0in;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level5
        {mso-level-tab-stop:2.5in;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level6
        {mso-level-tab-stop:3.0in;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level7
        {mso-level-tab-stop:3.5in;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level8
        {mso-level-tab-stop:4.0in;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level9
        {mso-level-tab-stop:4.5in;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l1
        {mso-list-id:437987676;
        mso-list-template-ids:-1394711526;}
ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
--></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="EN-CA" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-family:"Book Antiqua",serif;mso-fareast-language:EN-US">Carlo<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Book Antiqua",serif;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Book Antiqua",serif;mso-fareast-language:EN-US">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.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Book Antiqua",serif;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Book Antiqua",serif">Dr. Matthew L. Brown  (he/him, they/them)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Book Antiqua",serif">Lab Technician V (Chemistry, Crystallography)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Book Antiqua",serif">Office: 250-807-8365 | WD Lab (PXRD): x376665<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Book Antiqua",serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Book Antiqua",serif">UBC School of Engineering<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Book Antiqua",serif">1540 Innovation Dr.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Book Antiqua",serif">Kelowna, BC<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Book Antiqua",serif">V1V 1V7<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Book Antiqua",serif;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span lang="EN-US">From:</span></b><span lang="EN-US"> Carlo Segre <segre@iit.edu>
<br>
<b>Sent:</b> Monday, October 17, 2022 1:19 PM<br>
<b>To:</b> Brown, Matthew <matthew.brown@ubc.ca><br>
<b>Cc:</b> gsas-ii@aps.anl.gov<br>
<b>Subject:</b> Re: [Ext] [GSAS-II] Bruker brml files<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" style="border-collapse:collapse">
<tbody>
<tr>
<td style="padding:.75pt .75pt .75pt 0in">
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:black;background:#FFECB3;mso-fareast-language:EN-US">[<strong><span style="font-family:"Arial",sans-serif">CAUTION:</span></strong> Non-UBC Email]</span><span style="mso-fareast-language:EN-US"><o:p></o:p></span></p>
</td>
</tr>
</tbody>
</table>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt">Hi Matthew:<o:p></o:p></span></p>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt">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.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt">Carlo  <o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><span style="font-size:10.0pt"><o:p> </o:p></span></p>
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt">On Mon, Oct 17, 2022 at 1:18 PM Brown, Matthew via GSAS-II <</span><a href="mailto:gsas-ii@aps.anl.gov"><span style="font-size:10.0pt">gsas-ii@aps.anl.gov</span></a><span style="font-size:10.0pt">> wrote:<o:p></o:p></span></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt">
<div>
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-family:"Book Antiqua",serif">Salutations</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-family:"Book Antiqua",serif"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><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><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-family:"Book Antiqua",serif"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><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><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-family:"Book Antiqua",serif"> </span><o:p></o:p></p>
<ol start="1" type="1">
<li class="m-2234072807973040177msolistparagraph" style="mso-list:l0 level1 lfo3">
<span style="font-size:10.0pt;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:10.0pt"><o:p></o:p></span></li><li class="m-2234072807973040177msolistparagraph" style="mso-list:l0 level1 lfo3">
<span style="font-size:10.0pt;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:10.0pt"><o:p></o:p></span></li></ol>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-family:"Book Antiqua",serif"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><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><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-family:"Book Antiqua",serif"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US" style="font-family:"Book Antiqua",serif">Dr. Matthew L. Brown  (he/him, they/them)</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US" style="font-family:"Book Antiqua",serif">Lab Technician V (Chemistry, Crystallography)</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US" style="font-family:"Book Antiqua",serif">Office: 250-807-8365 | WD Lab (PXRD): x376665</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US" style="font-family:"Book Antiqua",serif"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US" style="font-family:"Book Antiqua",serif">UBC School of Engineering</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US" style="font-family:"Book Antiqua",serif">1540 Innovation Dr.</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US" style="font-family:"Book Antiqua",serif">Kelowna, BC</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US" style="font-family:"Book Antiqua",serif">V1V 1V7</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><span style="font-size:10.0pt">_______________________________________________<br>
GSAS-II mailing list<br>
</span><a href="mailto:GSAS-II@aps.anl.gov" target="_blank"><span style="font-size:10.0pt">GSAS-II@aps.anl.gov</span></a><span style="font-size:10.0pt"><br>
</span><a href="https://mailman.aps.anl.gov/mailman/listinfo/gsas-ii" target="_blank"><span style="font-size:10.0pt">https://mailman.aps.anl.gov/mailman/listinfo/gsas-ii</span></a><span style="font-size:10.0pt"><o:p></o:p></span></p>
</div>
</blockquote>
</div>
<p class="MsoNormal"><span style="font-size:10.0pt"><br clear="all">
<o:p></o:p></span></p>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt"><o:p> </o:p></span></p>
</div>
<p class="MsoNormal"><span style="font-size:10.0pt">-- <o:p></o:p></span></p>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt">Carlo U. Segre (he/him) -- Duchossois Leadership Professor of Physics<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt">Professor of Materials Science & Engineering<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt">Director, Center for Synchrotron Radiation Research and Instrumentation<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt">Illinois Institute of Technology<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt">Voice: 312.567.3498            Fax: 312.567.3494<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><a href="mailto:segre@iit.edu" target="_blank"><span style="font-size:10.0pt">segre@iit.edu</span></a><span style="font-size:10.0pt">  
</span><a href="http://phys.iit.edu/~segre" target="_blank"><span style="font-size:10.0pt">http://phys.iit.edu/~segre</span></a><span style="font-size:10.0pt">  
</span><a href="mailto:segre@debian.org" target="_blank"><span style="font-size:10.0pt">segre@debian.org</span></a><span style="font-size:10.0pt"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt"><o:p> </o:p></span></p>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>