Karel De Brabandere
Karel De Brabandere
One can find an implementation of approx with support for nested dictionaries here: https://stackoverflow.com/a/56048692/1551810. It would be great if pytest could support this natively.
`functools.cached_property` can be used in slotted classes if `__dict__` is added as a field: ```python import functools import attrs @attrs.define() class A: __dict__: dict = attrs.field(default=attrs.Factory(dict), init=False, repr=False, eq=False) @functools.cached_property...
@pymarv, I think you can achieve the desired behaviour by combining a [private attribute](https://www.attrs.org/en/stable/init.html#private-attributes) with the `cached_property`: ```python import attr from functools import cached_property # Python>=3.8 @attr.s class MyClass: a...
The example is not fully correct (I should have converted ghi to the plane before feeding it to gti_dirint), but that doesn't really matter for the bug report. In this...
> > What about a third option - complement the existing iam.marion_diffuse with a pre-calculated lookup table and interpolation? > > Not wholly opposed, but the cool part of `marion_diffuse`...
Hi Anton, Nice to interact with you! I do agree that there are better options than checking for a Series. I just wanted to post the general idea. However, I...
bifacial.infinite_sheds.get_irradiance_poa: use of height to pitch ratio instead of height and pitch
I realize I overlooked a few things when proposing to use 'height to pitch ratio'. First of all, a better alternative would have been to use instead the 'height to...
Exporting packages to png seems to be broken in general for me. Exporting to svg still works however.
Thanks for the quick response! I'll use `super(B, self)` for now.
In #1616 I submitted a proposal to extend the `ìam.physical()` function with an extra optional argument `n_ar` to support AR coating. Main differences with the code proposed above by @mikofski...