Skip to content

Commit

Permalink
FIX: No more csvfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
rcjackson committed Feb 19, 2024
1 parent 1f8419b commit 0cd705f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pysp2/io/read_dat.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ def read_dat(file_name, type):
for f in fname:
try:
if type.lower() == 'particle':
ds = act.io.csvfiles.read_csv(f, sep="\t", skiprows=2)
ds = act.io.text.read_csv(f, sep="\t", skiprows=2)
else:
ds = act.io.csvfiles.read_csv(f, sep="\t")
ds = act.io.text.read_csv(f, sep="\t")
ds_list.append(ds)
except (pd.errors.EmptyDataError, IndexError):
continue
Expand Down

0 comments on commit 0cd705f

Please sign in to comment.