<div dir="ltr">Unsubscribe</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Oct 17, 2022 at 10:27 PM <<a href="mailto:gsas-ii-request@aps.anl.gov">gsas-ii-request@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">Send GSAS-II mailing list submissions to<br>
        <a href="mailto:gsas-ii@aps.anl.gov" target="_blank">gsas-ii@aps.anl.gov</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<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><br>
or, via email, send a message with subject or body 'help' to<br>
        <a href="mailto:gsas-ii-request@aps.anl.gov" target="_blank">gsas-ii-request@aps.anl.gov</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:gsas-ii-owner@aps.anl.gov" target="_blank">gsas-ii-owner@aps.anl.gov</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of GSAS-II digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
   1. Re: [Ext]  Bruker brml files (Carlo Segre)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Mon, 17 Oct 2022 15:26:29 -0500<br>
From: Carlo Segre <<a href="mailto:segre@iit.edu" target="_blank">segre@iit.edu</a>><br>
To: "Brown, Matthew" <<a href="mailto:matthew.brown@ubc.ca" target="_blank">matthew.brown@ubc.ca</a>><br>
Cc: "<a href="mailto:gsas-ii@aps.anl.gov" target="_blank">gsas-ii@aps.anl.gov</a>" <<a href="mailto:gsas-ii@aps.anl.gov" target="_blank">gsas-ii@aps.anl.gov</a>><br>
Subject: Re: [GSAS-II] [Ext]  Bruker brml files<br>
Message-ID:<br>
        <<a href="mailto:CACz_CQcuZpBOM7-XWXqcy8Vrfak35UNs%2B5qB_G9u4N_Ffa03_Q@mail.gmail.com" target="_blank">CACz_CQcuZpBOM7-XWXqcy8Vrfak35UNs+5qB_G9u4N_Ffa03_Q@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Yes, it is open source, I have attached it in case Brian or Bob are<br>
