localpdb/PDBVersioneer.py
def remote_pdb_versions(self):
        """
        Checks for the remote PDB versions in the PDB ftp mirror
        @return: sorted list of the remote PDB versions available in the PDB ftp mirror
        """
        p = urlparse('ftp://' + self.config['url'])
        ftp = ftplib.FTP(p.netloc, timeout=10)
        ftp.login("anonymous", "")
        raw_data = []
        ftp.dir(f'{p.path}/data/status/', raw_data.append)
        remote_pdb_versions = sorted([int(entry.split(' ')[-1]) for entry in raw_data if entry.split(' ')[-1].isnumeric()])
        if len(remote_pdb_versions) == 0:
            raise ValueError('No valid PDB versions found in the remote source!')
        return remote_pdb_versions

        Checks for the remote PDB versions in the PDB ftp mirror
        @return: sorted list of the remote PDB versions available in the PDB ftp mirror
        
Checks for the remote PDB versions in the PDB ftp mirror
Checks for the remote PDB versions in the PDB ftp mirror
def remote_pdb_versions(self):
        p = urlparse('ftp://' + self.config['url'])
        ftp = ftplib.FTP(p.netloc, timeout=10)
        ftp.login("anonymous", "")
        raw_data = []
        ftp.dir(f'{p.path}/data/status/', raw_data.append)
        remote_pdb_versions = sorted([int(entry.split(' ')[-1]) for entry in raw_data if entry.split(' ')[-1].isnumeric()])
        if len(remote_pdb_versions) == 0:
            raise ValueError('No valid PDB versions found in the remote source!')
        return remote_pdb_versions
def remote_pdb_versions ( self ) : p = urlparse ( 'ftp://' + self . config [ 'url' ] ) ftp = ftplib . FTP ( p . netloc , timeout = 10 ) ftp . login ( "anonymous" , "" ) raw_data = [ ] ftp . dir ( f'{p.path}/data/status/' , raw_data . append ) remote_pdb_versions = sorted ( [ int ( entry . split ( ' ' ) [ - 1 ] ) for entry in raw_data if entry . split ( ' ' ) [ - 1 ] . isnumeric ( ) ] ) if len ( remote_pdb_versions ) == 0 : raise ValueError ( 'No valid PDB versions found in the remote source!' ) return remote_pdb_versions
Checks for the remote PDB versions in the PDB ftp mirror
Checks for the remote PDB versions in the PDB ftp mirror
"""
        Checks for the remote PDB versions in the PDB ftp mirror
        @return: sorted list of the remote PDB versions available in the PDB ftp mirror
        """
sorted list of the remote PDB versions available in the PDB ftp mirror
sorted list of the remote PDB versions available in the PDB ftp mirror
self