Closed nnn911 closed 1 year ago
@nnn911, thanks so much for pointing it out. The source code constantly gets updated so sometimes it's hard to keep track of whether the notebooks still work.
I merged your fix. I have also added an alternative ASE implementation defined in the notebook.
To provide a bit more context:
The ASE neighbor list (graph construction) implementation is quite feature-rich and robust. I recommend using it for production. But ultimately I don't want ase
to be a hard install dependency of graphite
, so I plan to not have ASE-related codes in the graphite
source code.
When I tried running the demo notebook I encountered 2 different errors which I hopefully managed to resolve.
My environment:
M1 Mac
Error 1
When running the 3rd cell I get the following error:
I was able to resolve this error by removing the
_ase
suffix for bothgraphite.transforms.periodic_radius_graph_ase
andPeriodicRadiusGraph_ase
.Error 2
Running the next cell gives me this error:
This could be resolved by updating the
PeriodicRadiusGraph
class fromdata.box
todata.cell
.Error 3
After this change, the same cell produces a new error:
Which can be traced to the same code section and fixed replacing
data.cell
withdata.cell.diag()
.Conclusion
After these 2 minor changes I was able to use the denoiser as expected.