Replies: 1 comment 1 reply
-
|
Actually ideally I would like to modify a value from a Map from the clock file. Thank you very much for your help |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
-
Dear spinetoolbox team,
I am trying to import a number into a database, but there seem to be a relationship missing
https://github.com/TradeRES/toolbox-amiris-emlab/blob/dev/emlabpy/util/clock.py
WARNING:root:DBAPIError while inserting object items: ('UNIQUE constraint failed: entity.class_id, entity.name',)
WARNING:root:Could not import parameter value for '2050', class 'peakLoad', parameter 'ElectricitySpotMarketNL': Missing object or relationship identifier.
I do it like this.
db_emlab.import_object_classes([classnameem])
db_emlab.import_objects([(classnameem, object_nameem)])
db_emlab.import_data({'object_parameters': [[classnameem, parameterem]]})
db_emlab.import_alternatives([str(0)])
db_emlab.import_object_parameter_values([(classnameem, object_nameem, parameterem, peak_load, '0')])
Thank you very much for your support!
Beta Was this translation helpful? Give feedback.
All reactions