File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -511,15 +511,15 @@ def _loadLibrary(self, libraries: list):
511511 '1)["Modelica"]\n '
512512 '2)[("Modelica","3.2.3"), "PowerSystems"]\n ' )
513513
514- def setWorkDirectory (self , customBuildDirectory : Optional [str | os .PathLike ] = None ) -> OMCPath :
514+ def setWorkDirectory (self , work_directory : Optional [str | os .PathLike ] = None ) -> OMCPath :
515515 """
516516 Define the work directory for the ModelicaSystem / OpenModelica session. The model is build within this
517517 directory. If no directory is defined a unique temporary directory is created.
518518 """
519- if customBuildDirectory is not None :
520- workdir = self ._session .omcpath (customBuildDirectory ).absolute ()
519+ if work_directory is not None :
520+ workdir = self ._session .omcpath (work_directory ).absolute ()
521521 if not workdir .is_dir ():
522- raise IOError (f"Provided work directory does not exists: { customBuildDirectory } !" )
522+ raise IOError (f"Provided work directory does not exists: { work_directory } !" )
523523 else :
524524 workdir = self ._session .omcpath_tempdir ().absolute ()
525525 if not workdir .is_dir ():
@@ -2015,7 +2015,7 @@ def prepare(self) -> int:
20152015
20162016 build_dir = self ._resultpath / f"DOE_{ idx_pc_structure :09d} "
20172017 build_dir .mkdir ()
2018- self ._mod .setWorkDirectory (customBuildDirectory = build_dir )
2018+ self ._mod .setWorkDirectory (work_directory = build_dir )
20192019
20202020 sim_param_structure = {}
20212021 for idx_structure , pk_structure in enumerate (param_structure .keys ()):
You can’t perform that action at this time.
0 commit comments