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

Restore the deprecated error_bad_lines argument to aid in parsing #19

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sd_file_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,7 @@ def parseLocationFiles( inputFileName=None, outputFileName='displacement.CSV',
# Read the data using pandas, and convert to numpy
#
data = pd.read_csv( inputFileName ,
index_col=False , usecols=(1,2,3,4) )
index_col=False , usecols=(1,2,3,4), error_bad_lines=False )
data = data.apply(pd.to_numeric,errors='coerce')
data = data.values

Expand Down