Skip to content

Find a new way to obtain visit information from now-not-symbolic link pdb files due to changes. #137

Description

@TJGorrie

path = os.path.join(input_directory, f'{crystal_name}.pdb')
# Current Fix, need to figure out a way to derive visit number from sample for stuff.
#try:
# path = os.readlink(symlink)
#except OSError:
# # Exit out
# print('Ligand is directly deposited into input directory, no known reference crystal')
# return None
#visit = re.findall('[a-z]{2}[0-9]{5}-[0-9]*', path)[0]
crys = models.Crystal.objects.filter(crystal_name=crystal_name)#.filter(visit__visit=visit) # This should only return one thing...

Code is here, the visit now isn't captured in the full file path of the non symbolic linked db file. This might have conseqences if a crystal has the same name spread over two visits

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions