matlabdomain icon indicating copy to clipboard operation
matlabdomain copied to clipboard

fix bug

Open Fabian-Geyer opened this issue 10 months ago • 5 comments

Fixed Bug

AttributeError: 'NoneType' object has no attribute 'attrs'

when using :members: for sophisticated class

Fabian-Geyer avatar Apr 04 '24 09:04 Fabian-Geyer

Thanks for the contribution. Can you show me a case, where you get this error?

joeced avatar Apr 07 '24 08:04 joeced

The problem arises in Casos in the following folder: https://github.com/iFR-ACSO/casos/tree/main/%2Bcasos/%40PS for the PS class. Thanks for the quick reply and the support.

Fabian-Geyer avatar Apr 08 '24 06:04 Fabian-Geyer

Phew... I finally had time to debug the issue. Your fix is not correct, the bug is even more subtle. In the PS class your have inferior classes in package, the casadi.DM method for instance.

In line 141 of mat_documenters.py we would incorrectly lookup the method casadi. I fixed that, but the rendering is still off. We don't handle dotted member names correctly... yet :)

billede

joeced avatar Apr 16 '24 20:04 joeced

I'm very impressed! Thanks for the great work

Fabian-Geyer avatar Apr 26 '24 07:04 Fabian-Geyer

Hi again. Sorry for the late response. I'm struggling a bit on creating a simple example with inferior classes as the PS.m class.

joeced avatar May 06 '24 19:05 joeced