<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=Windows-1252">
<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:Helvetica;
panose-1:0 0 0 0 0 0 0 0 0 0;}
@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:Menlo;
panose-1:2 11 6 9 3 8 4 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:10.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
p.gmail-m-4704730429537650082p1, li.gmail-m-4704730429537650082p1, div.gmail-m-4704730429537650082p1
{mso-style-name:gmail-m_-4704730429537650082p1;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
span.gmail-m-4704730429537650082s1
{mso-style-name:gmail-m_-4704730429537650082s1;}
span.EmailStyle21
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
p.p1, li.p1, div.p1
{mso-style-name:p1;
margin:0cm;
font-size:8.5pt;
font-family:Menlo;
color:black;}
span.s1
{mso-style-name:s1;}
p.p2, li.p2, div.p2
{mso-style-name:p2;
margin:0cm;
font-size:8.5pt;
font-family:Menlo;
color:black;}
span.apple-converted-space
{mso-style-name:apple-converted-space;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
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="EN-GB" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US">Hi Adam,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US">I am using the following command on some SESAME format data:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="p1"><span class="s1">opac-convert --Znum 79 Au.301 --input sesame --outname au-imx-006 --log idens</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US">and I get the following error:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="p1"><span class="s1">(opa2) aodhan@mp151182 SESAME % opac-convert --Znum 79 Au.301 --input sesame --outname au-imx-006 --log idens</span><o:p></o:p></p>
<p class="p1"><span class="s1">numba.vectorize not loaded, will use numpy.vectorize!</span><o:p></o:p></p>
<p class="p1"><span class="s1">Traceback (most recent call last):</span><o:p></o:p></p>
<p class="p1"><span class="apple-converted-space"> </span><span class="s1">File "/Users/aodhan/anaconda3/envs/opa2/lib/python3.8/site-packages/opacplot2/scripts/opac_convert.py", line 170, in sesame_toEosDict</span><o:p></o:p></p>
<p class="p1"><span class="apple-converted-space"> </span><span class="s1">op = opp.OpgSesame(self.path_in, opp.OpgSesame.SINGLE)</span><o:p></o:p></p>
<p class="p1"><span class="apple-converted-space"> </span><span class="s1">File "/Users/aodhan/anaconda3/envs/opa2/lib/python3.8/site-packages/opacplot2/opg_sesame.py", line 101, in __init__</span><o:p></o:p></p>
<p class="p1"><span class="apple-converted-space"> </span><span class="s1">self.parse()</span><o:p></o:p></p>
<p class="p1"><span class="apple-converted-space"> </span><span class="s1">File "/Users/aodhan/anaconda3/envs/opa2/lib/python3.8/site-packages/opacplot2/opg_sesame.py", line 111, in parse</span><o:p></o:p></p>
<p class="p1"><span class="apple-converted-space"> </span><span class="s1">matid = int(header.split()[1])</span><o:p></o:p></p>
<p class="p1"><span class="s1">ValueError: invalid literal for int() with base 10: '1.93000000e+01'</span><o:p></o:p></p>
<p class="p2"><o:p> </o:p></p>
<p class="p1"><span class="s1">During handling of the above exception, another exception occurred:</span><o:p></o:p></p>
<p class="p2"><o:p> </o:p></p>
<p class="p1"><span class="s1">Traceback (most recent call last):</span><o:p></o:p></p>
<p class="p1"><span class="apple-converted-space"> </span><span class="s1">File "/Users/aodhan/anaconda3/envs/opa2/bin/opac-convert", line 8, in <module></span><o:p></o:p></p>
<p class="p1"><span class="apple-converted-space"> </span><span class="s1">sys.exit(convert_tables())</span><o:p></o:p></p>
<p class="p1"><span class="apple-converted-space"> </span><span class="s1">File "/Users/aodhan/anaconda3/envs/opa2/lib/python3.8/site-packages/opacplot2/scripts/opac_convert.py", line 312, in convert_tables</span><o:p></o:p></p>
<p class="p1"><span class="apple-converted-space"> </span><span class="s1">eos_dict = Formats_toEosDict(input_data['args'],</span><o:p></o:p></p>
<p class="p1"><span class="apple-converted-space"> </span><span class="s1">File "/Users/aodhan/anaconda3/envs/opa2/lib/python3.8/site-packages/opacplot2/scripts/opac_convert.py", line 138, in __init__</span><o:p></o:p></p>
<p class="p1"><span class="apple-converted-space"> </span><span class="s1">self.eos_dict = self.handle_dict[args.input]()</span><o:p></o:p></p>
<p class="p1"><span class="apple-converted-space"> </span><span class="s1">File "/Users/aodhan/anaconda3/envs/opa2/lib/python3.8/site-packages/opacplot2/scripts/opac_convert.py", line 172, in sesame_toEosDict</span><o:p></o:p></p>
<p class="p1"><span class="apple-converted-space"> </span><span class="s1">op = opp.OpgSesame(self.path_in, opp.OpgSesame.DOUBLE)</span><o:p></o:p></p>
<p class="p1"><span class="apple-converted-space"> </span><span class="s1">File "/Users/aodhan/anaconda3/envs/opa2/lib/python3.8/site-packages/opacplot2/opg_sesame.py", line 101, in __init__</span><o:p></o:p></p>
<p class="p1"><span class="apple-converted-space"> </span><span class="s1">self.parse()</span><o:p></o:p></p>
<p class="p1"><span class="apple-converted-space"> </span><span class="s1">File "/Users/aodhan/anaconda3/envs/opa2/lib/python3.8/site-packages/opacplot2/opg_sesame.py", line 111, in parse</span><o:p></o:p></p>
<p class="p1"><span class="apple-converted-space"> </span><span class="s1">matid = int(header.split()[1])</span><o:p></o:p></p>
<p class="p1"><span class="s1">ValueError: invalid literal for int() with base 10: '1.93000000e+01'</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US">It is complaining about the first instance of the density, so I am using the idens for the –log flag, but I have tried (what I thought was) everything with this flag but it still
returns the same error. Do you see anything obvious?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US">Best wishes,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US">Aodhan<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" style="margin-bottom:12.0pt"><b><span style="font-size:12.0pt;color:black">From:
</span></b><span style="font-size:12.0pt;color:black">Adam Reyes <adam.reyes@rochester.edu><br>
<b>Date: </b>Wednesday, 22 June 2022 at 21:33<br>
<b>To: </b>Aodhan McIlvenny <amcilvenny01@qub.ac.uk><br>
<b>Cc: </b>flash-users@flash.rochester.edu <flash-users@flash.rochester.edu><br>
<b>Subject: </b>Re: [FLASH-USERS] Cannot convert sesame data with opacplot2<o:p></o:p></span></p>
</div>
<div style="border:solid black 2.25pt;padding:2.0pt 2.0pt 2.0pt 2.0pt">
<p class="MsoNormal" align="center" style="text-align:center;background:thistle">
<strong><span style="font-size:12.0pt;font-family:"Calibri",sans-serif;color:black">This message is from an external sender. Please take care when responding, clicking links or opening attachments.</span></strong><span style="font-size:11.0pt"><o:p></o:p></span></p>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt"><br>
Hi Aodhan, <o:p></o:p></span></p>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt">What command are you using with opac-convert? You should just need to add the --log argument, see <a href="https://opacplot2.readthedocs.io/en/latest/clt.html#troubleshooting">https://opacplot2.readthedocs.io/en/latest/clt.html#troubleshooting</a><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt">As for converting other EOS formats to IONMIX you could do it by implementing it in opacplot. Take a look at the "toEosDict" function in opg_sesame.py and "EosDict_toIonMixFile" in opac_convert.py.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Helvetica;color:black">*************************************************************************</span><span style="font-size:11.0pt">
<o:p></o:p></span></p>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Helvetica;color:black">Adam Reyes
<o:p></o:p></span></p>
<div>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Helvetica;color:black"><img border="0" id="_x0000_i1026" src="https://flash.rochester.edu/site/common/images/email_signature/FLASH.jpg"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Helvetica;color:black">Code Group Leader, Flash Center for Computational Science <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Helvetica;color:black">Research Scientist, Dept. of Physics and Astronomy<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Helvetica;color:black">University of Rochester<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Helvetica;color:black">River Campus: Bausch and Lomb Hall, 369 <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Helvetica;color:black">500 Wilson Blvd. PO Box 270171, Rochester, NY 14627<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Helvetica;color:black">Email <a href="mailto:adam.reyes@rochester.edu" target="_blank">adam.reyes@rochester.edu</a><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Helvetica;color:black">Web <a href="https://flash.rochester.edu/" target="_blank">https://flash.rochester.edu</a><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Helvetica;color:black"> (he / him / his)<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Helvetica;color:black"><img border="0" id="_x0000_i1025" src="https://flash.rochester.edu/site/common/images/email_signature/FLASH-pride-sml.png"><o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Helvetica;color:black">*************************************************************************<o:p></o:p></span></p>
</div>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt">On Wed, Jun 22, 2022 at 2:08 PM Aodhan McIlvenny <<a href="mailto:amcilvenny01@qub.ac.uk">amcilvenny01@qub.ac.uk</a>> wrote:<o:p></o:p></span></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt">Hi,<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt"> <o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt">I’ve been having problems trying to convert some SESAME data into IONMIX for use with the LaserSlab simulation. I have looked through the archives
but I haven’t found anything that has worked so I wanted to check if anyone had any luck recently.
<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt"> <o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt">OPACPLOT2 seems to install fine (when using up-to-date versions of python as opposed to older versions) but I can’t seem to convert the data to logs
which I understand to be the problem with this error: <o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt"> <o:p></o:p></span></p>
<p class="gmail-m-4704730429537650082p1"><span class="gmail-m-4704730429537650082s1">ValueError: invalid literal for int() with base 10</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt"> <o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt">Alternatively, if anyone has any experience using other sources of EOS data e.g. FEOS (<a href="https://www.sciencedirect.com/science/article/pii/S0010465518300122" target="_blank">https://www.sciencedirect.com/science/article/pii/S0010465518300122</a>)
and converting to IONMIX then this would be a big help since I am encountering the same problem. Does anyone have any pointers?<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt"> <o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt">Thanks in advance,<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt">Aodhan<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><span style="font-size:11.0pt">_______________________________________________<br>
flash-users mailing list<br>
<a href="mailto:flash-users@flash.rochester.edu" target="_blank">flash-users@flash.rochester.edu</a><br>
<br>
For list info, including unsubscribe:<br>
<a href="https://flash.rochester.edu/mailman/listinfo/flash-users" target="_blank">https://flash.rochester.edu/mailman/listinfo/flash-users</a><o:p></o:p></span></p>
</blockquote>
</div>
</div>
</div>
</body>
</html>