amirispy


Nameamirispy JSON
Version 1.3 PyPI version JSON
download
home_pagehttps://gitlab.com/dlr-ve/esy/amiris/amiris-py
SummaryPython tools for the electricity market model AMIRIS
upload_time2023-06-13 17:18:24
maintainer
docs_urlNone
authorChristoph Schimeczek, Felix Nitsch
requires_python>=3.8
licenseApache License 2.0
keywords amiris agent-based modelling
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <!-- SPDX-FileCopyrightText: 2022 German Aerospace Center <amiris@dlr.de>

SPDX-License-Identifier: Apache-2.0 -->

[![PyPI version](https://badge.fury.io/py/amirispy.svg)](https://badge.fury.io/py/amirispy)
[![PyPI license](https://img.shields.io/pypi/l/amirispy.svg)](https://badge.fury.io/py/amirispy)
[![pipeline status](https://gitlab.com/dlr-ve/esy/amiris/amiris-py/badges/main/pipeline.svg)](https://gitlab.com/dlr-ve/esy/amiris/amiris-py/commits/main)


# AMIRIS-Py
Python tools for the electricity market model [AMIRIS](https://dlr-ve.gitlab.io/esy/amiris/home/).

## Installation

    pip install amirispy


You may also use `pipx`. For detailed information please refer to the official `pipx` [documentation](https://github.com/pypa/pipx).

    pipx install amirispy


### Further Requirements

In order to execute all commands provided by `amirispy`, you also require a Java Development Kit (JDK).
JDK must be installed and accessible via your console in which you run `amirispy`. 

To test, run `java --version` which should show your JDK version (required: 8 or above).
If `java` command is not found or relates to a Java Runtime Environment (JRE), please download and install JDK (e.g. from [Adoptium](https://adoptium.net/de/temurin/releases/?version=11))


## Usage
Currently, there are three distinct commands available:

- `amiris install`: installation of the [latest AMIRIS version](https://gitlab.com/dlr-ve/esy/amiris/amiris) and [examples](https://gitlab.com/dlr-ve/esy/amiris/examples) to your computer
- `amiris run`: perform a full workflow by compiling the `.pb` file from your `scenario.yaml`, executing AMIRIS, and converting results
- `amiris batch`: perform multiple runs each with scenario compilation, AMIRIS execution, and results extraction
- `amiris comparison`: compare the results of two different AMIRIS runs to check them for their equivalence


### `amiris install`
Downloads and installs the latest open access AMIRIS instance and accompanying examples.

| Option               | Action                                                                                                                                                       |
|----------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `-u` or `--url`      | URL to download AMIRIS from (default: latest AMIRIS artifact from [https://gitlab.com/dlr-ve/esy/amiris/amiris](https://gitlab.com/dlr-ve/esy/amiris/amiris) |
| `-t` or `--target`   | Folder to install `amiris-core_<version>-jar-with-dependencies.jar` to (default: `./`)                                                                       |
| `-f` or `--force`    | Force install which may overwrites existing AMIRIS installation of same version and existing examples (default: False)                                       |
| `-m` or `--mode`     | Option to install model and examples `all` (default), only `model`, or only `examples`                                                                       |


### `amiris run`
Compile scenario, execute AMIRIS, and extract results.

| Option               | Action                                                    |
|----------------------|-----------------------------------------------------------|
| `-j` or `--jar`      | Path to `amiris-core_<version>-jar-with-dependencies.jar` |
| `-s` or `--scenario` | Path to a scenario yaml-file                              |
| `-o` or `--output`   | Directory to write output to                              |


### `amiris batch`
Perform multiple runs - each with scenario compilation, AMIRIS execution, and results extraction

| Option                | Action                                                                        |
|-----------------------|-------------------------------------------------------------------------------|
| `-j` or `--jar`       | Path to `amiris-core_<version>-jar-with-dependencies.jar`                     |
| `-s` or `--scenarios` | Path to single or list of: scenario yaml-files or their enclosing directories |
| `-o` or `--output`    | Directory to write output to                                                  |
| `-r` or `--recursive` | Option to recursively search in provided Path for scenario (default: False)   |
| `-p` or `--pattern`   | Optional name pattern that scenario files searched for must match             |


### `amiris compare`
Compare if results of two AMIRIS runs and equivalent.

| Option               | Action                                                            |
|----------------------|-------------------------------------------------------------------|
| `-e` or `--expected` | Path to folder with expected result .csv files                    |
| `-t` or `--test`     | Path to folder with results files (.csv) to test  for equivalence |
| `-i` or `--ignore`   | Optional list of file names not to be compared                    |


### Help
You reach the help menu at any point using `-h` or `--help` which gives you a list of all available options, e.g.:

`amiris --help`


### Logging
You may define a logging level or optional log file as **first** arguments in your workflow using any of the following arguments:

| Option               | Action                                                                                                            |
|----------------------|-------------------------------------------------------------------------------------------------------------------|
| `-l` or `--log`      | Sets the logging level. Default is `error`. Options are `debug`, `info`, `warning`, `warn`, `error`, `critical`.  |
| `-lf` or `--logfile` | Sets the logging file. Default is `None`. If `None` is provided, all logs get only printed to the console.        |

Example: `amiris --log debug --logfile my/log/file.txt install`

## Cite AMIRIS-Py
If you use AMIRIS-Py for academic work, please cite:

Christoph Schimeczek, Kristina Nienhaus, Ulrich Frey, Evelyn Sperber, Seyedfarzad Sarfarazi, Felix Nitsch, Johannes Kochems & A. Achraf El Ghazi (2023). AMIRIS: Agent-based Market model for the Investigation of Renewable and Integrated energy Systems. Journal of Open Source Software. doi: [10.21105/joss.05041](https://doi.org/10.21105/joss.05041)

## Contributing
Please see [CONTRIBUTING](CONTRIBUTING.md).

## Available Support
This is a purely scientific project by (at the moment) one research group. 
Thus, there is no paid technical support available.

If you experience any trouble with AMIRIS, you may contact the developers at the [openMod-Forum](https://forum.openmod.org/tag/amiris) or via [amiris@dlr.de](mailto:amiris@dlr.de).
Please report bugs and make feature requests by filing issues following the provided templates (see also [CONTRIBUTING](CONTRIBUTING.md)).
For substantial enhancements, we recommend that you contact us via [amiris@dlr.de](mailto:amiris@dlr.de) for working together on the code in common projects or towards common publications and thus further develop AMIRIS.



            

Raw data

            {
    "_id": null,
    "home_page": "https://gitlab.com/dlr-ve/esy/amiris/amiris-py",
    "name": "amirispy",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "",
    "keywords": "AMIRIS,agent-based modelling",
    "author": "Christoph Schimeczek, Felix Nitsch",
    "author_email": "amiris@dlr.de",
    "download_url": "https://files.pythonhosted.org/packages/00/c6/6f3e8b8a9b1a4814ad8247e06f856c9728d48159e8dfedc2cae1b7209490/amirispy-1.3.tar.gz",
    "platform": null,
    "description": "<!-- SPDX-FileCopyrightText: 2022 German Aerospace Center <amiris@dlr.de>\n\nSPDX-License-Identifier: Apache-2.0 -->\n\n[![PyPI version](https://badge.fury.io/py/amirispy.svg)](https://badge.fury.io/py/amirispy)\n[![PyPI license](https://img.shields.io/pypi/l/amirispy.svg)](https://badge.fury.io/py/amirispy)\n[![pipeline status](https://gitlab.com/dlr-ve/esy/amiris/amiris-py/badges/main/pipeline.svg)](https://gitlab.com/dlr-ve/esy/amiris/amiris-py/commits/main)\n\n\n# AMIRIS-Py\nPython tools for the electricity market model [AMIRIS](https://dlr-ve.gitlab.io/esy/amiris/home/).\n\n## Installation\n\n    pip install amirispy\n\n\nYou may also use `pipx`. For detailed information please refer to the official `pipx` [documentation](https://github.com/pypa/pipx).\n\n    pipx install amirispy\n\n\n### Further Requirements\n\nIn order to execute all commands provided by `amirispy`, you also require a Java Development Kit (JDK).\nJDK must be installed and accessible via your console in which you run `amirispy`. \n\nTo test, run `java --version` which should show your JDK version (required: 8 or above).\nIf `java` command is not found or relates to a Java Runtime Environment (JRE), please download and install JDK (e.g. from [Adoptium](https://adoptium.net/de/temurin/releases/?version=11))\n\n\n## Usage\nCurrently, there are three distinct commands available:\n\n- `amiris install`: installation of the [latest AMIRIS version](https://gitlab.com/dlr-ve/esy/amiris/amiris) and [examples](https://gitlab.com/dlr-ve/esy/amiris/examples) to your computer\n- `amiris run`: perform a full workflow by compiling the `.pb` file from your `scenario.yaml`, executing AMIRIS, and converting results\n- `amiris batch`: perform multiple runs each with scenario compilation, AMIRIS execution, and results extraction\n- `amiris comparison`: compare the results of two different AMIRIS runs to check them for their equivalence\n\n\n### `amiris install`\nDownloads and installs the latest open access AMIRIS instance and accompanying examples.\n\n| Option               | Action                                                                                                                                                       |\n|----------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `-u` or `--url`      | URL to download AMIRIS from (default: latest AMIRIS artifact from [https://gitlab.com/dlr-ve/esy/amiris/amiris](https://gitlab.com/dlr-ve/esy/amiris/amiris) |\n| `-t` or `--target`   | Folder to install `amiris-core_<version>-jar-with-dependencies.jar` to (default: `./`)                                                                       |\n| `-f` or `--force`    | Force install which may overwrites existing AMIRIS installation of same version and existing examples (default: False)                                       |\n| `-m` or `--mode`     | Option to install model and examples `all` (default), only `model`, or only `examples`                                                                       |\n\n\n### `amiris run`\nCompile scenario, execute AMIRIS, and extract results.\n\n| Option               | Action                                                    |\n|----------------------|-----------------------------------------------------------|\n| `-j` or `--jar`      | Path to `amiris-core_<version>-jar-with-dependencies.jar` |\n| `-s` or `--scenario` | Path to a scenario yaml-file                              |\n| `-o` or `--output`   | Directory to write output to                              |\n\n\n### `amiris batch`\nPerform multiple runs - each with scenario compilation, AMIRIS execution, and results extraction\n\n| Option                | Action                                                                        |\n|-----------------------|-------------------------------------------------------------------------------|\n| `-j` or `--jar`       | Path to `amiris-core_<version>-jar-with-dependencies.jar`                     |\n| `-s` or `--scenarios` | Path to single or list of: scenario yaml-files or their enclosing directories |\n| `-o` or `--output`    | Directory to write output to                                                  |\n| `-r` or `--recursive` | Option to recursively search in provided Path for scenario (default: False)   |\n| `-p` or `--pattern`   | Optional name pattern that scenario files searched for must match             |\n\n\n### `amiris compare`\nCompare if results of two AMIRIS runs and equivalent.\n\n| Option               | Action                                                            |\n|----------------------|-------------------------------------------------------------------|\n| `-e` or `--expected` | Path to folder with expected result .csv files                    |\n| `-t` or `--test`     | Path to folder with results files (.csv) to test  for equivalence |\n| `-i` or `--ignore`   | Optional list of file names not to be compared                    |\n\n\n### Help\nYou reach the help menu at any point using `-h` or `--help` which gives you a list of all available options, e.g.:\n\n`amiris --help`\n\n\n### Logging\nYou may define a logging level or optional log file as **first** arguments in your workflow using any of the following arguments:\n\n| Option               | Action                                                                                                            |\n|----------------------|-------------------------------------------------------------------------------------------------------------------|\n| `-l` or `--log`      | Sets the logging level. Default is `error`. Options are `debug`, `info`, `warning`, `warn`, `error`, `critical`.  |\n| `-lf` or `--logfile` | Sets the logging file. Default is `None`. If `None` is provided, all logs get only printed to the console.        |\n\nExample: `amiris --log debug --logfile my/log/file.txt install`\n\n## Cite AMIRIS-Py\nIf you use AMIRIS-Py for academic work, please cite:\n\nChristoph Schimeczek, Kristina Nienhaus, Ulrich Frey, Evelyn Sperber, Seyedfarzad Sarfarazi, Felix Nitsch, Johannes Kochems & A. Achraf El Ghazi (2023). AMIRIS: Agent-based Market model for the Investigation of Renewable and Integrated energy Systems. Journal of Open Source Software. doi: [10.21105/joss.05041](https://doi.org/10.21105/joss.05041)\n\n## Contributing\nPlease see [CONTRIBUTING](CONTRIBUTING.md).\n\n## Available Support\nThis is a purely scientific project by (at the moment) one research group. \nThus, there is no paid technical support available.\n\nIf you experience any trouble with AMIRIS, you may contact the developers at the [openMod-Forum](https://forum.openmod.org/tag/amiris) or via [amiris@dlr.de](mailto:amiris@dlr.de).\nPlease report bugs and make feature requests by filing issues following the provided templates (see also [CONTRIBUTING](CONTRIBUTING.md)).\nFor substantial enhancements, we recommend that you contact us via [amiris@dlr.de](mailto:amiris@dlr.de) for working together on the code in common projects or towards common publications and thus further develop AMIRIS.\n\n\n",
    "bugtrack_url": null,
    "license": "Apache License 2.0",
    "summary": "Python tools for the electricity market model AMIRIS",
    "version": "1.3",
    "project_urls": {
        "Homepage": "https://gitlab.com/dlr-ve/esy/amiris/amiris-py"
    },
    "split_keywords": [
        "amiris",
        "agent-based modelling"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "68e49e6469ed895011d61d207fa2b085e7bfaceacbba81f3a2ce04b38a285166",
                "md5": "9d5981936f885c95c0bf4ac9173b0b47",
                "sha256": "0b0c12c3fdd528f1be9bfeffe2b886c354a176f308740e4f9ca988a580f027da"
            },
            "downloads": -1,
            "filename": "amirispy-1.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "9d5981936f885c95c0bf4ac9173b0b47",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 20550,
            "upload_time": "2023-06-13T17:18:22",
            "upload_time_iso_8601": "2023-06-13T17:18:22.516818Z",
            "url": "https://files.pythonhosted.org/packages/68/e4/9e6469ed895011d61d207fa2b085e7bfaceacbba81f3a2ce04b38a285166/amirispy-1.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "00c66f3e8b8a9b1a4814ad8247e06f856c9728d48159e8dfedc2cae1b7209490",
                "md5": "0f3c90fbfaa3e917581292611beb019f",
                "sha256": "b8bdc9437b0c1cb213e7646d60791e8ad08db12c2dd4b6e1ee334ba83d066619"
            },
            "downloads": -1,
            "filename": "amirispy-1.3.tar.gz",
            "has_sig": false,
            "md5_digest": "0f3c90fbfaa3e917581292611beb019f",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 17696,
            "upload_time": "2023-06-13T17:18:24",
            "upload_time_iso_8601": "2023-06-13T17:18:24.348928Z",
            "url": "https://files.pythonhosted.org/packages/00/c6/6f3e8b8a9b1a4814ad8247e06f856c9728d48159e8dfedc2cae1b7209490/amirispy-1.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-06-13 17:18:24",
    "github": false,
    "gitlab": true,
    "bitbucket": false,
    "codeberg": false,
    "gitlab_user": "dlr-ve",
    "gitlab_project": "esy",
    "lcname": "amirispy"
}
        
Elapsed time: 0.08552s