Reference Guide  2.5.0
psyclone.domain.gocean.gocean_constants.GOceanConstants Class Reference

Public Member Functions

def __init__ (self)
 

Static Public Member Functions

def get_valid_access_types ()
 

Static Public Attributes

bool HAS_BEEN_INITIALISED = False
 

Detailed Description

This class stores all GOcean constants. It stores all values in
class variables (to avoid re-evaluating them).

Definition at line 46 of file gocean_constants.py.

Member Function Documentation

◆ get_valid_access_types()

def psyclone.domain.gocean.gocean_constants.GOceanConstants.get_valid_access_types ( )
static
Return the valid access types for the GOcean API. Reads the values
from the config file the first time the method is called.

:returns: valid access types for the GOcean API.
:rtype: list[str]

Definition at line 54 of file gocean_constants.py.

54  def get_valid_access_types():
55  '''Return the valid access types for the GOcean API. Reads the values
56  from the config file the first time the method is called.
57 
58  :returns: valid access types for the GOcean API.
59  :rtype: list[str]
60 
61  '''
62  if not GOceanConstants._VALID_ACCESS_TYPES:
63  conf = Config.get().api_conf("gocean1.0")
64  GOceanConstants._VALID_ACCESS_TYPES = \
65  list(conf.get_access_mapping().keys())
66  return GOceanConstants._VALID_ACCESS_TYPES
67 

The documentation for this class was generated from the following file: