From 0cd705f12a84c43ea1ebb3e17a7bfa4be79ef981 Mon Sep 17 00:00:00 2001 From: Bobby Jackson Date: Mon, 19 Feb 2024 07:05:18 -0600 Subject: [PATCH] FIX: No more csvfiles --- pysp2/io/read_dat.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pysp2/io/read_dat.py b/pysp2/io/read_dat.py index d1c6eae..96daba3 100644 --- a/pysp2/io/read_dat.py +++ b/pysp2/io/read_dat.py @@ -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