예제 #1
0
    def merge(self):
        """
        Merge the two models together to generate both chemkin and dictionary files.
        """

        import rmgpy.tools.merge_models as merge_models
        import sys

        inputModelFiles = []
        inputModelFiles.append((self.chemkin1, self.dict1, None))
        inputModelFiles.append((self.chemkin2, self.dict2, None))

        kwargs = {
            'wd': self.path,
            'transport': False,
        }

        logfile = os.path.join(self.path, 'merging_log.txt')

        # Save stdout to logfile which the user can download
        with open(logfile, 'w') as f:
            stdout_orig = sys.stdout
            sys.stdout = f

            merge_models.execute(inputModelFiles, **kwargs)

            sys.stdout = stdout_orig
    def merge(self):
        """
        Merge the two models together to generate both chemkin and dictionary files.
        """

        import rmgpy.tools.merge_models as merge_models
        import sys

        inputModelFiles = []
        inputModelFiles.append((self.chemkin1, self.dict1, None))
        inputModelFiles.append((self.chemkin2, self.dict2, None))

        kwargs = {
            'wd': self.path,
            'transport': False,
        }
        
        logfile = os.path.join(self.path,'merging_log.txt')
        
        # Save stdout to logfile which the user can download
        with open(logfile, 'w') as f:
            stdout_orig = sys.stdout
            sys.stdout = f
            
            merge_models.execute(
                        inputModelFiles,
                        **kwargs
                        )
            
            sys.stdout = stdout_orig
예제 #3
0
파일: models.py 프로젝트: rwest/RMG-website
    def merge(self):
        """
        Merge the two models together to generate both chemkin and dictionary files.
        """

        import rmgpy.tools.merge_models as merge_models

        inputModelFiles = []
        inputModelFiles.append((self.chemkin1, self.dict1, None))
        inputModelFiles.append((self.chemkin2, self.dict2, None))

        kwargs = {"wd": self.path, "transport": False}

        merge_models.execute(inputModelFiles, **kwargs)
예제 #4
0
    def merge(self):
        """
        Merge the two models together to generate both chemkin and dictionary files.
        """

        import rmgpy.tools.merge_models as merge_models

        inputModelFiles = []
        inputModelFiles.append((self.chemkin1, self.dict1, None))
        inputModelFiles.append((self.chemkin2, self.dict2, None))

        kwargs = {
            'wd': self.path,
            'transport': False,
        }

        merge_models.execute(inputModelFiles, **kwargs)