|
bool | HAS_BEEN_INITIALISED = False |
|
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.
◆ 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.
58 :returns: valid access types for the GOcean API.
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
The documentation for this class was generated from the following file:
- /home/docs/checkouts/readthedocs.org/user_builds/psyclone-ref/checkouts/latest/src/psyclone/domain/gocean/gocean_constants.py