Skip to content

Commit

Permalink
Fix #454
Browse files Browse the repository at this point in the history
  • Loading branch information
DimaMolod committed Nov 8, 2024
1 parent 351e4e0 commit dcddfb3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions alphapulldown/scripts/run_structure_prediction.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

3 comments on commit dcddfb3

@jkosinski
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, good temporary solution!

@DimaMolod
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, good temporary solution!

Does it work now?

@jkosinski
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Haven't tested yet but looks good! Will let you know.

Please sign in to comment.