-
Notifications
You must be signed in to change notification settings - Fork 8
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
handling string during file loading #47
Comments
@Mossybeam -- any chance you can share a snippet of the data file? Thanks. |
Hi! |
@wotgit Any chance you can post a sample data file? You can remove any sensitive information from the file if needed. |
Sure! Here is one to test with. https://we.tl/t-vwr9533K2g |
@wotgit @Mossybeam import locale
import gamry_parser as parser
# set the desired locale
locale.setlocale(locale.LC_ALL, "de_DE.utf8")
# parse the data using the Impedance subclass
eis = parser.Impedance(filename="SampleData.DTA")
eis.load()
..
# do something with the data This should work for any DTA file. Hope this helps. |
@bcliang thanks for your answer! I'm trying your example but I'm getting the following error: |
@wotgit Apologies. I updated the example with the import statement |
@bcliang thanks it works now! |
Hello everyone,
sorry if this is a newbie question, but upon loading the file, I run into a 'could not convert string to float: '0,00000E+000' error.
My Gamry outpul .DATA files contain scientific notation of numbers and apparently the loading of the file and conversion to pd.dataframe has an issue with that.
What were your solutions/what am I doing wrong?
Thanks for any advice
The text was updated successfully, but these errors were encountered: