schrodinger.application.canvas.utils module

Canvas utility functions.

Copyright Schrodinger, LLC. All rights reserved.

schrodinger.application.canvas.utils.strip_r(file_name)
class schrodinger.application.canvas.utils.chm_excel

Bases: csv.excel

delimiter = ','
quotechar = '"'
doublequote = True
skipinitialspace = False
lineterminator = '\n'
quoting = 0
class schrodinger.application.canvas.utils.chm_bluebird

Bases: csv.excel

delimiter = '\t'
quotechar = '"'
doublequote = True
skipinitialspace = False
lineterminator = '\t\n'
quoting = 3
class schrodinger.application.canvas.utils.ChmCSVTools(default_format_in=None, default_format_out=None, case_sensitive=True)

Bases: object

__init__(default_format_in=None, default_format_out=None, case_sensitive=True)
dictValues(dict, key_list=[], action_remove=False)
dictKeys(dict, key_list=[], action_remove=False)
getHeader(source_file, dialect=None, one_based=False)
rewrite(source_file, dest_file, header_substitutions={}, dialect=None)
rewriteByIndex(source_file, dest_file, column_indices=[], dialect_in=None, dialect_out=None, one_based=False, action_remove=False)
mergeByIndex(source_file1, source_file2, dest_file, column_indices_file1=[], column_indices_file2=[], dialect_in1=None, dialect_in2=None, dialect_out=None, one_based=False, action_remove=False)
mergeByName(source_file1, source_file2, dest_file, column_names1=[], column_names2=[], dialect_in1=None, dialect_in2=None, dialect_out=None, action_remove=False)
schrodinger.application.canvas.utils.get_license(license_type='LICENSE_FULL')

Instantiate a valid Canvas license object or raise an Exception.

Parameters

license_type (A module-level constant: LICENSE_FULL, LICENSE_SHARED, or LICENSE_FULL_OR_MAIN. Default is LICENSE_FULL.) – The type of license to request.

Raises

Exception when the license_type isn’t recognized or the requested license is not valid.