Open mgeplf opened 2 years ago
We normally don't access/modify the __dict__
member, and I think it would be worthwhile to audit nexus-forge
for usages of it.
Hi @mgeplf ,
Thanks for reporting this. This is a known issue(#26). We'll look into it. We need to rework that part of the code. Meanwhile, you can use:
Duplicate issue #26
Meanwhile, you can use:
I'm pretty sure it's due to overwriting the __dict__
member that is causing the problem. Updating it w/ self.__dict__.update(paths)
(which I consider a bad idea, b/c I'm not checking what is all in paths
) seems to fix the problem.
Code from running: https://bbpgitlab.epfl.ch/molsys/bbp_me_type_to_mol_id/-/blob/main/downloader/BBP_downloader.py is causing the following exception:
I believe it's because the
__dict__
is being reset here: https://github.com/BlueBrain/nexus-forge/blob/master/kgforge/core/wrappings/paths.py#L94