mirror of
https://github.com/google-deepmind/alphafold3.git
synced 2025-10-20 13:23:47 +08:00
Make the folding input sanitised name case sensitive
PiperOrigin-RevId: 788852391 Change-Id: Ic0c75d8bcae843bacc77b2369b40002aeab50a33
This commit is contained in:
committed by
Copybara-Service
parent
042202363b
commit
a14376d249
@ -928,9 +928,9 @@ class Input:
|
||||
|
||||
def sanitised_name(self) -> str:
|
||||
"""Returns sanitised version of the name that can be used as a filename."""
|
||||
lower_spaceless_name = self.name.lower().replace(' ', '_')
|
||||
allowed_chars = set(string.ascii_lowercase + string.digits + '_-.')
|
||||
return ''.join(l for l in lower_spaceless_name if l in allowed_chars)
|
||||
spaceless_name = self.name.replace(' ', '_')
|
||||
allowed_chars = set(string.ascii_letters + string.digits + '_-.')
|
||||
return ''.join(l for l in spaceless_name if l in allowed_chars)
|
||||
|
||||
@classmethod
|
||||
def from_alphafoldserver_fold_job(cls, fold_job: Mapping[str, Any]) -> Self:
|
||||
|
Reference in New Issue
Block a user