Skip to content

Commit

Permalink
Fixed scenario excel import for numbered scenarios. (#1236)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrvisscher authored Feb 19, 2024
1 parent 32d8084 commit e24b3ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activity_browser/bwutils/superstructure/excel.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def get_header_index(document_path: Union[str, Path], import_sheet: int):

def valid_cols(name: str) -> bool:
"""Callable which evaluates if a specific column should be used."""
return False if name.startswith("#") else True
return False if str(name).startswith("#") else True

def import_from_excel(document_path: Union[str, Path], import_sheet: int = 1) -> pd.DataFrame:
"""Import all of the exchanges and their scenario amounts from a given
Expand Down

0 comments on commit e24b3ec

Please sign in to comment.