Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v0.1.7 #20

Merged
merged 1 commit into from
Nov 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,20 @@
Changelog
=========

v0.1.7 (2023-11-12)
-------------------

### Bug fixes
* don't crash when fo_rate or po_rate are equal to 1

### Features
* add links ts generation

### Breaking change
- ThermalDataGenerator -> TimeseriesGenerator
- ThermalDataGenerator.generate_time_series(...) -> TimeseriesGenerator.generate_time_series_for_clusters(...)
- new class `OutageGenerationParameters` introduced changes the way to instantiate a ThermalCluster (see the README)

v0.1.6 (2023-10-22)
-------------------

Expand Down
13 changes: 8 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,8 @@ The generation requires to define a few input data in a `ThermalCluster` object:
import numpy as np

days = 365
cluster = ThermalCluster(
generation_params = OutageGenerationParameters(
unit_count=10,
nominal_power=100,
modulation=np.ones(dtype=float, shape=24),
fo_law=ProbabilityLaw.UNIFORM,
fo_volatility=0,
po_law=ProbabilityLaw.UNIFORM,
Expand All @@ -31,7 +29,12 @@ cluster = ThermalCluster(
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),
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),
)
```

Expand All @@ -44,7 +47,7 @@ rng = MersenneTwisterRNG()
Then perform the timeseries generation:

```python
generator = ThermalDataGenerator(rng=rng, days=days)
generator = TimeSeriesGenerator(rng=rng, days=days)
results = generator.generate_time_series_for_clusters(cluster, 1)
```

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "antares-timeseries-generation"
version = "0.1.6"
version = "0.1.7"
license = {text="MPL-2.0"}
description = 'Timeseries generation library aiming at creating input data for Antares simulator studies.'
readme = "README.md"
Expand Down
2 changes: 1 addition & 1 deletion sonar-project.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
sonar.projectVersion=0.1.6
sonar.projectVersion=0.1.7
sonar.organization=antaressimulatorteam
sonar.projectKey=AntaresSimulatorTeam_antares-timeseries-generation
sonar.sources=src
Expand Down