Skip to content
This repository was archived by the owner on Nov 27, 2023. It is now read-only.

Commit c857a10

Browse files
committed
Lin: avoid warning in csv_read
1 parent abcf1b0 commit c857a10

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pyFAST/linearization/campbell.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ def postproMBC(xlsFile=None, csvModesIDFile=None, xlssheet=None, verbose=True, W
167167
for i,v in enumerate(WS):
168168
OPFile = csvBase+'Campbell_Point{:02d}{:}.csv'.format(i+1,suffix)
169169
#print(OPFile, WS[i], RPM[i])
170-
Points[i] = pd.read_csv(OPFile, sep = ',', header=None)
170+
Points[i] = pd.read_csv(OPFile, sep = ',', header=None, dtype='object')
171171
else:
172172
raise Exception('Provide either an Excel file or a csv (ModesID) file')
173173
# --- Mode Identification
@@ -258,7 +258,7 @@ def postproMBC(xlsFile=None, csvModesIDFile=None, xlssheet=None, verbose=True, W
258258
UnMapped_RPM = np.concatenate((UnMapped_RPM, rpm))
259259
else:
260260
if all(ModeIndices==-1):
261-
print('Skipping mode number ',iMode)
261+
print('Mode not IDd: {}, name: {}.'.format(iMode, ModeName))
262262
else:
263263
f=[]
264264
d=[]

0 commit comments

Comments
 (0)