We defined to have our csv input data in line with RFC 4180. However, over the time some entries, at least in the tests, drifted appart. They should be in snake_case format.
For example in CsvDataSourceTest.
active_power_gradient is correct.
cosphi_rated should be cos_phi_rated.
cosPhiFixed should be cos_phi_fixed.
see:
|
def "A CsvDataSource should build a valid fields to attributes map with valid data as expected"() { |
|
given: |
|
def validHeadline = [ |
|
"uuid", |
|
"active_power_gradient", |
|
"capex", |
|
"cosphi_rated", |
|
"eta_conv", |
|
"id", |
|
"opex", |
|
"s_rated", |
|
"olmcharacteristic", |
|
"cosPhiFixed" |
|
] as String[] |
todo
- format whatever case to snake_case for csv file inputs within the tests
- think about how this can be forced and if it should be forced
We defined to have our csv input data in line with RFC 4180. However, over the time some entries, at least in the tests, drifted appart. They should be in
snake_caseformat.For example in
CsvDataSourceTest.active_power_gradientis correct.cosphi_ratedshould becos_phi_rated.cosPhiFixedshould becos_phi_fixed.see:
PowerSystemDataModel/src/test/groovy/edu/ie3/datamodel/io/source/csv/CsvDataSourceTest.groovy
Lines 151 to 164 in 23f970d
todo