Hey Barry,
just for some background:
It is indeed the order of the objects which make things safer
here. In Python the first object in a multiplication is the
"dominant" one which determines the resulting type of the
multiplication (except for multiplication with inherited classes
with the use of __rmul__ as well as multiplication with numpy
objects and the use of __array_priority__). For multiplication
with xarray objects (with xarray on the first place), we
prioritize linopy object through some sly monkey patch
(https://github.com/PyPSA/linopy/blob/master/linopy/monkey_patch_xarray.py),
but we did not implement it for pandas for reasons of code
security.
Best wishes
Fabian Hofmann
Séanadh Ríomhphoist/Email Disclaimer
Tá an ríomhphost seo agus aon chomhad a sheoltar leis faoi rún agus is lena úsáid ag an seolaí agus sin amháin é. Is féidir tuilleadh a léamh anseo.
This e-mail and any files transmitted with it are confidential and are intended solely for use by the addressee. Read more here.
--
You received this message because you are subscribed to the Google Groups "pypsa" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pypsa+un...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/pypsa/e87bb9b8-cf5d-49b2-8c22-9c66b690785cn%40googlegroups.com.
-- Fabian Hofmann Postdoctoral Researcher Institute of Energy Technology Technische Universität Berlin http://fabianhofmann.org/ Group website: https://tub-ensys.github.io/
To view this discussion on the web, visit https://groups.google.com/d/msgid/pypsa/1f87c452-61af-a113-3e1b-c5ba5e77c656%40gmail.com.
S347 | Foirgneamh Stokes | Ollscoil Chathair Bhaile Átha Cliath | Campas Ghlas Naíon | Bhaile Átha Cliath D09 DD7R
S347 | Stokes Building | Dublin City University | Glasnevin Campus | Dublin D09 DD7R