antares-timeseries-generation
Timeseries generation library aiming at creating input data for Antares simulator studies.
Install
pip install antares-timeseries-generation
Necessity to say that pandas~=2.2.3 requires python version 3.9 or newer versions
Usage
The generation requires to define a few input data in a ThermalCluster object:
import numpy as np
days = 365
generation_params = OutageGenerationParameters(
unit_count=10,
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)
)
cluster = ThermalCluster(
outage_gen_params=generation_params,
nominal_power=100,
modulation=np.ones(dtype=float, shape=24),
)
You then need to provide a random number generator: we provide MersenneTwisterRNG
to ensure the same generation as in antares-solver tool.
rng = MersenneTwisterRNG()
Then perform the timeseries generation:
generator = TimeSeriesGenerator(rng=rng, days=days)
results = generator.generate_time_series_for_clusters(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)
Metadata
Release files for antares-timeseries-generation 0.1.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| antares_timeseries_generation-0.1.9.tar.gz | 21.5 kB | Without provenance | Details for antares_timeseries_generation-0.1.9.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| antares_timeseries_generation-0.1.9-py3-none-any.whl | Python 3 | none | any | Details for antares_timeseries_generation-0.1.9-py3-none-any.whl |
Total release size: 41.7 kB
Release files / antares_timeseries_generation-0.1.9.tar.gz
| Download URL | antares_timeseries_generation-0.1.9.tar.gz |
|---|---|
| Size | 21.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0c19a3f56e424ac3105686691ff1d1ef6c0320244af986e852698dc9b71619c6
|
|
BLAKE2b-256 checksum How to use checksums |
2d6eb59a4f1c6f24ff1d32d40cc58184a7b5e14f187f119f3f7ce076ea6a9946
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / antares_timeseries_generation-0.1.9-py3-none-any.whl
| Download URL | antares_timeseries_generation-0.1.9-py3-none-any.whl |
|---|---|
| Size | 20.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e69799290b9f29e8ed2ebc6ad49ce128a8559fc4af5804428eb620801295e4c4
|
|
BLAKE2b-256 checksum How to use checksums |
5ce4a81417ac4ac1607aab01b5e91f5de9d202688348d5af687aa4629d7367ff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Security for antares-timeseries-generation 0.1.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.