Skip to content

Commit

Permalink
add downloader for OGS5 exe
Browse files Browse the repository at this point in the history
  • Loading branch information
MuellerSeb committed Aug 15, 2019
1 parent 1abd9ac commit ede32e4
Show file tree
Hide file tree
Showing 2 changed files with 294 additions and 167 deletions.
341 changes: 174 additions & 167 deletions ogs5py/__init__.py
Original file line number Diff line number Diff line change
@@ -1,167 +1,174 @@
# -*- coding: utf-8 -*-
"""
Purpose
=======
ogs5py is A python-API for the OpenGeoSys 5 scientific modeling package.
The following functionalities are directly provided on module-level.
Subpackages
===========
.. autosummary::
fileclasses
reader
tools
Classes
=======
OGS model Base Class
^^^^^^^^^^^^^^^^^^^^
Class to setup an ogs model
.. currentmodule:: ogs5py.ogs
.. autosummary::
OGS
File Classes
^^^^^^^^^^^^
Classes for all OGS5 Files. See: :any:`ogs5py.fileclasses`
.. currentmodule:: ogs5py.fileclasses
.. autosummary::
ASC
BC
CCT
DDC
FCT
GEM
GEMinit
GLI
GLIext
IC
RFR
KRC
MCP
MFP
MMP
MPD
MSH
MSP
NUM
OUT
PCS
PCT
PQC
PQCdat
REI
RFD
ST
TIM
Functions
=========
.. currentmodule:: ogs5py.tools.tools
Searching
^^^^^^^^^
Routine to search for a valid ogs id in a directory
.. autosummary::
search_task_id
Formatting
^^^^^^^^^^
Routines to format data in the right way for the input
.. autosummary::
by_id
"""
from __future__ import absolute_import

from ogs5py._version import __version__
from ogs5py.ogs import OGS
from ogs5py.fileclasses import (
ASC,
BC,
CCT,
DDC,
FCT,
GEM,
GEMinit,
GLI,
GLIext,
IC,
RFR,
KRC,
MCP,
MFP,
MMP,
MPD,
MSH,
MSP,
NUM,
OUT,
PCS,
PCT,
PQC,
PQCdat,
REI,
RFD,
ST,
TIM,
)
from ogs5py.tools.tools import search_task_id, by_id
from ogs5py.tools.types import OGS_EXT, PCS_TYP, PRIM_VAR_BY_PCS

# from ogs5py.reader import (readvtk,
# readpvd,
# readtec_point,
# readtec_polyline)
# indentation of subkeywords
SUB_IND = " "
# indentation of content
CON_IND = " "

__all__ = ["__version__"]
__all__ += ["OGS"]
__all__ += [
"ASC",
"BC",
"CCT",
"DDC",
"FCT",
"GEM",
"GEMinit",
"GLI",
"GLIext",
"IC",
"RFR",
"KRC",
"MCP",
"MFP",
"MMP",
"MPD",
"MSH",
"MSP",
"NUM",
"OUT",
"PCS",
"PCT",
"PQC",
"PQCdat",
"REI",
"RFD",
"ST",
"TIM",
]
__all__ += ["search_task_id", "by_id"]
__all__ += ["OGS_EXT", "PCS_TYP", "PRIM_VAR_BY_PCS"]
__all__ += ["SUB_IND", "CON_IND"]
# __all__ += ["readvtk", "readpvd", "readtec_point", "readtec_polyline"]
# -*- coding: utf-8 -*-
"""
Purpose
=======
ogs5py is A python-API for the OpenGeoSys 5 scientific modeling package.
The following functionalities are directly provided on module-level.
Subpackages
===========
.. autosummary::
fileclasses
reader
tools
Classes
=======
OGS model Base Class
^^^^^^^^^^^^^^^^^^^^
Class to setup an ogs model
.. currentmodule:: ogs5py.ogs
.. autosummary::
OGS
File Classes
^^^^^^^^^^^^
Classes for all OGS5 Files. See: :any:`ogs5py.fileclasses`
.. currentmodule:: ogs5py.fileclasses
.. autosummary::
ASC
BC
CCT
DDC
FCT
GEM
GEMinit
GLI
GLIext
IC
RFR
KRC
MCP
MFP
MMP
MPD
MSH
MSP
NUM
OUT
PCS
PCT
PQC
PQCdat
REI
RFD
ST
TIM
Functions
=========
.. currentmodule:: ogs5py.tools.tools
Searching
^^^^^^^^^
Routine to search for a valid ogs id in a directory
.. autosummary::
search_task_id
Formatting
^^^^^^^^^^
Routines to format data in the right way for the input
.. autosummary::
by_id
Downloading
^^^^^^^^^^^
.. currentmodule:: ogs5py.tools.download
Routine to download OGS5.
.. autosummary::
download_ogs
"""
from __future__ import absolute_import

from ogs5py._version import __version__
from ogs5py.ogs import OGS
from ogs5py.fileclasses import (
ASC,
BC,
CCT,
DDC,
FCT,
GEM,
GEMinit,
GLI,
GLIext,
IC,
RFR,
KRC,
MCP,
MFP,
MMP,
MPD,
MSH,
MSP,
NUM,
OUT,
PCS,
PCT,
PQC,
PQCdat,
REI,
RFD,
ST,
TIM,
)
from ogs5py.tools.tools import search_task_id, by_id
from ogs5py.tools.types import OGS_EXT, PCS_TYP, PRIM_VAR_BY_PCS
from ogs5py.tools.download import download_ogs

# indentation of subkeywords
SUB_IND = " "
# indentation of content
CON_IND = " "

__all__ = ["__version__"]
__all__ += ["OGS"]
__all__ += [
"ASC",
"BC",
"CCT",
"DDC",
"FCT",
"GEM",
"GEMinit",
"GLI",
"GLIext",
"IC",
"RFR",
"KRC",
"MCP",
"MFP",
"MMP",
"MPD",
"MSH",
"MSP",
"NUM",
"OUT",
"PCS",
"PCT",
"PQC",
"PQCdat",
"REI",
"RFD",
"ST",
"TIM",
]
__all__ += ["search_task_id", "by_id", "download_ogs"]
__all__ += ["OGS_EXT", "PCS_TYP", "PRIM_VAR_BY_PCS"]
__all__ += ["SUB_IND", "CON_IND"]
# __all__ += ["readvtk", "readpvd", "readtec_point", "readtec_polyline"]
Loading

0 comments on commit ede32e4

Please sign in to comment.