From 731285e1e0fc14a4569f2755d80d50e02d9a5580 Mon Sep 17 00:00:00 2001 From: Carolina Tristan Date: Wed, 18 Dec 2024 01:48:55 -0500 Subject: [PATCH] Replace Excel file imports with CSV file imports for stack parameters and feed data in REDstack.py --- gdplib/reverse_electrodialysis/REDstack.py | 23 ++++------------------ 1 file changed, 4 insertions(+), 19 deletions(-) diff --git a/gdplib/reverse_electrodialysis/REDstack.py b/gdplib/reverse_electrodialysis/REDstack.py index 0c5296f..8cbd856 100644 --- a/gdplib/reverse_electrodialysis/REDstack.py +++ b/gdplib/reverse_electrodialysis/REDstack.py @@ -26,25 +26,10 @@ wnd_dir = os.path.dirname(os.path.realpath(__file__)) -# Data file containing the stack parameters, feed concentration, and temperature. -with pd.ExcelFile(os.path.join(wnd_dir, "data.xlsx")) as xls: - stack_param = pd.read_excel( - xls, - sheet_name="stack_param", - # index_col=[0,1], - header=0, - ) - flow_conc_data = pd.read_excel( - xls, sheet_name="feed_data", index_col=0, header=[0], usecols="A:C" - ) - T = pd.read_excel( - xls, - sheet_name="feed_data", - # index_col=0, - # header=[0], - nrows=1, - usecols="D", - ) +# Data files containing the stack parameters, feed concentration, and temperature. +stack_param = pd.read_csv(os.path.join(wnd_dir, "stack_param.csv")) +flow_conc_data = pd.read_csv(os.path.join(wnd_dir, "flow_conc_data.csv"), index_col=0) +T = pd.read_csv(os.path.join(wnd_dir, "T.csv")) def build_REDstack():