oplus/simulation.py
def _file_refs(self):
        """
        Defined here so that we can use the class variables, in order to subclass in oplusplus
        """
        if self._prepared_file_refs is None:
            self._prepared_file_refs = {
                FILE_REFS.idf: FileInfo(
                    constructor=lambda path: self._epm_cls.from_idf(path, idd_or_buffer_or_path=self._idd),
                    get_path=lambda: get_input_file_path(self.dir_path, FILE_REFS.idf)
                ),
                FILE_REFS.epw: FileInfo(
                    constructor=lambda path: self._weather_data_cls.from_epw(path),
                    get_path=lambda: get_input_file_path(self.dir_path, FILE_REFS.epw)
                ),
                FILE_REFS.eio: FileInfo(
                    constructor=lambda path: self._eio_cls(path),
                    get_path=lambda: get_output_file_path(self.dir_path, FILE_REFS.eio)
                ),
                FILE_REFS.eso: FileInfo(
                    constructor=lambda path: self._standard_output_cls(path),
                    get_path=lambda: get_output_file_path(
                        self.dir_path,
                        FILE_REFS.eso
                    )
                ),
                FILE_REFS.mtr: FileInfo(
                    constructor=lambda path: self._standard_output_cls(path),
                    get_path=lambda: get_output_file_path(self.dir_path, FILE_REFS.mtr)
                ),
                FILE_REFS.mtd: FileInfo(
                    constructor=lambda path: self._mtd_cls(path),
                    get_path=lambda: get_output_file_path(self.dir_path, FILE_REFS.mtd)
                ),
                FILE_REFS.mdd: FileInfo(
                    constructor=lambda path: open(path).read(),
                    get_path=lambda: get_output_file_path(self.dir_path, FILE_REFS.mdd)

                ),
                FILE_REFS.err: FileInfo(
                    constructor=lambda path: self._err_cls(path),
                    get_path=lambda: get_output_file_path(self.dir_path, FILE_REFS.err)
                ),
                FILE_REFS.summary_table: FileInfo(
                    constructor=lambda path: self._summary_table_cls(path),
                    get_path=lambda: get_output_file_path(self.dir_path, FILE_REFS.summary_table)
                )
            }
        return self._prepared_file_refs
def _file_refs(self):
        """
        Defined here so that we can use the class variables, in order to subclass in oplusplus
        """
        if self._prepared_file_refs is None:
            self._prepared_file_refs = {
                FILE_REFS.idf: FileInfo(
                    constructor=lambda path: self._epm_cls.from_idf(path, idd_or_buffer_or_path=self._idd),
                    get_path=lambda: get_input_file_path(self.dir_path, FILE_REFS.idf)
                ),
                FILE_REFS.epw: FileInfo(
                    constructor=lambda path: self._weather_data_cls.from_epw(path),
                    get_path=lambda: get_input_file_path(self.dir_path, FILE_REFS.epw)
                ),
                FILE_REFS.eio: FileInfo(
                    constructor=lambda path: self._eio_cls(path),
                    get_path=lambda: get_output_file_path(self.dir_path, FILE_REFS.eio)
                ),
                FILE_REFS.eso: FileInfo(
                    constructor=lambda path: self._standard_output_cls(path),
                    get_path=lambda: get_output_file_path(
                        self.dir_path,
                        FILE_REFS.eso
                    )
                ),
                FILE_REFS.mtr: FileInfo(
                    constructor=lambda path: self._standard_output_cls(path),
                    get_path=lambda: get_output_file_path(self.dir_path, FILE_REFS.mtr)
                ),
                FILE_REFS.mtd: FileInfo(
                    constructor=lambda path: self._mtd_cls(path),
                    get_path=lambda: get_output_file_path(self.dir_path, FILE_REFS.mtd)
                ),
                FILE_REFS.mdd: FileInfo(
                    constructor=lambda path: open(path).read(),
                    get_path=lambda: get_output_file_path(self.dir_path, FILE_REFS.mdd)

                ),
                FILE_REFS.err: FileInfo(
                    constructor=lambda path: self._err_cls(path),
                    get_path=lambda: get_output_file_path(self.dir_path, FILE_REFS.err)
                ),
                FILE_REFS.summary_table: FileInfo(
                    constructor=lambda path: self._summary_table_cls(path),
                    get_path=lambda: get_output_file_path(self.dir_path, FILE_REFS.summary_table)
                )
            }
        return self._prepared_file_refs
def _file_refs ( self ) : if self . _prepared_file_refs is None : self . _prepared_file_refs = { FILE_REFS . idf : FileInfo ( constructor = lambda path : self . _epm_cls . from_idf ( path , idd_or_buffer_or_path = self . _idd ) , get_path = lambda : get_input_file_path ( self . dir_path , FILE_REFS . idf ) ) , FILE_REFS . epw : FileInfo ( constructor = lambda path : self . _weather_data_cls . from_epw ( path ) , get_path = lambda : get_input_file_path ( self . dir_path , FILE_REFS . epw ) ) , FILE_REFS . eio : FileInfo ( constructor = lambda path : self . _eio_cls ( path ) , get_path = lambda : get_output_file_path ( self . dir_path , FILE_REFS . eio ) ) , FILE_REFS . eso : FileInfo ( constructor = lambda path : self . _standard_output_cls ( path ) , get_path = lambda : get_output_file_path ( self . dir_path , FILE_REFS . eso ) ) , FILE_REFS . mtr : FileInfo ( constructor = lambda path : self . _standard_output_cls ( path ) , get_path = lambda : get_output_file_path ( self . dir_path , FILE_REFS . mtr ) ) , FILE_REFS . mtd : FileInfo ( constructor = lambda path : self . _mtd_cls ( path ) , get_path = lambda : get_output_file_path ( self . dir_path , FILE_REFS . mtd ) ) , FILE_REFS . mdd : FileInfo ( constructor = lambda path : open ( path ) . read ( ) , get_path = lambda : get_output_file_path ( self . dir_path , FILE_REFS . mdd ) ) , FILE_REFS . err : FileInfo ( constructor = lambda path : self . _err_cls ( path ) , get_path = lambda : get_output_file_path ( self . dir_path , FILE_REFS . err ) ) , FILE_REFS . summary_table : FileInfo ( constructor = lambda path : self . _summary_table_cls ( path ) , get_path = lambda : get_output_file_path ( self . dir_path , FILE_REFS . summary_table ) ) } return self . _prepared_file_refs
Defined here so that we can use the class variables, in order to subclass in oplusplus
Defined here so that we can use the class variables in order to subclass in oplusplus