Skip to main content

Timeseries generation library aiming at creating input data for Antares simulator studies.

Project description

antares-timeseries-generation

Timeseries generation library aiming at creating input data for Antares simulator studies.

Install

pip install antares-timeseries-generation

Usage

The generation requires to define a few input data in a ThermalCluster object:

import numpy as np

days = 365
cluster = ThermalCluster(
    unit_count=10,
    nominal_power=100,
    modulation=np.ones(dtype=float, shape=24),
    fo_law=ProbabilityLaw.UNIFORM,
    fo_volatility=0,
    po_law=ProbabilityLaw.UNIFORM,
    po_volatility=0,
    fo_duration=10 * np.ones(dtype=int, shape=days),
    fo_rate=0.2 * np.ones(dtype=float, shape=days),
    po_duration=10 * np.ones(dtype=int, shape=days),
    po_rate=np.zeros(dtype=float, shape=days),
    npo_min=np.zeros(dtype=int, shape=days),
    npo_max=10 * np.ones(dtype=int, shape=days),
)

You then need to provide a random number generator: we provide MersernneTwisterRNG to ensure the same generation as in antares-solver tool.

rng = MersernneTwisterRNG()

Then perform the timeseries generation:

generator = ThermalDataGenerator(rng=rng, days=days)
results = generator.generate_time_series(cluster, 1)

The actual timeseries for the total available power of the cluster are available in the results object as a numpy 2D-array:

print(results.available_power)

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

antares_timeseries_generation-0.1.1.tar.gz (19.0 kB view details)

Uploaded Source

Built Distribution

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

antares_timeseries_generation-0.1.1-py3-none-any.whl (19.1 kB view details)

Uploaded Python 3

File details

Details for the file antares_timeseries_generation-0.1.1.tar.gz.

File metadata

File hashes

Hashes for antares_timeseries_generation-0.1.1.tar.gz
Algorithm Hash digest
SHA256 817bfbdf9b4998d5d875cd5ddbb436b6fdf69377eb88567bb34b35e7abf5e2da
MD5 6f8731a0908fa052a82187b841e9de05
BLAKE2b-256 857cdfd2a040775ff4ec639f57c343164e31aa8a8f46e9527a30042f96fdcc5e

See more details on using hashes here.

File details

Details for the file antares_timeseries_generation-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for antares_timeseries_generation-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 53026505518ab326cb263fb7b490eac7171901f460186a50e591cdf0f8a2f215
MD5 433195512093ba5c9271e03d142ebba0
BLAKE2b-256 daf9cd4a1e693d9fe75aa8f024a9b4e4a489ac9270bb3983bcb932f53c15635a

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