KWR-Water / pysimdeum

SIMDEUM in python
European Union Public License 1.2
15 stars 7 forks source link

Unique identifier of a house is not unique at all #34

Open BramHillebrand opened 1 month ago

BramHillebrand commented 1 month ago

The unique identifier is not unique at all. Something with the @dataclass statement makes it that the base class is actually intialized only once and therefore all properties created in a loop (during same run) will have the same id.

BramHillebrand commented 1 month ago

A solution is to move the id setting to a post_init of the house. I dont know if that is the best solution because I dont completely understand why it does not work now.