Skip to content

Raise error when adding systems with same names (or rename duplicate) #8

@Tesshub

Description

@Tesshub

Running several times this building.add_system(HeaterSimple(name="Main_heater", cop=0.98)) gives

==Building==
Number of occupants: 3.8
Building surface: 199.99999999999997 m²
Building volume: 600.00000015 m3
Zone number: 5

==HVAC systems==
Heating systems: ['Main_heater', 'Main_heater', 'Main_heater', 'Main_heater', 'Main_heater', 'Main_heater', 'Main_heater', 'Main_heater', 'Main_heater', 'Main_heater', 'Main_heater', 'Main_heater', 'Main_heater']
...

It would be usefull to either raise an error if two added systems have the same name, or to automatically rename them "Main_heater1", "Main_heater2", etc.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions