Skip to content

Commit 8afdca6

Browse files
KKamel67kemihak
andauthored
District creation and edition (#246)
* Find exact match with grep to remove a district * Use the specific endpoint to create a district * Add unit tests for createDistrict() * .Rd files after package check * editDsitrict() in API mode * Canhe control to avoid tthe use of add_area and remove_area at the same time * Add to list new_district only existing object remove_area or add_area * Enrich unit tests to check the district more precisely * Edit a district in disk mode * Add unit tests for editDistrict() * Update NEWS.md * Treat single area case * Add unbox to @importFrom section * Update NEWS.md in right section after pulling from master * Update NEWS.md --------- Co-authored-by: kemihak <kamel.kemiha@rte-france.com>
1 parent 54e3502 commit 8afdca6

File tree

7 files changed

+489
-62
lines changed

7 files changed

+489
-62
lines changed

NAMESPACE

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ export(editCluster)
4343
export(editClusterRES)
4444
export(editClusterST)
4545
export(editDSR)
46+
export(editDistrict)
4647
export(editLink)
4748
export(editPSP)
4849
export(filteringOptions)
@@ -149,6 +150,7 @@ importFrom(httr,status_code)
149150
importFrom(httr,stop_for_status)
150151
importFrom(httr,upload_file)
151152
importFrom(jsonlite,toJSON)
153+
importFrom(jsonlite,unbox)
152154
importFrom(jsonlite,write_json)
153155
importFrom(lifecycle,deprecate_warn)
154156
importFrom(lifecycle,deprecated)

NEWS.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
> Copyright © 2016 RTE Reseau de transport d’electricite
22
33

4+
# antaresEditObject 0.9.4.9000
5+
6+
7+
NEW FEATURES :
8+
9+
* `createDistrict()` uses a specific endpoint to create the district
10+
* `editDistrict()` allows the user to edit a district. Use of a specific endpoint in API mode.
11+
12+
413
# antaresEditObject 0.9.3
514
(cf. Antares v9.3 changelog)
615

@@ -15,6 +24,7 @@ NEW FEATURES :
1524
- **Dynamic groups** (The group parameter is now dynamic and has no restrictions. The default group value for Renewable depends on the version: Other RES 1 if < 930, Other if >= 930).
1625
* `updateScenarioBuilder()` New types of series "sts" and "sta" ("sct apports level" and "sct contraintes") is available
1726

27+
1828
BUGFIXES :
1929

2030
* `createBindingConstraint()/editBindingConstraint()` do not allow to create/edit a binding constraint if a cluster referenced in a coefficient does not exist.

0 commit comments

Comments
 (0)