<commit_before># Copyright (c) 2018, <NAME>
#
# All rights reserved.
#
# This file is part of the yambopy project
#
from __future__ import print_function, division
from yambopy import *
from yambopy.plot  import *
import os

class YamboBSEAbsorptionSpectra(YamboSaveDB):
    """
    Create a file with information about the excitons from Yambo files
    """
    def __init__(self,job_string,path='.'):
        """
        Parameters:
            job_string - the job_string used for yambo. yambo -J <job_string>
            path       - the folder where the yambo run was made
        """

        #look for the save folder
        self.save=path+'/SAVE'
        if not os.path.isdir(self.save):
            raise ValueError('SAVE folder not found in %s'%self.save)

        YamboSaveDB.__init__(self,save=self.save)

        self.job_string = job_string
        self.data = {"excitons":[],
                     "lattice": self.lat,
                     "atypes": self.atomic_numbers,
                     "atoms": self.atomic_positions}

        self.atoms = None<commit_msg>Removed some modules from BseAbsorption header.<commit_after># Copyright (c) 2018, <NAME>
#
# All rights reserved.
#
# This file is part of the yambopy project
#
from __future__ import print_function, division
import os

class YamboBSEAbsorptionSpectra(YamboSaveDB):
    """
    Create a file with information about the excitons from Yambo files
    """
    def __init__(self,job_string,path='.'):
        """
        Parameters:
            job_string - the job_string used for yambo. yambo -J <job_string>
            path       - the folder where the yambo run was made
        """

        #look for the save folder
        self.save=path+'/SAVE'
        if not os.path.isdir(self.save):
            raise ValueError('SAVE folder not found in %s'%self.save)

        YamboSaveDB.__init__(self,save=self.save)

        self.job_string = job_string
        self.data = {"excitons":[],
                     "lattice": self.lat,
                     "atypes": self.atomic_numbers,
                     "atoms": self.atomic_positions}

        self.atoms = None
{'fraction_non_alphanumeric': 0.09644194756554307, 'fraction_numerical': 0.003745318352059925, 'mean_word_length': 2.2038980509745127, 'pattern_counts': {'":': 8, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '641559', 'n_tokens_mistral': 660, 'n_tokens_neox': 618, 'n_words': 182}