From e7ea9e9f76f8d52607d02b6c0b305b50f0f86941 Mon Sep 17 00:00:00 2001 From: Dennis Brookner Date: Mon, 22 Dec 2025 16:30:01 -0500 Subject: [PATCH] Change string concatenation to use pathlib pathlib objects cleverly override the `/` operator to mean "concatentate these file paths"; however, this means that pathlib objects *cannot* be concatenated by a `+` like you would with a string. This bug persisted because it lived in a rarely-used `else` block. --- src/matchmaps/_phenix_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/matchmaps/_phenix_utils.py b/src/matchmaps/_phenix_utils.py index 8cc0158..96223d5 100644 --- a/src/matchmaps/_phenix_utils.py +++ b/src/matchmaps/_phenix_utils.py @@ -155,7 +155,7 @@ def rigid_body_refinement_wrapper( if eff is None: eff_contents = _auto_eff_refinement_template(phenix_style=phenix_style) else: - with open(input_dir + eff) as file: + with open(input_dir / eff) as file: eff_contents = file.read() if (off_labels is None) or mr_on: