Skip to content

Commit b6897a7

Browse files
Allow for peprec with spaces
1 parent 91fb1a0 commit b6897a7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

deeplc/__main__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,10 +240,14 @@ def run(file_pred="",
240240

241241
# Read input files
242242
df_pred = pd.read_csv(file_pred)
243+
if len(df_pred.columns) < 2:
244+
df_pred = pd.read_csv(file_pred,sep=" ")
243245
df_pred = df_pred.fillna("")
244246

245247
if len(file_cal) > 1:
246248
df_cal = pd.read_csv(file_cal)
249+
if len(df_cal.columns) < 2:
250+
df_cal = pd.read_csv(df_cal,sep=" ")
247251
df_cal = df_cal.fillna("")
248252

249253
# Make a feature extraction object; you can skip this if you do not want to

0 commit comments

Comments
 (0)