interested in it.  At the moment it is written as a filter so I can convert<br>
a bunch of data at once.<br>
<br>
Carlo<br>
<br>
On Mon, Oct 17, 2022 at 3:22 PM Brown, Matthew <<a href="mailto:matthew.brown@ubc.ca" target="_blank">matthew.brown@ubc.ca</a>> wrote:<br>
<br>
> Carlo<br>
><br>
><br>
><br>
> I?d be happy to see your code, is it open-source? It would probably be<br>
> more useful to Bob though, to save him some time.<br>
><br>
><br>
><br>
> Dr. Matthew L. Brown  (he/him, they/them)<br>
><br>
> Lab Technician V (Chemistry, Crystallography)<br>
><br>
> Office: 250-807-8365 | WD Lab (PXRD): x376665<br>
><br>
><br>
><br>
> UBC School of Engineering<br>
><br>
> 1540 Innovation Dr.<br>
><br>
> Kelowna, BC<br>
><br>
> V1V 1V7<br>
><br>
><br>
><br>
> *From:* Carlo Segre <<a href="mailto:segre@iit.edu" target="_blank">segre@iit.edu</a>><br>
> *Sent:* Monday, October 17, 2022 1:19 PM<br>
> *To:* Brown, Matthew <<a href="mailto:matthew.brown@ubc.ca" target="_blank">matthew.brown@ubc.ca</a>><br>
> *Cc:* <a href="mailto:gsas-ii@aps.anl.gov" target="_blank">gsas-ii@aps.anl.gov</a><br>
> *Subject:* Re: [Ext] [GSAS-II] Bruker brml files<br>
><br>
><br>
><br>
> [*CAUTION:* Non-UBC Email]<br>
><br>
> Hi Matthew:<br>
><br>
><br>
><br>
> I have written a python program that extracts a gsas file from the Bruker<br>
> brml files.  I am happy to share it.  The brml file is simply a zip file<br>
> with an XML folder with all the information about the experiment.<br>
><br>
><br>
><br>
> Carlo<br>
><br>
><br>
><br>
> On Mon, Oct 17, 2022 at 1:18 PM Brown, Matthew via GSAS-II <<br>
> <a href="mailto:gsas-ii@aps.anl.gov" target="_blank">gsas-ii@aps.anl.gov</a>> wrote:<br>
><br>
> Salutations<br>
><br>
><br>
><br>
> I hope I?m sending this to the right place. I was at the Canadian Powder<br>
> Diffraction Workshop last week, and noticed that GSAS-II doesn?t seem to<br>
> support *.brml files, what my Bruker PXRD saves as by default. That format<br>
> is just a zip file full of xml wearing a fancy hat, so it is quite easy to<br>
> parse; the python unzip library opens it perfectly. I?m actually doing so<br>
> for a project I?m working on.(1)<br>
><br>
><br>
><br>
> If GSAS-II wanted to support *.brml files, I?d be glad to help: if someone<br>
> gave me a list of what GSAS-II needs to extract from the file, I could work<br>
> out where in the XML that is stored for you. I might even be able to write<br>
> up the extractor if you told me what output formats you, but I?m not the<br>
> world?s greatest programmer(2) so I?m not sure you?d want me directly<br>
> contributing code.<br>
><br>
><br>
><br>
>    1. Since many of you know I?m very new to PXRD, don?t worry, I?m not<br>
>    trying to do any actual calculations. I just got tired of looking up the<br>
>    settings I?d run every experiment at in EVA each time, and worried that I<br>
>    would make a typo and the user would report the wrong parameters in their<br>
>    paper, so I wrote up a little python tool that extracts those numbers into<br>
>    a format I can just copy and paste and send to the user.<br>
>    2. My script doesn?t even use an XML parser, I just brute force loop<br>
>    over RawData0.xml using stuff like ?elif line.startswith('<TimePerStep>'):?<br>
><br>
><br>
><br>
> Let me know if me documenting any of this would be useful, and I hope I<br>
> can help,<br>
><br>
><br>
><br>
> Dr. Matthew L. Brown  (he/him, they/them)<br>
><br>
> Lab Technician V (Chemistry, Crystallography)<br>
><br>
> Office: 250-807-8365 | WD Lab (PXRD): x376665<br>
><br>
><br>
><br>
> UBC School of Engineering<br>
><br>
> 1540 Innovation Dr.<br>
><br>
> Kelowna, BC<br>
><br>
> V1V 1V7<br>
><br>
><br>
><br>
> _______________________________________________<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><br>
><br>
><br>
><br>
><br>
> --<br>
><br>
> Carlo U. Segre (he/him) -- Duchossois Leadership Professor of Physics<br>
><br>
> Professor of Materials Science & Engineering<br>
><br>
> Director, Center for Synchrotron Radiation Research and Instrumentation<br>
><br>
> Illinois Institute of Technology<br>
><br>
> Voice: 312.567.3498            Fax: 312.567.3494<br>
><br>
> <a href="mailto:segre@iit.edu" target="_blank">segre@iit.edu</a>   <a href="http://phys.iit.edu/~segre" rel="noreferrer" target="_blank">http://phys.iit.edu/~segre</a>   <a href="mailto:segre@debian.org" target="_blank">segre@debian.org</a><br>
><br>
><br>
><br>
<br>
<br>
-- <br>
Carlo U. Segre (he/him) -- Duchossois Leadership Professor of Physics<br>
Professor of Materials Science & Engineering<br>
Director, Center for Synchrotron Radiation Research and Instrumentation<br>
Illinois Institute of Technology<br>
Voice: 312.567.3498            Fax: 312.567.3494<br>
<a href="mailto:segre@iit.edu" target="_blank">segre@iit.edu</a>   <a href="http://phys.iit.edu/~segre" rel="noreferrer" target="_blank">http://phys.iit.edu/~segre</a>   <a href="mailto:segre@debian.org" target="_blank">segre@debian.org</a><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://mailman.aps.anl.gov/pipermail/gsas-ii/attachments/20221017/7ca2779f/attachment.html" rel="noreferrer" target="_blank">http://mailman.aps.anl.gov/pipermail/gsas-ii/attachments/20221017/7ca2779f/attachment.html</a>><br>
-------------- next part --------------<br>
A non-text attachment was scrubbed...<br>
Name: brml2gsas.py<br>
Type: text/x-python<br>
Size: 3915 bytes<br>
Desc: not available<br>
URL: <<a href="http://mailman.aps.anl.gov/pipermail/gsas-ii/attachments/20221017/7ca2779f/attachment.py" rel="noreferrer" target="_blank">http://mailman.aps.anl.gov/pipermail/gsas-ii/attachments/20221017/7ca2779f/attachment.py</a>><br>
<br>
------------------------------<br>
<br>
Subject: Digest Footer<br>
<br>
_______________________________________________<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><br>
<br>
------------------------------<br>
<br>
End of GSAS-II Digest, Vol 345, Issue 3<br>
***************************************<br>
</blockquote></div>