Skip to content

Commit

Permalink
Misc updates
Browse files Browse the repository at this point in the history
  • Loading branch information
ebranlard committed Oct 20, 2023
1 parent 513f3b3 commit cc3f51d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion weio/bladed_out_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def read_bladed_sensor_file(sensorfile):
t_line = re.search(r'(?<=AXITICK).+?(?=AXISLAB)', combined_string, flags=re.DOTALL)
t_line=t_line.group(0)
# Replace consecutive whitespace characters with a single space
t_line = re.sub('\s+', ' ', t_line)
t_line = re.sub(r'\s+', ' ', t_line)
except:
pass

Expand Down
7 changes: 2 additions & 5 deletions weio/excel_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,7 @@ def formatName():
def _read(self):
self.data=dict()
# Reading all sheets
try:
xls = pd.ExcelFile(self.filename, engine='openpyxl')
except:
xls = pd.ExcelFile(self.filename)
xls = pd.ExcelFile(self.filename, engine='openpyxl')
dfs = {}
for sheet_name in xls.sheet_names:
# Reading sheet
Expand Down Expand Up @@ -70,7 +67,7 @@ def _write(self):
writer.save()

def __repr__(self):
s ='Class XXXX (attributes: data)\n'
s ='Class ExcelFile (attributes: data)\n'
return s


Expand Down

0 comments on commit cc3f51d

Please sign in to comment.