First of all let me say that this is a super important problem space and the library looks very useful. Thanks for writing it. I'm happy to have come across it and see it being actively developed. (And I have some cool ideas on what it could be used for..)
File ~/Code/hplib/hplib/hplib.py:607, in HeatPump.simulate(self, t_in_primary, t_in_secondary, t_amb, mode, p_th_min)
605 cop = p_th/p_el
--> 606 if cop <= 1:
607 cop = 1
608 p_el = self.p_th_ref
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
I then looked a bit more at the code and would like to offer a few observations and make some suggestions for improving it: