PHYEX 0.9.5
PHYsique EXternalisée
Loading...
Searching...
No Matches
pyphyex.phyex1d.case Namespace Reference

Classes

class  Case
class  CaseCommonFormat
class  CaseXarray

Functions

 _git (args, directory=None)
 cases_directory ()
 install_cases (directory=None)
 link_cases (path, directory=None)
 list_cases (directory=None)
 main_cases_install ()
 main_cases_list ()

Variables

str DEPHY_SCM_URL = 'https://github.com/GdR-DEPHY/DEPHY-SCM.git'
 _DRIVER_RE = re.compile(r'^(?P<case>[^/]+)/(?P<subcase>[^/]+)/[^/]+_SCM_driver\.nc$')

Detailed Description

Case classes representing a simulation case

Function Documentation

◆ _git()

pyphyex.phyex1d.case._git ( args,
directory = None )
protected
Executes a git command (in directory), returns its standard output

Definition at line 399 of file case.py.

Here is the caller graph for this function:

◆ cases_directory()

pyphyex.phyex1d.case.cases_directory ( )
Directory of the DEPHY-SCM repository: $PHYEXCONF/phyex1d/DEPHY-SCM (PHYEXCONF
defaults to ~/.phyex)

Definition at line 408 of file case.py.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ install_cases()

pyphyex.phyex1d.case.install_cases ( directory = None)
Installs (clone) or updates (fetch and reset to the remote branch) the DEPHY-SCM
repository containing the cases in the common format (the repository is big, about
1 GB).

:param directory: directory of the repository (cases_directory() by default)
:return: directory of the repository

Definition at line 414 of file case.py.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ link_cases()

pyphyex.phyex1d.case.link_cases ( path,
directory = None )
Uses an existing DEPHY-SCM repository (or a copy of it): a symbolic link to it is
created instead of downloading the repository.

:param path: path to the existing DEPHY-SCM repository
:param directory: path of the link (cases_directory() by default); an existing link
                  is replaced, an existing directory (downloaded repository) is kept
                  and an error is raised
:return: path of the link

Definition at line 439 of file case.py.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ list_cases()

pyphyex.phyex1d.case.list_cases ( directory = None)
Lists the cases available in the DEPHY-SCM repository.

:param directory: directory of the repository (cases_directory() by default)
:return: list of tuples (case, subcase, path of the driver file)

Definition at line 467 of file case.py.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ main_cases_install()

pyphyex.phyex1d.case.main_cases_install ( )
Entry point of the phyex1d-cases_install command

Definition at line 486 of file case.py.

Here is the call graph for this function:

◆ main_cases_list()

pyphyex.phyex1d.case.main_cases_list ( )
Entry point of the phyex1d-cases_list command

Definition at line 513 of file case.py.

Here is the call graph for this function:

Variable Documentation

◆ _DRIVER_RE

pyphyex.phyex1d.case._DRIVER_RE = re.compile(r'^(?P<case>[^/]+)/(?P<subcase>[^/]+)/[^/]+_SCM_driver\.nc$')
protected

Definition at line 22 of file case.py.

◆ DEPHY_SCM_URL

str pyphyex.phyex1d.case.DEPHY_SCM_URL = 'https://github.com/GdR-DEPHY/DEPHY-SCM.git'

Definition at line 20 of file case.py.