Skip to content

[Bug] How to provide a time dependent efficiency? #595

@SabineHaas

Description

@SabineHaas

I don't get the right way of providing a time dependent efficiency for a f.e. transformer.

In the documentation it says:
{‘value’: {‘file_name’: ‘your_file_name.csv’, ‘header’: ‘your_header’}, ‘unit’: ‘your_unit’}

  • {‘value’: {‘file_name’: ‘your_file_name.csv’, ‘header’: ‘your_header’}, ‘unit’: ‘your_unit’} raises:
    pandas.errors.ParserError: Error tokenizing data. C error: Expected 8 fields in line 13, saw 10 in line 245, in create_json_from_csv index_col=0,
  • '{‘value’: {‘file_name’: ‘your_file_name.csv’, ‘header’: ‘your_header’}, ‘unit’: ‘your_unit’}' raises:
    the same as above
  • "{‘value’: {‘file_name’: ‘your_file_name.csv’, ‘header’: ‘your_header’}, ‘unit’: ‘your_unit’}" (this is what libre office would do) raises:
    json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes: line 1 column 2 (char 1) in line 609, in conversion asset_dict.update({param: json.loads(dict_string)})

@smartie2076 @Bachibouzouk do you have a quick answer / idea to this? Otherwise I can provide a full error message. But I guess it's just a small format error.

This line dict_string = value.replace("'", '"') tries to adjust the format but even if I use ' in the above string ('value'...) the needed format is not met.

Checklist to make sure that the bug report ist complete:

  • OS: ubuntu, 18.4
  • Branch: dev, updated on today
  • If applicable: Attach full error message
  • If applicable: Share screenshots/images of your problem
  • If applicable: Share used input data

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingquestionFurther information is requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions