quintel / etmoses

Online decision support tool to create local energy situations for neighbourhoods, cities and regions with a time resolution of 15 minutes created and maintained by Quintel – Not maintained
https://moses.energytransitionmodel.com
MIT License
11 stars 3 forks source link

Heat pump profile assigned while attached to a buffer #1494

Open grdw opened 7 years ago

grdw commented 7 years ago

This LES had a households_space_heater_heatpump_air_water_electricity with a profile assigned while being attached to a buffer. This caused the technology_profile to become invalid and therefor unable to be cloned or duplicated.

Server log:

ActiveRecord::RecordInvalid (Validation failed: Technology profile has an unknown load profile: hp_space_heating_10kW_50m2_100liter):
  app/services/testing_ground/save_as.rb:26:in `block in run'
  app/services/testing_ground/save_as.rb:22:in `run'
  app/services/testing_ground/save_as.rb:10:in `run'
  app/controllers/testing_grounds_controller.rb:168:in `save_as'

I removed the profile manually from the database and all went well.

The question remains, how can this be?