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

Error parsing csv files #11

Open
MarcBHahn opened this issue Jan 11, 2023 · 1 comment
Open

Error parsing csv files #11

MarcBHahn opened this issue Jan 11, 2023 · 1 comment

Comments

@MarcBHahn
Copy link
Member

Hi,
some of the recent changes/commit seem to cause some errors when loading standard csv files which worked previously.
McSas3 says ""data could not be read correctly. If csv, did you supply the right csvargs?""
Which is related to the line 80 in McData1d.py:

        assert all(
            [df[key].dtype.kind in "f" for key in ["Q", "I", "ISigma"]]
        ), "data could not be read correctly. If csv, did you supply the right csvargs?"

It doesnt change when i manually adjust column separators (, or \t) in either the input.csv or the readconfig.yaml or the column headers.

Tested on Debian stable with python from the package sources and RHEL7 with libaries from pip for python 3.6.

Thanks for having a look.

@ibressler
Copy link
Member

Hi Marc,
thanks for your feedback! Can you provide a CSV file which fails to load?
There are some test cases implemented which read the included quickstartdemo1.csv just fine. An example file would help to investigate the issue.
Best wishes
Ingo

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

2 participants