Module dadi.Polyploidy
Modeling polyploid populations.
Sub-modules
dadi.Polyploidy.Integrationdadi.Polyploidy.MiscPolydadi.Polyploidy.PhiManip_suppdadi.Polyploidy.PolyIntegrationdadi.Polyploidy.allo_demographicsdadi.Polyploidy.allo_demographics_seldadi.Polyploidy.auto_demographicsdadi.Polyploidy.auto_demographics_seldadi.Polyploidy.cudadadi.Polyploidy.wrightfisher
Functions
def cuda_enabled(toggle=None)-
Expand source code
def cuda_enabled(toggle=None): """ Enable or disable cuda execution """ if toggle is None: return Integration.cuda_enabled elif toggle == True: try: from . import cuda Integration.cuda_enabled = True return True except: print("Failed to import dadi.cuda") return False elif toggle == False: Integration.cuda_enabled = False return False else: raise ValueError("toggle must be True, False, or None")Enable or disable cuda execution