Jack Dent
Jack Dent
This prints the residue fine: ``` print(all_subchains[-1]) ``` However, this results in a segfault, which indicates that gemmi might be garbage collecting the memory when the variable gets reassigned within...
Interestingly, I can resolve this issue by storing an explicit reference to the `structure` in a separate list. This implies each `structure` gets garbage collected after each iteration of the...
Nice--I saw that nanobind v2.0.0 just got released last week. For the benefit of anyone else who finds this thread: I found a better solution than passing around a reference...
The Lightning `apply_to_collection` logic is [defined here](https://github.com/Lightning-AI/utilities/blob/e5cdcecee69fa7794b76ab63f396cb619bda9c9f/src/lightning_utilities/core/apply_func.py#L139-L175) and relies on `dataclass.fields`, which doesn't include cached properties