Skip to content

Commit

Permalink
Updated json_validation. Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Shettland committed Jul 16, 2024
1 parent e850932 commit 92acbb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion relecov_tools/json_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ def create_validated_json(self, valid_json_data, out_folder):
valid_json_data (list(dict)): List of samples metadata as dictionaries
out_folder (str): path to folder where file will be created
"""
file_name = "_".join(["validated", self.json_data_file])
file_name = "_".join(["validated", os.path.basename(self.json_data_file)])
file_path = os.path.join(out_folder, file_name)
log.info("Saving Json file with the validated samples as %s", file_name)
relecov_tools.utils.write_json_fo_file(valid_json_data, file_path)
Expand Down

0 comments on commit 92acbb7

Please sign in to comment.