Skip to content

machine

is_espri_spirit()

Check if this is ESPRI/Spirit machine (1 or 2)

Source code in ipsl_common/machine.py
17
18
19
def is_espri_spirit() -> bool:
    """Check if this is ESPRI/Spirit machine (1 or 2)"""
    return _get_hostname() in ["spirit1", "spirit2"]

is_espri_spiritx()

Check if this is ESPRI/SpiritX machine (1 or 2)

Source code in ipsl_common/machine.py
22
23
24
def is_espri_spiritx() -> bool:
    """Check if this is ESPRI/SpiritX machine (1 or 2)"""
    return _get_hostname().startswith("spiritx")

is_idris_jean_zay()

Check if this is IDRIS/JeanZay machine (also pp, visu)

Source code in ipsl_common/machine.py
7
8
9
def is_idris_jean_zay() -> bool:
    """Check if this is IDRIS/JeanZay machine (also pp, visu)"""
    return _get_hostname().startswith("jean-zay")

is_idris_jean_zay_pp()

Check if this is IDRIS/JeanZay post-processing machine

Source code in ipsl_common/machine.py
12
13
14
def is_idris_jean_zay_pp() -> bool:
    """Check if this is IDRIS/JeanZay post-processing machine"""
    return _get_hostname().startswith("jean-zay-pp")

is_tgcc_irene()

Check if this is TGCC/Irene machine

Source code in ipsl_common/machine.py
27
28
29
def is_tgcc_irene() -> bool:
    """Check if this is TGCC/Irene machine"""
    return _get_hostname().startswith("irene")