Skip to content

Align format requirements for csv headers to be in line with RFC 4180 #1544

@danielfeismann

Description

@danielfeismann

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

Metadata

Metadata

Labels

code qualityCode readability or structure is improved

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions