From dcddfb33c21e4f8a199cff69f622ba33685e90be Mon Sep 17 00:00:00 2001 From: Dima Molodenskiy Date: Fri, 8 Nov 2024 14:34:22 +0100 Subject: [PATCH] Fix #454 --- alphapulldown/scripts/run_structure_prediction.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/alphapulldown/scripts/run_structure_prediction.py b/alphapulldown/scripts/run_structure_prediction.py index a33f2d06..32462a2b 100644 --- a/alphapulldown/scripts/run_structure_prediction.py +++ b/alphapulldown/scripts/run_structure_prediction.py @@ -224,8 +224,9 @@ def pre_modelling_setup( if flags.use_ap_style: output_dir = join(output_dir, object_to_model.description) - if len(output_dir) > 100: - raise ValueError(f"Output directory path is too long: {output_dir}." + if len(output_dir) > 4096: #max path length for most filesystems + # TODO: rename complex to something shorter + logging.warning(f"Output directory path is too long: {output_dir}." "Please use a shorter path with --output_directory.") makedirs(output_dir, exist_ok=True) # Copy features metadata to output directory