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

Releasecran/271 #253

Merged
merged 31 commits into from
Sep 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
a20a721
update github workflow
Mar 28, 2024
06fdf64
Read cluster desc bugfix when cluster exist (#242)
Nekmek7 Apr 2, 2024
d796d68
Release/cran261 (#244) (#245)
berthetclement Apr 25, 2024
cb61dbd
Add argument encoding in api_get() (#246)
KKamel67 Apr 30, 2024
3801d6e
[readIniFile] : avoid `utils::type.convert` on specific cases (ex : 7…
KKamel67 May 13, 2024
59cef41
Release/v8.7.0 (#224)
berthetclement May 28, 2024
2022889
Dev readInputThermal, add area parameter + parameter thermalavailabil…
Nekmek7 Jun 5, 2024
0e7628a
Ant1777/dimbcgroup (#251)
berthetclement Jun 10, 2024
d2d30ef
Read ST clusters with readAntares() (#252)
boitardn Jun 14, 2024
94ec4e3
Merge branch 'master' into releasecran/271
berthetclement Jun 14, 2024
1a17837
fix rhdf5 call refenrence
berthetclement Jun 14, 2024
ae34820
Revdeps ok
berthetclement Jun 14, 2024
e8573d4
cleaning tests
berthetclement Jun 14, 2024
22561a1
add cran-comments
berthetclement Jun 14, 2024
86bccf3
COMMENT THESE TESTS
berthetclement Jun 14, 2024
dbd5a65
GitHub Actions workflow updated with r-hub v2
berthetclement Jun 17, 2024
fa236e4
Merge branch 'releasecran/271' of https://github.com/rte-antares-rpac…
berthetclement Jun 17, 2024
9493f65
delete package rhdf5 from suggests and delete all functions who use i…
berthetclement Jun 25, 2024
20f882b
cran comment updated with rev dep check ok
berthetclement Jun 26, 2024
7cad99c
update setsimulation path no more check .h5
berthetclement Jun 27, 2024
e9109a5
update test to put inside testhat
berthetclement Jun 27, 2024
a2a4954
comment, cran issue
berthetclement Jun 27, 2024
1cf8c49
update study selection "grep" pattern in tests causing CRAN ISSUE
berthetclement Jul 1, 2024
c2b5ff8
add test for path in setSimulationPath() + test + cleaning vignette
berthetclement Jul 12, 2024
67f5051
update docs to put values returned + some cleaning references to priv…
berthetclement Jul 23, 2024
30938f7
Fix bad usage of options("warn")
berthetclement Jul 24, 2024
b088382
delete references to .GlobalEnv in test environment
berthetclement Jul 25, 2024
b2015bf
readAntares() updated to delete `assign` function to modifiy the .Glo…
berthetclement Jul 25, 2024
e6443c7
delete assign() function and ref to .GlobalEnv
berthetclement Aug 27, 2024
b46bf9b
update cran-comment
berthetclement Aug 27, 2024
54f897d
setSimulationPath() delete `getwd()` to choose dir in windows (cran p…
berthetclement Aug 29, 2024
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
95 changes: 95 additions & 0 deletions .github/workflows/rhub.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
# R-hub's generic GitHub Actions workflow file. It's canonical location is at
# https://github.com/r-hub/actions/blob/v1/workflows/rhub.yaml
# You can update this file to a newer version using the rhub2 package:
#
# rhub::rhub_setup()
#
# It is unlikely that you need to modify this file manually.

name: R-hub
run-name: "${{ github.event.inputs.id }}: ${{ github.event.inputs.name || format('Manually run by {0}', github.triggering_actor) }}"

on:
workflow_dispatch:
inputs:
config:
description: 'A comma separated list of R-hub platforms to use.'
type: string
default: 'linux,windows,macos'
name:
description: 'Run name. You can leave this empty now.'
type: string
id:
description: 'Unique ID. You can leave this empty now.'
type: string

jobs:

setup:
runs-on: ubuntu-latest
outputs:
containers: ${{ steps.rhub-setup.outputs.containers }}
platforms: ${{ steps.rhub-setup.outputs.platforms }}

steps:
# NO NEED TO CHECKOUT HERE
- uses: r-hub/actions/setup@v1
with:
config: ${{ github.event.inputs.config }}
id: rhub-setup

linux-containers:
needs: setup
if: ${{ needs.setup.outputs.containers != '[]' }}
runs-on: ubuntu-latest
name: ${{ matrix.config.label }}
strategy:
fail-fast: false
matrix:
config: ${{ fromJson(needs.setup.outputs.containers) }}
container:
image: ${{ matrix.config.container }}

steps:
- uses: r-hub/actions/checkout@v1
- uses: r-hub/actions/platform-info@v1
with:
token: ${{ secrets.RHUB_TOKEN }}
job-config: ${{ matrix.config.job-config }}
- uses: r-hub/actions/setup-deps@v1
with:
token: ${{ secrets.RHUB_TOKEN }}
job-config: ${{ matrix.config.job-config }}
- uses: r-hub/actions/run-check@v1
with:
token: ${{ secrets.RHUB_TOKEN }}
job-config: ${{ matrix.config.job-config }}

other-platforms:
needs: setup
if: ${{ needs.setup.outputs.platforms != '[]' }}
runs-on: ${{ matrix.config.os }}
name: ${{ matrix.config.label }}
strategy:
fail-fast: false
matrix:
config: ${{ fromJson(needs.setup.outputs.platforms) }}

steps:
- uses: r-hub/actions/checkout@v1
- uses: r-hub/actions/setup-r@v1
with:
job-config: ${{ matrix.config.job-config }}
token: ${{ secrets.RHUB_TOKEN }}
- uses: r-hub/actions/platform-info@v1
with:
token: ${{ secrets.RHUB_TOKEN }}
job-config: ${{ matrix.config.job-config }}
- uses: r-hub/actions/setup-deps@v1
with:
job-config: ${{ matrix.config.job-config }}
token: ${{ secrets.RHUB_TOKEN }}
- uses: r-hub/actions/run-check@v1
with:
job-config: ${{ matrix.config.job-config }}
token: ${{ secrets.RHUB_TOKEN }}
7 changes: 4 additions & 3 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: antaresRead
Type: Package
Title: Import, Manipulate and Explore the Results of an 'Antares' Simulation
Version: 2.7.0
Version: 2.7.1
Authors@R: c(
person("Tatiana", "Vargas", email = "[email protected]", role = c("aut", "cre")),
person("Jalal-Edine", "ZAWAM", role = "aut"),
Expand All @@ -15,6 +15,7 @@ Authors@R: c(
person("Clement", "Berthet", role = "ctb"),
person("Kamel", "Kemiha", role = "ctb"),
person("Abdallah", "Mahoudi", role = "ctb"),
person("Nicolas", "Boitard", role = "ctb"),
person("RTE", role = "cph")
)
Description: Import, manipulate and explore results generated by 'Antares', a
Expand All @@ -40,9 +41,9 @@ Imports:
utils,
memuse,
purrr,
lifecycle
lifecycle,
assertthat
Suggests:
rhdf5 (>= 2.24.0),
testthat,
covr,
knitr,
Expand Down
6 changes: 1 addition & 5 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ S3method(subset,antaresDataList)
S3method(summary,bindingConstraints)
S3method(viewAntares,antaresDataList)
S3method(viewAntares,default)
export(.getOptionsH5)
export(.h5ReadAntares)
export(.writeAntaresH5Fun)
export(aggregateResult)
export(api_delete)
export(api_get)
Expand All @@ -41,7 +38,6 @@ export(getGeographicTrimming)
export(getIdCols)
export(getLinks)
export(hvdcModification)
export(isH5Opts)
export(mergeDigests)
export(parAggregateMCall)
export(ponderateMcAggregation)
Expand Down Expand Up @@ -71,14 +67,14 @@ export(setTimeoutAPI)
export(showAliases)
export(simOptions)
export(viewAntares)
export(writeAntaresH5)
export(writeDigest)
import(bit64)
import(data.table)
import(doParallel)
import(jsonlite)
import(parallel)
import(plyr)
importFrom(assertthat,assert_that)
importFrom(doParallel,registerDoParallel)
importFrom(grDevices,col2rgb)
importFrom(grDevices,rgb)
Expand Down
30 changes: 28 additions & 2 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,28 @@
> Copyright © 2016 RTE Réseau de transport d’électricité

# antaresRead 2.7.1

NEW FEATURES:

* `readInputThermal()` :
- new parameter **areas** to get desired clusters from selected areas.
- new parameter **thermalAvailabilities** to import time series.
* `readInputRES()` new parameter **areas** to get desired clusters from selected areas.
* `setSimulationPath()` return a new parameter `binding` (for studies >= v8.7.0).
It contains a table with group dimensions of time series for binding constraints.
* `readAntares()` new parameter **clustersST** to read (output simulation) short-term clusters

BREAKING CHANGES :

* `readInputThermal()` / `readInputRES()` default value when no time series in the selected clusters.

BUGFIXES :

* `readInputThermal()` return data from file data.txt with `thermalData` parameter
* `setSimulationPath()` has also the parameter **areasWithSTClusters** in 'output' mode



# antaresRead 2.7.0

### Breaking changes (Antares v8.7.0) :
Expand All @@ -23,7 +46,8 @@ Dependencies :
* New package `lifecycle` to manage functions status/package status


# antaresRead 2.6.2 (development)

# antaresRead 2.6.2

BUGFIXES :
* `readIniFile()` : avoid `utils::type.convert` on specific cases (ex : 789e or 123i)
Expand All @@ -45,6 +69,8 @@ BUGFIXES :
BREAKING CHANGES :

* `api_get()` has a new parameter to control JSON file parsing
* `readInputThermal()` default value when no time series in the selected clusters.
* `readInputRES()` default value when no time series in the selected clusters
* `readClusterDesc()`/ `readClusterRESDesc()` / `readClusterSTDesc()`
return empty dataTable and warning if no cluster in Antares study.

Expand All @@ -60,7 +86,7 @@ BREAKING CHANGES (Antares v8.6) :
* `readInputTS()` is now compatible to read time series with :
- "short-term storage"
- "mingen" (pmin hydro value)
* `setSimulationPath()` has new parameter `areasWithSTClusters` (name of area with "st-storage" cluster)
* `setSimulationPath()` has new parameter **areasWithSTClusters** (name of area with "st-storage" cluster)


BUGFIXES :
Expand Down
Loading
Loading