Skip to content

Commit

Permalink
v0.1.7 (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinBelthle authored Nov 12, 2024
1 parent 5c7f4da commit 5b90824
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 7 deletions.
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

0 comments on commit 5b90824

Please sign in to comment.