Skip to content

Commit

Permalink
Replace Excel file imports with CSV file imports for stack parameters…
Browse files Browse the repository at this point in the history
… and feed data in REDstack.py
  • Loading branch information
tristantc committed Dec 18, 2024
1 parent 2fb66d9 commit 731285e
Showing 1 changed file with 4 additions and 19 deletions.
23 changes: 4 additions & 19 deletions gdplib/reverse_electrodialysis/REDstack.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit 731285e

Please sign in to comment.