コード例 #1
0
def save(filename,
         selection='(all)',
         state=-1,
         format='',
         ref='',
         ref_state=-1,
         quiet=1,
         *args,
         _self=cmd,
         **kwargs):
    '''
ADDITIONAL NOTE

    This is an overloaded version of the 'save' command that also saves
    secondary structure and crystal information, if available.
    '''
    if not (format == 'pdb' or format == '' and filename.endswith('.pdb')):
        from pymol.exporting import save
        return save(filename,
                    selection,
                    state,
                    format,
                    ref,
                    ref_state,
                    quiet,
                    *args,
                    **kwargs,
                    _self=_self)
    save_pdb(filename, selection, state, 1, 1, 0, quiet, _self=_self)
コード例 #2
0
ファイル: exporting.py プロジェクト: tryptochan/pymol-psico
def save(filename, selection="(all)", state=-1, format="", ref="", ref_state=-1, quiet=1, *args, **kwargs):
    """
ADDITIONAL NOTE

    This is an overloaded version of the 'save' command that also saves
    secondary structure and crystal information, if available.
    """
    if not (format == "pdb" or format == "" and filename.endswith(".pdb")):
        from pymol.exporting import save

        return save(filename, selection, state, format, ref, ref_state, quiet, *args, **kwargs)
    save_pdb(filename, selection, state, 1, 1, 0, quiet)
コード例 #3
0
ファイル: exporting.py プロジェクト: MMP9/pymol-psico
def save(filename, selection='(all)', state=-1, format='',
        ref='', ref_state=-1, quiet=1, *args, **kwargs):
    '''
ADDITIONAL NOTE

    This is an overloaded version of the 'save' command that also saves
    secondary structure and crystal information, if available.
    '''
    if not (format == 'pdb' or format == '' and filename.endswith('.pdb')):
        from pymol.exporting import save
        return save(filename, selection, state, format, ref, ref_state, quiet, *args, **kwargs)
    save_pdb(filename, selection, state, 1, 1, 0, quiet)