Skip to content

Commit

Permalink
Update src/ghga_transpiler/metasheet_parser.py
Browse files Browse the repository at this point in the history
Co-authored-by: Christoph Zwerschke <[email protected]>
  • Loading branch information
sbilge and Cito authored Aug 20, 2024
1 parent 08cb2d9 commit 33d518a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/ghga_transpiler/metasheet_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,7 @@ def read_meta_information(workbook: Workbook, meta_sheet_name: str):
"""Reads the content of a worksheet"""
if meta_sheet_name in workbook.sheetnames:
sheet_meta_header = [cell.value for cell in workbook[meta_sheet_name][1]]
sheet_meta_values = list(
workbook[meta_sheet_name].iter_rows(min_row=2, values_only=True)
)
sheet_meta_values = workbook[meta_sheet_name].iter_rows(min_row=2, values_only=True)
return [
dict(zip(sheet_meta_header, val, strict=True)) for val in sheet_meta_values
]
Expand Down

0 comments on commit 33d518a

Please sign in to comment.