[FLASH-USERS] Cannot convert sesame data with opacplot2
Aodhan McIlvenny
amcilvenny01 at qub.ac.uk
Wed Jun 22 16:53:11 EDT 2022
Hi Adam,
I am using the following command on some SESAME format data:
opac-convert --Znum 79 Au.301 --input sesame --outname au-imx-006 --log idens
and I get the following error:
(opa2) aodhan at mp151182 SESAME % opac-convert --Znum 79 Au.301 --input sesame --outname au-imx-006 --log idens
numba.vectorize not loaded, will use numpy.vectorize!
Traceback (most recent call last):
File "/Users/aodhan/anaconda3/envs/opa2/lib/python3.8/site-packages/opacplot2/scripts/opac_convert.py", line 170, in sesame_toEosDict
op = opp.OpgSesame(self.path_in, opp.OpgSesame.SINGLE)
File "/Users/aodhan/anaconda3/envs/opa2/lib/python3.8/site-packages/opacplot2/opg_sesame.py", line 101, in __init__
self.parse()
File "/Users/aodhan/anaconda3/envs/opa2/lib/python3.8/site-packages/opacplot2/opg_sesame.py", line 111, in parse
matid = int(header.split()[1])
ValueError: invalid literal for int() with base 10: '1.93000000e+01'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/aodhan/anaconda3/envs/opa2/bin/opac-convert", line 8, in <module>
sys.exit(convert_tables())
File "/Users/aodhan/anaconda3/envs/opa2/lib/python3.8/site-packages/opacplot2/scripts/opac_convert.py", line 312, in convert_tables
eos_dict = Formats_toEosDict(input_data['args'],
File "/Users/aodhan/anaconda3/envs/opa2/lib/python3.8/site-packages/opacplot2/scripts/opac_convert.py", line 138, in __init__
self.eos_dict = self.handle_dict[args.input]()
File "/Users/aodhan/anaconda3/envs/opa2/lib/python3.8/site-packages/opacplot2/scripts/opac_convert.py", line 172, in sesame_toEosDict
op = opp.OpgSesame(self.path_in, opp.OpgSesame.DOUBLE)
File "/Users/aodhan/anaconda3/envs/opa2/lib/python3.8/site-packages/opacplot2/opg_sesame.py", line 101, in __init__
self.parse()
File "/Users/aodhan/anaconda3/envs/opa2/lib/python3.8/site-packages/opacplot2/opg_sesame.py", line 111, in parse
matid = int(header.split()[1])
ValueError: invalid literal for int() with base 10: '1.93000000e+01'
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?
Best wishes,
Aodhan
From: Adam Reyes <adam.reyes at rochester.edu>
Date: Wednesday, 22 June 2022 at 21:33
To: Aodhan McIlvenny <amcilvenny01 at qub.ac.uk>
Cc: flash-users at flash.rochester.edu <flash-users at flash.rochester.edu>
Subject: Re: [FLASH-USERS] Cannot convert sesame data with opacplot2
This message is from an external sender. Please take care when responding, clicking links or opening attachments.
Hi Aodhan,
What command are you using with opac-convert? You should just need to add the --log argument, see https://opacplot2.readthedocs.io/en/latest/clt.html#troubleshooting
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.
*************************************************************************
Adam Reyes
[https://flash.rochester.edu/site/common/images/email_signature/FLASH.jpg]
Code Group Leader, Flash Center for Computational Science
Research Scientist, Dept. of Physics and Astronomy
University of Rochester
River Campus: Bausch and Lomb Hall, 369
500 Wilson Blvd. PO Box 270171, Rochester, NY 14627
Email adam.reyes at rochester.edu<mailto:adam.reyes at rochester.edu>
Web https://flash.rochester.edu<https://flash.rochester.edu/>
(he / him / his)
[https://flash.rochester.edu/site/common/images/email_signature/FLASH-pride-sml.png]
*************************************************************************
On Wed, Jun 22, 2022 at 2:08 PM Aodhan McIlvenny <amcilvenny01 at qub.ac.uk<mailto:amcilvenny01 at qub.ac.uk>> wrote:
Hi,
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.
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:
ValueError: invalid literal for int() with base 10
Alternatively, if anyone has any experience using other sources of EOS data e.g. FEOS (https://www.sciencedirect.com/science/article/pii/S0010465518300122) and converting to IONMIX then this would be a big help since I am encountering the same problem. Does anyone have any pointers?
Thanks in advance,
Aodhan
_______________________________________________
flash-users mailing list
flash-users at flash.rochester.edu<mailto:flash-users at flash.rochester.edu>
For list info, including unsubscribe:
https://flash.rochester.edu/mailman/listinfo/flash-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://flash.rochester.edu/pipermail/flash-users/attachments/20220622/cfb609ef/attachment-0001.htm>
More information about the flash-users
mailing list