Closed grdw closed 8 years ago
Looks like something is calling #to_s
on the InstalledTechnology for the components?
InstalledTechnology.new(type: :households_space_heater_hybrid_heatpump_air_water_electricity_electricity).to_s
# => "Hybrid heat pump space heating (electricity) (households_space_heater_hybrid_heatpump_air_water_electricity_electricity)"
I found out what it was. There's a bit of a ping-pong going on when creating a LES. The technology_profile
is first put into InstalledTechnology
objects right here. Than it dumps again here and loads again (causing the actual problem). The issue was in the dumping part, that method turned the components into InstalledTechnology
objects while it should've turned them into Hashes aswell.
Therefor closing this issue.
Related: #1262
I'm trying to split up the hybrid heat pump in components. However, I'm storing the data as such:
Which makes sense. This data is taken from a pry session:
However, when I check the content of the
self.load
method inTechnologyList
something weird happened to the components...Taken from pry session point:
Is there some step in between that does this (and automatically adds a load of attributes (I also don't know where for instance
profile
comes from)?). I'm sort of blindly assuming that theself.load
comes directly after the part where I'm adding thetechnology_profile
and that there are no steps in between.