-
Notifications
You must be signed in to change notification settings - Fork 12
Closed
Labels
bugSomething isn't workingSomething isn't workingquestionFurther information is requestedFurther information is requested
Description
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 10inline 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)inline 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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingquestionFurther information is requestedFurther information is requested