OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022

Public Member Functions

def __init__ (self, seed=None)
 
def __enter__ (self)
 
def __exit__ (self, *args, **kwargs)
 

Public Attributes

 seed
 
 state
 

Detailed Description

Context manager to temporarily set the global random state for
    any methods which aren't using a seed or local random state. 

Definition at line 104 of file utils.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  seed = None 
)

Definition at line 108 of file utils.py.

Member Function Documentation

◆ __enter__()

def __enter__ (   self)

Definition at line 112 of file utils.py.

◆ __exit__()

def __exit__ (   self,
args,
**  kwargs 
)

Definition at line 116 of file utils.py.

Member Data Documentation

◆ seed

seed

Definition at line 109 of file utils.py.

◆ state

state

Definition at line 110 of file utils.py.


The documentation for this class was generated from the following file:
  • /gfs-oceanweb/web/ocssw/ocssw_src/src/aquaverse/MDN/benchmarks/utils.py