You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm eager to start working with the disconnectivity graphs.
I've created a minimal example, but I receive an error: pele/utils/disconnectivity_graph.py", line 643, in __init__ self.gmin0 = elist[0][1] IndexError: list index out of range
Here's the example:
from pele.systems import BaseSystem
class MySystem(BaseSystem):
def __init__(self, natoms):
super(MySystem, self).__init__()
self.natoms = natoms
self.params.database.accuracy = 0.001
def get_potential(self):
return MyPot(self.natoms)
import numpy as np
natoms = 8
system = MySystem(natoms)
database = system.create_database()
from pele.utils.disconnectivity_graph import DisconnectivityGraph, database2graph
import matplotlib.pyplot as plt
#convert the database to a networkx graph
graph = database2graph(database)
dg = DisconnectivityGraph(graph, nlevels=3, center_gmin=True)
dg.calculate()
dg.plot()
plt.show()
The text was updated successfully, but these errors were encountered:
Hey!
I'm eager to start working with the disconnectivity graphs.
I've created a minimal example, but I receive an error:
pele/utils/disconnectivity_graph.py", line 643, in __init__ self.gmin0 = elist[0][1] IndexError: list index out of range
Here's the example:
The text was updated successfully, but these errors were encountered: