Example #1
0
 def loadForbiddenStructures(self, path):
     """
     Load the RMG forbidden structures from the given `path` on disk, where
     `path` points to the forbidden structures file.
     """
     self.forbiddenStructures = ForbiddenStructures()
     self.forbiddenStructures.load(path)
Example #2
0
    def loadForbiddenStructures(self, path=None):
        """
        Load the RMG forbidden structures from the given `path` on disk, where
        `path` points to the forbidden structures file.

        If no path is given, a blank forbidden structures object is created.
        """
        self.forbiddenStructures = ForbiddenStructures()
        if path is not None:
            self.forbiddenStructures.load(path)
        broadcast(self.forbiddenStructures, 'forbidden')
Example #3
0
 def loadOld(self, path):
     """
     Load the old RMG database from the given `path` on disk, where `path`
     points to the top-level folder of the old RMG database.
     """
     self.thermo = ThermoDatabase()
     self.thermo.loadOld(path)
     self.transport = TransportDatabase()
     #self.transport.loadOld(path)   #  Currently no loadOld import function available for transport groups
     self.forbiddenStructures = ForbiddenStructures() 
     self.forbiddenStructures.loadOld(os.path.join(path, 'ForbiddenStructures.txt'))
     self.kinetics = KineticsDatabase()
     self.kinetics.loadOld(path)
     self.statmech = StatmechDatabase()
     self.statmech.loadOld(path)        
     self.solvation = SolvationDatabase()