Skip to content

Commit

Permalink
Removed duplicated variable from merge_metadata()
Browse files Browse the repository at this point in the history
  • Loading branch information
Shettland authored and saramonzon committed Mar 14, 2024
1 parent 03e3ada commit 09c00c1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions relecov_tools/sftp_handle.py
Original file line number Diff line number Diff line change
Expand Up @@ -763,18 +763,17 @@ def md5_handler(md5sumlist, output_location):

return folders_with_metadata

def merge_metadata(self, metadata_sheet=None, *metadata_tables):
def merge_metadata(self, meta_sheet=None, *metadata_tables):
"""Merge a variable number of metadata dataframes to the first one. Merge them
only into a certain sheet from a multi-sheet excel file if sheetname is given.
Args:
metadata_sheet (str): Name of the sheet containing metadata in excel file
meta_sheet (str): Name of the sheet containing metadata in excel file
*metadata_tables (list(pandas.DataFrame)): Dataframes to be merged
Returns:
merged_df (pandas.DataFrame): A merged dataframe from the given tables
"""
meta_sheet = metadata_sheet
for idx, table in enumerate(metadata_tables):
if idx == 0:
merged_df = table
Expand Down

0 comments on commit 09c00c1

Please sign in to comment.