Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

opac-convert #9

Open
RoksK opened this issue Mar 15, 2017 · 6 comments
Open

opac-convert #9

RoksK opened this issue Mar 15, 2017 · 6 comments

Comments

@RoksK
Copy link

RoksK commented Mar 15, 2017

I run opac-convert with my files and it shows the next error:

ValueError: invalid literal for int() with base 10: '1.03000000e+00''

I tried to use --log as shown in the Troubleshooting section, but it doesn't work. I open my SESAME file and remove all the blank spaces and run again opac-convert, now with this error:

IndexError: list index out of range

I don't know what is the error and how to fix it. I've tried to modify my SESAME file but it's OK. I debbuged the open_convert.py and I don't understand exactly where the script stops to work.

@jtlaune
Copy link
Collaborator

jtlaune commented Mar 16, 2017

Hello @RoksK,

Is there any additional text that comes along with the error? If so, could you please provide it?

Additionally, could you please provide the exact command you use to run opac-convert?

Thanks!

@RoksK
Copy link
Author

RoksK commented Mar 17, 2017

Hello @jtlaune,

Yes, there more text with the error, exactly the next lines:

File "/usr/local/bin/opac-convert", line 11, in <module> load_entry_point('opacplot2==1.0.0', 'console_scripts', 'opac-convert')()

File "/usr/local/lib/python3.6/site-packages/opacplot2/scripts/opac_convert.py", line 284, in convert_tables input_data['path_in']).eos_dict

File "/usr/local/lib/python3.6/site-packages/opacplot2/scripts/opac_convert.py", line 135, in __init__ self.eos_dict = self.handle_dict[args.input]()

File "/usr/local/lib/python3.6/site-packages/opacplot2/scripts/opac_convert.py", line 165, in sesame_toEosDict op = opp.OpgSesame(self.path_in, opp.OpgSesame.SINGLE)

File "/usr/local/lib/python3.6/site-packages/opacplot2/opg_sesame.py", line 96, in __init__ self.parse()

File "/usr/local/lib/python3.6/site-packages/opacplot2/opg_sesame.py", line 105, in parse matid = int(header.split()[1])

IndexError: list index out of range

This error will occur when I use opac-convert with and without --log command. The command that I use to run is opa-convert -i sesame my_filename. When I use --log command, I write --log idens,temps,Pi_DT,Pec_DT,Ui_DT,Uec_DT

@jtlaune
Copy link
Collaborator

jtlaune commented Mar 20, 2017

@RoksK

Thanks for providing the additional errors!

Based on the longer error message, it appears that your SESAME file has an unconventional header line that opacplot2 cannot read. However, the SESAME header line contains some sensitive information about the material. If you don't mind, could you please send me an email to discuss this matter further, and, if possible, copy and paste the SESAME header line along with your message? This will help me to diagnose the issue.

My email is jtlaune@uchicago.edu (also available in my profile as a link).

@Rwatt1
Copy link

Rwatt1 commented Apr 10, 2017

I have also been having this same problem and was wondering if you found a fix for it?

@jtlaune
Copy link
Collaborator

jtlaune commented Apr 20, 2017

@Rwatt1

Hello, there is not a fix yet built into opac-convert. We're currently working on converting the files manually & will then update opac-convert once we figure it out. If you could email me your files I can take a look at them also.

@njhartley
Copy link

Hi @jtlaune

I seem to be having a similar issue - is there a fox for this? I've just emailed you with the relevant files...

Cheers,
Nick

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants