psimpy


Namepsimpy JSON
Version 0.2.0 PyPI version JSON
download
home_pagehttps://git-ce.rwth-aachen.de/mbd/psimpy
SummaryPredictive and probabilistic simulation tools.
upload_time2024-01-26 15:44:37
maintainer
docs_urlNone
authorHu Zhao
requires_python>=3.9
licenseMIT
keywords emulator simulator inference sensitivity uncertainty
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            
## Description

`PSimPy` (Predictive and probabilistic simulation with Python) implements
a Gaussian process emulation-based framework that enables systematic and
efficient investigation of uncertainties associated with physics-based models
(i.e. simulators).

## Prerequisites

Before installing and using `PSimPy`, please ensure that you have the following
prerequisites:\
(Please note that we will cover number 1 to 3 in our recommended installation
method: [Installation in a Conda Environment](#installation-in-a-conda-environment-recommended).)

1. **Python 3.9 or later**:\
    Make sure you have Python installed on your system. You can download the latest
version of Python from the official website:
[Python Downloads](https://www.python.org/downloads/)
2. **R Installed and Added to the PATH Environment Variable**:
   - Install R from the official [R Project](https://www.r-project.org/) website.
   - Add R to your system's PATH environment variable. This step is crucial for
   enabling communication between Python and R.
3. (Optional) **RobustGaSP - R package**:\
   The emulator module, `robustgasp.py`, relies on the R package [RobustGaSP](https://cran.r-project.org/web/packages/RobustGaSP/index.html). This has also been initegrated with other PSimPy modules, such as `active_learning.py`. In order to utilize these modules, make sure to install the R package [RobustGaSP](https://cran.r-project.org/web/packages/RobustGaSP/index.html) first.
4. (Optional) **r.avaflow - Mass Flow Simulation Tool**:\
`PSimPy` includes a simulator module, `ravaflow3G.py`, that interfaces
with the open source software [r.avaflow 3G](https://www.landslidemodels.org/r.avaflow/). If you intend to use this module, please refer to the official documentation of [r.avaflow 3G](https://www.landslidemodels.org/r.avaflow/) to for installation guide.

## Installation

`PSimPy` can be easily installed using `pip`.

```bash
$ pip install psimpy
```

This command will install the package along with its dependencies.

## Installation in a Conda Environment (Recommended)

We recommond you to install `PSimPy` in a virtual environment such as a `conda`
environment. In this section, we will ceate a `conda` environment, install prerequisites (number 1 to 3), install python, and lastly, add the conda environment to `Jupyter Notebook`. You may want to first install [Anaconda](https://docs.anaconda.com/free/anaconda/) or [Miniconda](https://docs.conda.io/projects/miniconda/en/latest/) if you haven't. The steps afterwards are as follows:

1. Create a conda environment with Python and R, and activate the environment:

    ```bash
    $ conda create --name your_env_name python R
    $ conda activate your_env_name
    ```

2. Install the R package `RobustGaSP` in the R terminal:

    ```bash
    $ R
    ...
    > install.packages("RobustGaSP",repos="https://cran.r-project.org",version="0.6.4")
    ```

    Make sure it is successfully installed:

    ```bash
    > library("RobustGaSP")
    ```
3. Next, you need to configure the environment variable `R_HOME` so that `rpy2` knows where to find `R` packages. Find your `R_HOME` using the following command and then quit the R terminal:

    ```bash
    > R.home()
    > q()
    ```
    Set the environment variable `R_HOME` in your
    conda environment with
    ```bash
    $ conda env config vars set R_HOME=your_R_HOME
    ```
    Reactivate your conda environment to make the change take effect by
    ```bash
    $ conda deactivate
    $ conda activate your_env_name
    ```
4. Install `PSimPy` using `pip` in your conda environment:

    ```bash
    $ pip install psimpy
    ```

Now you should have `PSimPy` and its dependencies successfully installed in your
conda environment. You can use it in the Python terminal or in your Python IDE.

If you would like to use it with `Jupyter Notebook` (iPython Notebook), there
is one extra step needed to set your conda environment on your Notebook:

5. Install `ipykernel` and install a kernel that points to your conda environment:

    ```bash
    $ conda install -c conda-forge ipykernel
    $ python -m ipykernel install --user --name=your_env_name
    ```

Now you can start your Notebook, change the kernel to your conda environment,
and use `PSimPy`.


## Documentation
Detailed documentation of `PSimPy` is hosted at https://mbd.pages.rwth-aachen.de/psimpy/,
including the API and theory (or reference) of each module. 


## Usage
Usage examples are provided by the [Example Gallery](https://mbd.pages.rwth-aachen.de/psimpy/examples.html).


## License

`PSimPy` was created by Hu Zhao at the Chair of Methods for Model-based
Development in Computational Engineering (RWTH Aachen University, Germany). It
is licensed under the terms of the MIT license.
            

Raw data

            {
    "_id": null,
    "home_page": "https://git-ce.rwth-aachen.de/mbd/psimpy",
    "name": "psimpy",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": "",
    "keywords": "emulator,simulator,inference,sensitivity,uncertainty",
    "author": "Hu Zhao",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/81/09/1d6fd8028038726bb18ea6bbe8a496c9ab644ebc65a0dd192a984e6d2a87/psimpy-0.2.0.tar.gz",
    "platform": null,
    "description": "\n## Description\n\n`PSimPy` (Predictive and probabilistic simulation with Python) implements\na Gaussian process emulation-based framework that enables systematic and\nefficient investigation of uncertainties associated with physics-based models\n(i.e. simulators).\n\n## Prerequisites\n\nBefore installing and using `PSimPy`, please ensure that you have the following\nprerequisites:\\\n(Please note that we will cover number 1 to 3 in our recommended installation\nmethod: [Installation in a Conda Environment](#installation-in-a-conda-environment-recommended).)\n\n1. **Python 3.9 or later**:\\\n    Make sure you have Python installed on your system. You can download the latest\nversion of Python from the official website:\n[Python Downloads](https://www.python.org/downloads/)\n2. **R Installed and Added to the PATH Environment Variable**:\n   - Install R from the official [R Project](https://www.r-project.org/) website.\n   - Add R to your system's PATH environment variable. This step is crucial for\n   enabling communication between Python and R.\n3. (Optional) **RobustGaSP - R package**:\\\n   The emulator module, `robustgasp.py`, relies on the R package [RobustGaSP](https://cran.r-project.org/web/packages/RobustGaSP/index.html). This has also been initegrated with other PSimPy modules, such as `active_learning.py`. In order to utilize these modules, make sure to install the R package [RobustGaSP](https://cran.r-project.org/web/packages/RobustGaSP/index.html) first.\n4. (Optional) **r.avaflow - Mass Flow Simulation Tool**:\\\n`PSimPy` includes a simulator module, `ravaflow3G.py`, that interfaces\nwith the open source software [r.avaflow 3G](https://www.landslidemodels.org/r.avaflow/). If you intend to use this module, please refer to the official documentation of [r.avaflow 3G](https://www.landslidemodels.org/r.avaflow/) to for installation guide.\n\n## Installation\n\n`PSimPy` can be easily installed using `pip`.\n\n```bash\n$ pip install psimpy\n```\n\nThis command will install the package along with its dependencies.\n\n## Installation in a Conda Environment (Recommended)\n\nWe recommond you to install `PSimPy` in a virtual environment such as a `conda`\nenvironment. In this section, we will ceate a `conda` environment, install prerequisites (number 1 to 3), install python, and lastly, add the conda environment to `Jupyter Notebook`. You may want to first install [Anaconda](https://docs.anaconda.com/free/anaconda/) or [Miniconda](https://docs.conda.io/projects/miniconda/en/latest/) if you haven't. The steps afterwards are as follows:\n\n1. Create a conda environment with Python and R, and activate the environment:\n\n    ```bash\n    $ conda create --name your_env_name python R\n    $ conda activate your_env_name\n    ```\n\n2. Install the R package `RobustGaSP` in the R terminal:\n\n    ```bash\n    $ R\n    ...\n    > install.packages(\"RobustGaSP\",repos=\"https://cran.r-project.org\",version=\"0.6.4\")\n    ```\n\n    Make sure it is successfully installed:\n\n    ```bash\n    > library(\"RobustGaSP\")\n    ```\n3. Next, you need to configure the environment variable `R_HOME` so that `rpy2` knows where to find `R` packages. Find your `R_HOME` using the following command and then quit the R terminal:\n\n    ```bash\n    > R.home()\n    > q()\n    ```\n    Set the environment variable `R_HOME` in your\n    conda environment with\n    ```bash\n    $ conda env config vars set R_HOME=your_R_HOME\n    ```\n    Reactivate your conda environment to make the change take effect by\n    ```bash\n    $ conda deactivate\n    $ conda activate your_env_name\n    ```\n4. Install `PSimPy` using `pip` in your conda environment:\n\n    ```bash\n    $ pip install psimpy\n    ```\n\nNow you should have `PSimPy` and its dependencies successfully installed in your\nconda environment. You can use it in the Python terminal or in your Python IDE.\n\nIf you would like to use it with `Jupyter Notebook` (iPython Notebook), there\nis one extra step needed to set your conda environment on your Notebook:\n\n5. Install `ipykernel` and install a kernel that points to your conda environment:\n\n    ```bash\n    $ conda install -c conda-forge ipykernel\n    $ python -m ipykernel install --user --name=your_env_name\n    ```\n\nNow you can start your Notebook, change the kernel to your conda environment,\nand use `PSimPy`.\n\n\n## Documentation\nDetailed documentation of `PSimPy` is hosted at https://mbd.pages.rwth-aachen.de/psimpy/,\nincluding the API and theory (or reference) of each module. \n\n\n## Usage\nUsage examples are provided by the [Example Gallery](https://mbd.pages.rwth-aachen.de/psimpy/examples.html).\n\n\n## License\n\n`PSimPy` was created by Hu Zhao at the Chair of Methods for Model-based\nDevelopment in Computational Engineering (RWTH Aachen University, Germany). It\nis licensed under the terms of the MIT license.",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Predictive and probabilistic simulation tools.",
    "version": "0.2.0",
    "project_urls": {
        "Homepage": "https://git-ce.rwth-aachen.de/mbd/psimpy"
    },
    "split_keywords": [
        "emulator",
        "simulator",
        "inference",
        "sensitivity",
        "uncertainty"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "fb153de1075b17d729266af41d5bc00713106ce3c8e051f8d98c75190d7aed40",
                "md5": "a56719b4c81fae8ee60e01b5af0dd313",
                "sha256": "1717beb24b13aaa9516ddce20cceffa6137c021c2d46bacec35ca8e0940c91a6"
            },
            "downloads": -1,
            "filename": "psimpy-0.2.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "a56719b4c81fae8ee60e01b5af0dd313",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 39243,
            "upload_time": "2024-01-26T15:44:36",
            "upload_time_iso_8601": "2024-01-26T15:44:36.011947Z",
            "url": "https://files.pythonhosted.org/packages/fb/15/3de1075b17d729266af41d5bc00713106ce3c8e051f8d98c75190d7aed40/psimpy-0.2.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "81091d6fd8028038726bb18ea6bbe8a496c9ab644ebc65a0dd192a984e6d2a87",
                "md5": "4d8dfb851b28d1c0e1dc8c98c9d42dcd",
                "sha256": "e615b424812d0531b924523cfe302fbfd4c31ec6a1b1bb80a5f9c212de44ea49"
            },
            "downloads": -1,
            "filename": "psimpy-0.2.0.tar.gz",
            "has_sig": false,
            "md5_digest": "4d8dfb851b28d1c0e1dc8c98c9d42dcd",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 30010,
            "upload_time": "2024-01-26T15:44:37",
            "upload_time_iso_8601": "2024-01-26T15:44:37.427962Z",
            "url": "https://files.pythonhosted.org/packages/81/09/1d6fd8028038726bb18ea6bbe8a496c9ab644ebc65a0dd192a984e6d2a87/psimpy-0.2.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-01-26 15:44:37",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "psimpy"
}
        
Elapsed time: 0.52351s