Closed KP-303 closed 1 year ago
I was able to easily reproduce the error you mentioned. However, when visualizing the generated MOF, I noticed that a specific bond appears to be very long. This error can occur when creating the CIF file because it only checks for minimum image distances up to 6 Angstroms when examining bond lengths. Therefore, if there are bonds longer than that, it can lead to the error you encountered.
As it is a bad signal for MOF generation, you can simply ignore the MOF structures with this error by using a try-except block. If you still want to save the MOF structures, I can add distance check options.
OK thanks a lot for looking at this. So this MOF is not realistic and could not be synthesised in reality?
The synthesizability of MOFs is a highly complex problem, and it is difficult to provide a simple "yes" or "no" answer. However, structurally unstable MOFs tend to have high internal energy, which can make their synthesis challenging. So I would likely exclude such MOFs from the analysis.
Sometimes I can create a MOF and there is nothing wrong with it. By this I mean that the building blocks have the correct number of connections points, and the correct geometry, for the topology. Building the MOF works and I can view it, it all looks good. But when I try and write it to a cif I get the following error:
File ".../framework.py]", line 57, in write_cif self._write_cif(path)
File ".../framework.py)", line 161, in _write_cif image = image_dict[(i, j)]