-
Notifications
You must be signed in to change notification settings - Fork 15
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
Improve parsability of output of ResultWriter #368
base: master
Are you sure you want to change the base?
Conversation
I use the following python pandas.read_csv command for result files: Would this work for you, too? I am hesitant to change this long-standing output format ... |
Instead of modifying the output of the current ResultWriter your question is for a proper CSV file IMHO - feel free to have a look at #369 |
I am not sure how this could work for you. I tried it with the Argon example and you have to specify at least
If you don't have a close look at the data and just use e.g. The only way to parse the present result file correctly is by explicity specifying the column header names. |
This approach is IMHO the reason why there are so many plugins in ls1 right now. Instead of improving/extending an existing one, it is more convenient to just write a new plugin with a very similar functionality.
|
Description
Currently, there is a
#
in the output of the ResultWriter, which makes the header row technically a comment. This is a problem when trying to parse the whole file. It is much easier withsimstep
instead of# step
. This can be parse in python just with:df = pd.read_csv(path2File, delim_whitespace=True, comment="#", engine="python")