Source code for ase2sprkkr.outputs.readers.dos

""" The ARPES result: currently it """

from ..task_result import TaskResult, KkrProcess
from .default import DefaultOutputReader
from ...common.decorators import cached_property
from ...output_files.output_files import OutputFile
import os


[docs] class DosResult(TaskResult): """ Objects of this class holds the results of computed SCF class """ @cached_property def dos_filename(self): """ New (output) potential file name """ fname = self.input_parameters.CONTROL.DATASET() + '_DOS.dos' if self.directory: fname = os.path.join(self.directory, fname) return fname @cached_property def dos(self): """ The new (output) potential - that contains the converged charge density etc. """ return OutputFile.from_file(self.dos_filename, try_only='dos')
[docs] class DosProcess(KkrProcess): """ ARPES task output reader currently do nothing, just have a special result, that allow easy acces to spc output file """ result_class = DosResult reader_class = DefaultOutputReader