Skip to main content

Python tools for AMIRIS

Project description

PyPI version PyPI license pipeline status pipeline status

AMIRIS-Py

Python tools for the electricity market model AMIRIS.

Installation

pip install amirispy

You may also use pipx. For detailed information please refer to the official pipx documentation.

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)

Usage

Currently, there are three distinct commands available:

  • amiris install: installation of the latest AMIRIS version to your computer
  • amiris run: perform a full workflow by compiling the .pb file from your scenario.yaml, executing AMIRIS, and converting results
  • 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.

Option Action
-u or --url URL to download AMIRIS from (default: latest AMIRIS artifact from https://gitlab.com/dlr-ve/esy/amiris/amiris
-t or --target Folder to install amiris-core_<version>-jar-with-dependencies.jar to (default: ./)

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 scenario.yaml
-o or --output Directory to write output to

amiris compare

Compare if results of two AMIRIS runs and equivalent.

Option Action
-e or --expected Path to folder with expected results
-t or --test Path to folder with results to test
-i or --ignore Optional list of file names to not 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

Contributing

Please see CONTRIBUTING.

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 or via amiris@dlr.de. Please report bugs and make feature requests by filing issues following the provided templates (see also CONTRIBUTING). For substantial enhancements, we recommend that you contact us via amiris@dlr.de for working together on the code in common projects or towards common publications and thus further develop AMIRIS.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

amirispy-1.1.1.tar.gz (12.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

amirispy-1.1.1-py3-none-any.whl (14.6 kB view details)

Uploaded Python 3

File details

Details for the file amirispy-1.1.1.tar.gz.

File metadata

  • Download URL: amirispy-1.1.1.tar.gz
  • Upload date:
  • Size: 12.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.13

File hashes

Hashes for amirispy-1.1.1.tar.gz
Algorithm Hash digest
SHA256 1c5181d5f43f1eb108a98d35d147846e9fff2102df6f6ad5097b489c2cdbfa91
MD5 349c70c4c588761f3de1680d20fd567d
BLAKE2b-256 bf42c61defe1ab207765e16292fbff18911910c7aeb05e9147dbda97e74e1430

See more details on using hashes here.

File details

Details for the file amirispy-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: amirispy-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 14.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.13

File hashes

Hashes for amirispy-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 88e8f34cdf35de74325751324f21223d45b0dd5ad09eb4469cc47f54fff1d601
MD5 852de52fed20de8072504e2512d784ab
BLAKE2b-256 9dc83ba77d0b101988efac6e0b44a8c26e03090aa8545de81bfcf28977acf2b7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page