Skip to content

Commit 54e3502

Browse files
authored
Add author to a study (#245)
* Add author to a study * Update NEWS.md
1 parent e0cc80a commit 54e3502

File tree

6 files changed

+3
-1
lines changed

6 files changed

+3
-1
lines changed

NEWS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ NEW FEATURES (other) :
4545
* `editBindingConstraint()` : control the dimensions of the matrix only if a time series is provided by the user for optimization
4646
* `.createCluster()` uses a specific endpoint to write cluster's metadata and commands to write matrix
4747
* Add new function `setThematicTrimming()` to set the thematic trimming in file `generaldata.ini`
48+
* `createStudy()`* adds `author` in `study.antares` file
4849

4950

5051
### Breaking changes :

R/createStudy.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@ createStudy <- function(path, study_name = "my_study", antares_version = "8.2.0"
9090
data = list(
9191
version = version_to_write,
9292
study_name = study_name,
93-
date_created = floor(as.numeric(Sys.time()))
93+
date_created = floor(as.numeric(Sys.time())),
94+
author = Sys.getenv("USERNAME")
9495
)
9596
)
9697

1.26 KB
Binary file not shown.
1.27 KB
Binary file not shown.
-4 Bytes
Binary file not shown.
-4 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)