schrodinger.application.phase.license module

Module for token checkouts in phase related backends. NOTE: Tampering with licensing is a violation of the license agreement.

Copyright Schrodinger LLC, All Rights Reserved.

schrodinger.application.phase.license.num_of_shape_screen_tokens(use_gpu: bool = False) int
Parameters

use_gpu – whether to checkout tokens for GPU usage or not

Returns

number of tokens to check out

schrodinger.application.phase.license.checkout_phase_dbsearch_tokens(num_tokens: int = 1, want_exit: bool = True) schrodinger.utils.license.License

Checks out a PHASE_DBSEARCH license consuming the requested number of tokens.

Parameters
  • num_tokens – Number of tokens to check out

  • want_exit – Whether to call exit on failure or raise RuntimeError

Returns

License consuming num_tokens PHASE_DBSEARCH tokens

schrodinger.application.phase.license.checkout_shape_screen_tokens(use_gpu: bool = False) schrodinger.utils.license.License

Checks out the appropriate number of tokens for a shape screening job.

Parameters

use_gpu – whether to checkout tokens for GPU usage or not

Returns

license token